Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

fix: Make parallel tool calls optional on create/update agent [LET-5612] (#5545)

Matthew Zhouc97a395a4803
diff --git a/fern/openapi.json b/fern/openapi.json
index 62c4f0e0e..6e036434c 100644
--- a/fern/openapi.json
+++ b/fern/openapi.json
@@ -26255,7 +26255,14 @@
"description": "If set to True, the agent will be hidden."
},
"parallel_tool_calls": {
- "type": "boolean",
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
"title": "Parallel Tool Calls",
"description": "If set to True, enables parallel tool calling. Defaults to False.",
"default": false
@@ -29567,7 +29574,14 @@
"description": "If set to True, the agent will be hidden."
},
"parallel_tool_calls": {
- "type": "boolean",
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
"title": "Parallel Tool Calls",
"description": "If set to True, enables parallel tool calling. Defaults to False.",
"default": false
@@ -36821,7 +36835,14 @@
"description": "If set to True, the agent will be hidden."
},
"parallel_tool_calls": {
- "type": "boolean",
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
"title": "Parallel Tool Calls",
"description": "If set to True, enables parallel tool calling. Defaults to False.",
"default": false
@@ -38046,7 +38067,14 @@
"description": "If set to True, the agent will be hidden."
},
"parallel_tool_calls": {
- "type": "boolean",
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
"title": "Parallel Tool Calls",
"description": "If set to True, enables parallel tool calling. Defaults to False.",
"default": false
diff --git a/letta/schemas/agent.py b/letta/schemas/agent.py
index 8b11afcfe..197a32c53 100644
--- a/letta/schemas/agent.py
+++ b/letta/schemas/agent.py
@@ -256,7 +256,7 @@ class CreateAgent(BaseModel, validate_assignment=True): #
None,
description="If set to True, the agent will be hidden.",
)
- parallel_tool_calls: bool = Field(False, description="If set to True, enables parallel tool calling. Defaults to False.")
+ parallel_tool_calls: Optional[bool] = Field(False, description="If set to True, enables parallel tool calling. Defaults to False.")
@field_validator("name")
@classmethod
@@ -372,7 +372,7 @@ class UpdateAgent(BaseModel):
None,
description="If set to True, the agent will be hidden.",
)
- parallel_tool_calls: bool = Field(False, description="If set to True, enables parallel tool calling. Defaults to False.")
+ parallel_tool_calls: Optional[bool] = Field(False, description="If set to True, enables parallel tool calling. Defaults to False.")
model_config = ConfigDict(extra="ignore") # Ignores extra fields