Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: Give default for `tool_exec_environment_variables` on `AgentState` (#531)
Matthew Zhou68ec55c18d8d
diff --git a/letta/schemas/agent.py b/letta/schemas/agent.pyindex cbd9e2041..896419e11 100644--- a/letta/schemas/agent.py+++ b/letta/schemas/agent.py@@ -80,7 +80,7 @@ class AgentState(OrmMetadataBase, validate_assignment=True):sources: List[Source] = Field(..., description="The sources used by the agent.")tags: List[str] = Field(..., description="The tags associated with the agent.")tool_exec_environment_variables: List[AgentEnvironmentVariable] = Field(- ..., description="The environment variables for tool execution specific to this agent."+ default_factory=list, description="The environment variables for tool execution specific to this agent.")def get_agent_env_vars_as_dict(self) -> Dict[str, str]: