-
Notifications
You must be signed in to change notification settings - Fork 575
Commit
Doc: agent's memory cleanup
- Loading branch information
There are no files selected for viewing
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 | ||
}' | ||
``` |
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.
Sorry, something went wrong. |
4 comments
on commit f9e8be4
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great 👍
mkdir intentkit && cd intentkit