agents
Reset Messages
Resets the messages for an agent
patch/v1/agents/{agent_id}/reset-messages
Path parameters
agent_idstring required
Query parameters
add_default_initial_messagesboolean
If true, adds the default initial messages after resetting.
If true, adds the default initial messages after resetting.
Response
Successful Response
Example response
{
"memory": {
"blocks": [
{
"id": "block-123e4567-e89b-12d3-a456-426614174000"
}
],
"file_blocks": [
{
"id": "block-123e4567-e89b-12d3-a456-426614174000"
}
]
},
"tools": [
{
"id": "tool-123e4567-e89b-12d3-a456-426614174000"
}
],
"sources": [
{
"id": "source-123e4567-e89b-12d3-a456-426614174000"
}
],
"tool_exec_environment_variables": [
{
"id": "agent-env-123e4567-e89b-12d3-a456-426614174000"
}
],
"secrets": [
{
"id": "agent-env-123e4567-e89b-12d3-a456-426614174000"
}
]
}