feat: pipe env vars through agent file v2 [LET-4054] (#4217)

feat: pipe env vars through agent file v2
This commit is contained in:
cthomas
2025-08-26 14:54:06 -07:00
committed by GitHub
parent e0c79002d9
commit c0c43c1b00

View File

@@ -251,6 +251,7 @@ async def import_agent(
override_existing_tools: bool = True,
project_id: str | None = None,
strip_messages: bool = False,
env_vars: Optional[dict[str, Any]] = None,
) -> List[str]:
"""
Import an agent using the new AgentFileSchema format.
@@ -262,7 +263,11 @@ async def import_agent(
try:
import_result = await server.agent_serialization_manager.import_file(
schema=agent_schema, actor=actor, append_copy_suffix=append_copy_suffix, override_existing_tools=override_existing_tools
schema=agent_schema,
actor=actor,
append_copy_suffix=append_copy_suffix,
override_existing_tools=override_existing_tools,
env_vars=env_vars,
)
if not import_result.success:
@@ -340,6 +345,7 @@ async def import_agent_serialized(
override_existing_tools=override_existing_tools,
project_id=project_id,
strip_messages=strip_messages,
env_vars=env_vars,
)
else:
# This is a legacy AgentSchema