Modify Agent

PATCH
/v1/agents/:agent_id

Update an existing agent

Path parameters

agent_idstringRequired

Request

This endpoint expects an object.
namestringOptional

The name of the agent.

tool_idslist of stringsOptional

The ids of the tools used by the agent.

source_idslist of stringsOptional

The ids of the sources used by the agent.

block_idslist of stringsOptional

The ids of the blocks used by the agent.

tagslist of stringsOptional

The tags associated with the agent.

systemstringOptional

The system prompt used by the agent.

tool_ruleslist of objectsOptional

The tool rules governing the agent.

llm_configobjectOptional

The LLM configuration used by the agent.

embedding_configobjectOptional

The embedding configuration used by the agent.

message_idslist of stringsOptional

The ids of the messages in the agent’s in-context memory.

descriptionstringOptional

The description of the agent.

metadatamap from strings to anyOptional

The metadata of the agent.

tool_exec_environment_variablesmap from strings to optional stringsOptional

The environment variables for tool execution specific to this agent.

Response

Successful Response

idstring

The id of the agent. Assigned by the database.

namestring

The name of the agent.

systemstring

The system prompt used by the agent.

agent_typeenum
Allowed values: memgpt_agentsplit_thread_agentoffline_memory_agentchat_only_agent

The type of agent.

llm_configobject

The LLM configuration used by the agent.

embedding_configobject

The embedding configuration used by the agent.

memoryobject

The in-context memory of the agent.

toolslist of objects

The tools used by the agent.

sourceslist of objects

The sources used by the agent.

tagslist of strings

The tags associated with the agent.

created_by_idstringOptional

The id of the user that made this object.

last_updated_by_idstringOptional

The id of the user that made this object.

created_atdatetimeOptional

The timestamp when the object was created.

updated_atdatetimeOptional

The timestamp when the object was last updated.

tool_ruleslist of objectsOptional

The list of tool rules.

message_idslist of stringsOptional

The ids of the messages in the agent’s in-context memory.

descriptionstringOptional

The description of the agent.

metadatamap from strings to anyOptional

The metadata of the agent.

tool_exec_environment_variableslist of objectsOptional

The environment variables for tool execution specific to this agent.

project_idstringOptional

The id of the project the agent belongs to.

template_idstringOptional

The id of the template the agent belongs to.

base_template_idstringOptional

The base template id of the agent.

Errors

Built with