Skip to content

Commit

Permalink
fix: createAgent issue (#639)
Browse files Browse the repository at this point in the history
Co-authored-by: Shubham Naik <shub@memgpt.ai>
  • Loading branch information
4shub and Shubham Naik authored Jan 14, 2025
1 parent 59daa16 commit 27d2d52
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions letta/schemas/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ class CreateAgent(BaseModel, validate_assignment=True): #
name: str = Field(default_factory=lambda: create_random_username(), description="The name of the agent.")

# memory creation
memory_blocks: List[CreateBlock] = Field(
...,
memory_blocks: Optional[List[CreateBlock]] = Field(
None,
description="The blocks to create in the agent's in-context memory.",
)
# TODO: This is a legacy field and should be removed ASAP to force `tool_ids` usage
Expand Down Expand Up @@ -129,6 +129,7 @@ class CreateAgent(BaseModel, validate_assignment=True): #
context_window_limit: Optional[int] = Field(None, description="The context window limit used by the agent.")
embedding_chunk_size: Optional[int] = Field(DEFAULT_EMBEDDING_CHUNK_SIZE, description="The embedding chunk size used by the agent.")
from_template: Optional[str] = Field(None, description="The template id used to configure the agent")
template: bool = Field(False, description="Whether the agent is a template")
project: Optional[str] = Field(None, description="The project slug that the agent will be associated with.")
tool_exec_environment_variables: Optional[Dict[str, str]] = Field(
None, description="The environment variables for tool execution specific to this agent."
Expand Down

0 comments on commit 27d2d52

Please sign in to comment.