Skip to content

Commit

Permalink
Merge pull request #179 from crestalnetwork/docs/memory-cleanup
Browse files Browse the repository at this point in the history
Doc: agent's memory cleanup
  • Loading branch information
taiyangc authored Feb 6, 2025
2 parents 15ef5e1 + b458bc0 commit f9e8be4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/how_to/clean_memory.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Agent's Memory Cleanup

Agent memory can be cleared using a request that requires an admin JWT token for authentication. This functionality allows for granular control:

- **Clear all agent memory**: Reset the entire memory state of the agent.
- **Clear thread memory**: Clear memory specifically associated with a particular thread within the agent.

> The `thread_id` parameter is used to specify the target thread for memory clearing.
```bash
curl --location '{base_url}/agents/clean-memory' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {jwt_token}' \
--data '{
"agent_id": "local",
"thread_id": "chat1",
"clean_agent_memory": true,
"clean_skills_memory": true
}'
```
5 changes: 5 additions & 0 deletions docs/how_to/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# How to

## Contents

- [Clean Agent or Thread memory](./clean_memory.md)

This comment has been minimized.

Copy link
@Beni67290

Beni67290 Feb 6, 2025

mkdir intentkit && cd intentkit

4 comments on commit f9e8be4

@mdjoncina
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agent memory can be cleared using a request that requires an admin JWT token for authentication. This functionality allows for granular control:

  • Clear all agent memory: Reset the entire memory state of the agent.

@lowla12
Copy link

@lowla12 lowla12 commented on f9e8be4 Feb 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@mrahsok
Copy link

@mrahsok mrahsok commented on f9e8be4 Feb 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go

@engrbash127
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great 👍

Please sign in to comment.