fix: Give default for tool_exec_environment_variables on AgentState (#531)

This commit is contained in:
Matthew Zhou
2025-01-07 09:19:45 -10:00
committed by GitHub
parent c03efab358
commit 8d9454c8ae

View File

@@ -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]: