List Agents

GET
/v1/agents/

List all agents associated with a given user. This endpoint retrieves a list of all agents and their configurations associated with the specified user ID.

Query parameters

namestringOptional

Name of the agent

tagsstringOptional

List of tags to filter agents by

match_all_tagsbooleanOptionalDefaults to false

If True, only returns agents that match ALL given tags. Otherwise, return agents that have ANY of the passed in tags.

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_agento1_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_atdatetimeOptionalDefaults to 1970-01-01T00:00:00.000Z

The timestamp when the object was created.

updated_atdatetimeOptionalDefaults to 1970-01-01T00:00:00.000Z

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.

organization_idstringOptional

The unique identifier of the organization associated with the agent.

descriptionstringOptional

The description of the agent.

metadata_map from strings to anyOptional

The metadata of the agent.

Errors