Skip to content
  • Auto
  • Light
  • Dark
DiscordForumGitHubSign up
View as Markdown
Copy Markdown

Open in Claude
Open in ChatGPT

Modify Group

patch/v1/groups/{group_id}

Create a new multi-agent group with the specified configuration.

Path ParametersExpand Collapse
group_id: string

The ID of the group in the format 'group-'

minLength42
maxLength42
Body ParametersExpand Collapse
agent_ids: optional array of string
description: optional string
manager_config: optional object { manager_type, max_turns } or object { manager_agent_id, manager_type } or object { manager_agent_id, manager_type, max_turns, termination_token } or 2 more
Accepts one of the following:
RoundRobin = object { manager_type, max_turns }
manager_type: optional "round_robin"
Accepts one of the following:
"round_robin"
max_turns: optional number
Supervisor = object { manager_agent_id, manager_type }
manager_agent_id: string
manager_type: optional "supervisor"
Accepts one of the following:
"supervisor"
Dynamic = object { manager_agent_id, manager_type, max_turns, termination_token }
manager_agent_id: optional string
manager_type: optional "dynamic"
Accepts one of the following:
"dynamic"
max_turns: optional number
termination_token: optional string
Sleeptime = object { manager_agent_id, manager_type, sleeptime_agent_frequency }
manager_agent_id: optional string
manager_type: optional "sleeptime"
Accepts one of the following:
"sleeptime"
sleeptime_agent_frequency: optional number
VoiceSleeptime = object { manager_agent_id, manager_type, max_message_buffer_length, min_message_buffer_length }
manager_agent_id: optional string
manager_type: optional "voice_sleeptime"
Accepts one of the following:
"voice_sleeptime"
max_message_buffer_length: optional number

The desired maximum length of messages in the context window of the convo agent. This is a best effort, and may be off slightly due to user/assistant interleaving.

min_message_buffer_length: optional number

The desired minimum length of messages in the context window of the convo agent. This is a best effort, and may be off-by-one due to user/assistant interleaving.

project_id: optional string

The associated project id.

Deprecatedshared_block_ids: optional array of string
ReturnsExpand Collapse
Group = object { id, agent_ids, description, 15 more }
id: string

The id of the group. Assigned by the database.

agent_ids: array of string
description: string
manager_type: ManagerType
Accepts one of the following:
"round_robin"
"supervisor"
"dynamic"
"sleeptime"
"voice_sleeptime"
"swarm"
base_template_id: optional string

The base template id.

deployment_id: optional string

The id of the deployment.

hidden: optional boolean

If set to True, the group will be hidden.

last_processed_message_id: optional string
manager_agent_id: optional string
max_message_buffer_length: optional number

The desired maximum length of messages in the context window of the convo agent. This is a best effort, and may be off slightly due to user/assistant interleaving.

max_turns: optional number
min_message_buffer_length: optional number

The desired minimum length of messages in the context window of the convo agent. This is a best effort, and may be off-by-one due to user/assistant interleaving.

project_id: optional string

The associated project id.

Deprecatedshared_block_ids: optional array of string
sleeptime_agent_frequency: optional number
template_id: optional string

The id of the template.

termination_token: optional string
turns_counter: optional number
Modify Group
curl https://api.letta.com/v1/groups/$GROUP_ID \
    -X PATCH \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $LETTA_API_KEY" \
    -d '{}'
{
  "id": "id",
  "agent_ids": [
    "string"
  ],
  "description": "description",
  "manager_type": "round_robin",
  "base_template_id": "base_template_id",
  "deployment_id": "deployment_id",
  "hidden": true,
  "last_processed_message_id": "last_processed_message_id",
  "manager_agent_id": "manager_agent_id",
  "max_message_buffer_length": 0,
  "max_turns": 0,
  "min_message_buffer_length": 0,
  "project_id": "project_id",
  "shared_block_ids": [
    "string"
  ],
  "sleeptime_agent_frequency": 0,
  "template_id": "template_id",
  "termination_token": "termination_token",
  "turns_counter": 0
}
Returns Examples
{
  "id": "id",
  "agent_ids": [
    "string"
  ],
  "description": "description",
  "manager_type": "round_robin",
  "base_template_id": "base_template_id",
  "deployment_id": "deployment_id",
  "hidden": true,
  "last_processed_message_id": "last_processed_message_id",
  "manager_agent_id": "manager_agent_id",
  "max_message_buffer_length": 0,
  "max_turns": 0,
  "min_message_buffer_length": 0,
  "project_id": "project_id",
  "shared_block_ids": [
    "string"
  ],
  "sleeptime_agent_frequency": 0,
  "template_id": "template_id",
  "termination_token": "termination_token",
  "turns_counter": 0
}