From e6cb5b59f739b76e9c8253a75f5552bac3032e31 Mon Sep 17 00:00:00 2001 From: abonneth <206544678+abonneth@users.noreply.github.com> Date: Fri, 9 Oct 2026 09:14:50 +0000 Subject: [PATCH] chore(sdk): sync generated SDK (v1.2.3) --- openapi.json | 8 +++++++- pyproject.toml | 2 +- src/hai_agents/agents/client.py | 8 ++++---- src/hai_agents/agents/raw_client.py | 8 ++++---- src/hai_agents/core/client_wrapper.py | 4 ++-- .../environments/types/create_environment_request.py | 1 + .../environments/types/update_environment_request_body.py | 1 + src/hai_agents/types/agent.py | 2 +- src/hai_agents/types/environment.py | 1 + src/hai_agents/types/workstation.py | 5 +++++ uv.lock | 2 +- 11 files changed, 28 insertions(+), 14 deletions(-) diff --git a/openapi.json b/openapi.json index 5fbf664..2980a38 100644 --- a/openapi.json +++ b/openapi.json @@ -4524,7 +4524,7 @@ }, "type": "array", "title": "Environments", - "description": "Environments the agent runs in. Each entry is a registered environment's id or an inline definition. At most one per kind. Required unless the agent delegates to subagents (a pure orchestrator owns none)." + "description": "Environments the agent runs in. Each entry is a registered environment's id or an inline definition. At most one per kind. Required unless the agent delegates to subagents or uses client-executed custom tools." }, "model": { "anyOf": [ @@ -9057,6 +9057,12 @@ ], "title": "Session Id", "description": "Connect to an existing workstation session by id instead of starting a new one." + }, + "lazy": { + "type": "boolean", + "title": "Lazy", + "description": "Provision on the agent's first use instead of at startup. Cloud workstations only.", + "default": false } }, "type": "object", diff --git a/pyproject.toml b/pyproject.toml index 4d6b085..ff9c393 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "hai-agents" -version = "1.2.2" +version = "1.2.3" description = "Python SDK for H Company's Agents API: autonomous agents powered by Holo." requires-python = ">=3.10" readme = "README.md" diff --git a/src/hai_agents/agents/client.py b/src/hai_agents/agents/client.py index ee31c0b..faecdff 100644 --- a/src/hai_agents/agents/client.py +++ b/src/hai_agents/agents/client.py @@ -126,7 +126,7 @@ def create_agent( What the agent does. Parent agents read this to decide when to delegate to it. environments : typing.Sequence[AgentEnvironmentsItem] - Environments the agent runs in. Each entry is a registered environment's id or an inline definition. At most one per kind. Required unless the agent delegates to subagents (a pure orchestrator owns none). + Environments the agent runs in. Each entry is a registered environment's id or an inline definition. At most one per kind. Required unless the agent delegates to subagents or uses client-executed custom tools. model : typing.Optional[str] Model that serves the agent. Defaults to the platform model if omitted. @@ -254,7 +254,7 @@ def update_agent( What the agent does. Parent agents read this to decide when to delegate to it. environments : typing.Sequence[AgentEnvironmentsItem] - Environments the agent runs in. Each entry is a registered environment's id or an inline definition. At most one per kind. Required unless the agent delegates to subagents (a pure orchestrator owns none). + Environments the agent runs in. Each entry is a registered environment's id or an inline definition. At most one per kind. Required unless the agent delegates to subagents or uses client-executed custom tools. model : typing.Optional[str] Model that serves the agent. Defaults to the platform model if omitted. @@ -531,7 +531,7 @@ async def create_agent( What the agent does. Parent agents read this to decide when to delegate to it. environments : typing.Sequence[AgentEnvironmentsItem] - Environments the agent runs in. Each entry is a registered environment's id or an inline definition. At most one per kind. Required unless the agent delegates to subagents (a pure orchestrator owns none). + Environments the agent runs in. Each entry is a registered environment's id or an inline definition. At most one per kind. Required unless the agent delegates to subagents or uses client-executed custom tools. model : typing.Optional[str] Model that serves the agent. Defaults to the platform model if omitted. @@ -675,7 +675,7 @@ async def update_agent( What the agent does. Parent agents read this to decide when to delegate to it. environments : typing.Sequence[AgentEnvironmentsItem] - Environments the agent runs in. Each entry is a registered environment's id or an inline definition. At most one per kind. Required unless the agent delegates to subagents (a pure orchestrator owns none). + Environments the agent runs in. Each entry is a registered environment's id or an inline definition. At most one per kind. Required unless the agent delegates to subagents or uses client-executed custom tools. model : typing.Optional[str] Model that serves the agent. Defaults to the platform model if omitted. diff --git a/src/hai_agents/agents/raw_client.py b/src/hai_agents/agents/raw_client.py index 5ed9ac6..9ca2afa 100644 --- a/src/hai_agents/agents/raw_client.py +++ b/src/hai_agents/agents/raw_client.py @@ -147,7 +147,7 @@ def create_agent( What the agent does. Parent agents read this to decide when to delegate to it. environments : typing.Sequence[AgentEnvironmentsItem] - Environments the agent runs in. Each entry is a registered environment's id or an inline definition. At most one per kind. Required unless the agent delegates to subagents (a pure orchestrator owns none). + Environments the agent runs in. Each entry is a registered environment's id or an inline definition. At most one per kind. Required unless the agent delegates to subagents or uses client-executed custom tools. model : typing.Optional[str] Model that serves the agent. Defaults to the platform model if omitted. @@ -332,7 +332,7 @@ def update_agent( What the agent does. Parent agents read this to decide when to delegate to it. environments : typing.Sequence[AgentEnvironmentsItem] - Environments the agent runs in. Each entry is a registered environment's id or an inline definition. At most one per kind. Required unless the agent delegates to subagents (a pure orchestrator owns none). + Environments the agent runs in. Each entry is a registered environment's id or an inline definition. At most one per kind. Required unless the agent delegates to subagents or uses client-executed custom tools. model : typing.Optional[str] Model that serves the agent. Defaults to the platform model if omitted. @@ -696,7 +696,7 @@ async def create_agent( What the agent does. Parent agents read this to decide when to delegate to it. environments : typing.Sequence[AgentEnvironmentsItem] - Environments the agent runs in. Each entry is a registered environment's id or an inline definition. At most one per kind. Required unless the agent delegates to subagents (a pure orchestrator owns none). + Environments the agent runs in. Each entry is a registered environment's id or an inline definition. At most one per kind. Required unless the agent delegates to subagents or uses client-executed custom tools. model : typing.Optional[str] Model that serves the agent. Defaults to the platform model if omitted. @@ -881,7 +881,7 @@ async def update_agent( What the agent does. Parent agents read this to decide when to delegate to it. environments : typing.Sequence[AgentEnvironmentsItem] - Environments the agent runs in. Each entry is a registered environment's id or an inline definition. At most one per kind. Required unless the agent delegates to subagents (a pure orchestrator owns none). + Environments the agent runs in. Each entry is a registered environment's id or an inline definition. At most one per kind. Required unless the agent delegates to subagents or uses client-executed custom tools. model : typing.Optional[str] Model that serves the agent. Defaults to the platform model if omitted. diff --git a/src/hai_agents/core/client_wrapper.py b/src/hai_agents/core/client_wrapper.py index be22f85..549efc3 100644 --- a/src/hai_agents/core/client_wrapper.py +++ b/src/hai_agents/core/client_wrapper.py @@ -29,9 +29,9 @@ def get_headers(self) -> typing.Dict[str, str]: import platform headers: typing.Dict[str, str] = { - "User-Agent": "hai_agents/1.2.2", + "User-Agent": "hai_agents/1.2.3", "X-HCompany-Client-Name": "hai_agents", - "X-HCompany-Client-Version": "1.2.2", + "X-HCompany-Client-Version": "1.2.3", "X-HCompany-Client-Type": "sdk", "X-HCompany-Language": "Python", "X-HCompany-Runtime": f"python/{platform.python_version()}", diff --git a/src/hai_agents/environments/types/create_environment_request.py b/src/hai_agents/environments/types/create_environment_request.py index 113e6db..b4a084a 100644 --- a/src/hai_agents/environments/types/create_environment_request.py +++ b/src/hai_agents/environments/types/create_environment_request.py @@ -78,6 +78,7 @@ class CreateEnvironmentRequest_Workstation(UniversalBaseModel): id: str host: typing.Optional[WorkstationHost] = None session_id: typing.Optional[str] = None + lazy: typing.Optional[bool] = None if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/hai_agents/environments/types/update_environment_request_body.py b/src/hai_agents/environments/types/update_environment_request_body.py index 1e80d50..3bb0c0b 100644 --- a/src/hai_agents/environments/types/update_environment_request_body.py +++ b/src/hai_agents/environments/types/update_environment_request_body.py @@ -78,6 +78,7 @@ class UpdateEnvironmentRequestBody_Workstation(UniversalBaseModel): id: str host: typing.Optional[WorkstationHost] = None session_id: typing.Optional[str] = None + lazy: typing.Optional[bool] = None if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/hai_agents/types/agent.py b/src/hai_agents/types/agent.py index c8fc25d..212198a 100644 --- a/src/hai_agents/types/agent.py +++ b/src/hai_agents/types/agent.py @@ -29,7 +29,7 @@ class Agent(UniversalBaseModel): environments: typing.List[AgentEnvironmentsItem] = pydantic.Field() """ - Environments the agent runs in. Each entry is a registered environment's id or an inline definition. At most one per kind. Required unless the agent delegates to subagents (a pure orchestrator owns none). + Environments the agent runs in. Each entry is a registered environment's id or an inline definition. At most one per kind. Required unless the agent delegates to subagents or uses client-executed custom tools. """ model: typing.Optional[str] = pydantic.Field(default=None) diff --git a/src/hai_agents/types/environment.py b/src/hai_agents/types/environment.py index 320c660..1c58bd8 100644 --- a/src/hai_agents/types/environment.py +++ b/src/hai_agents/types/environment.py @@ -78,6 +78,7 @@ class Environment_Workstation(UniversalBaseModel): id: str host: typing.Optional[WorkstationHost] = None session_id: typing.Optional[str] = None + lazy: typing.Optional[bool] = None if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/hai_agents/types/workstation.py b/src/hai_agents/types/workstation.py index 50e83f1..c1345a5 100644 --- a/src/hai_agents/types/workstation.py +++ b/src/hai_agents/types/workstation.py @@ -27,6 +27,11 @@ class Workstation(UniversalBaseModel): Connect to an existing workstation session by id instead of starting a new one. """ + lazy: typing.Optional[bool] = pydantic.Field(default=None) + """ + Provision on the agent's first use instead of at startup. Cloud workstations only. + """ + if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 else: diff --git a/uv.lock b/uv.lock index c626cf9..e78c31c 100644 --- a/uv.lock +++ b/uv.lock @@ -541,7 +541,7 @@ wheels = [ [[package]] name = "hai-agents" -version = "1.2.2" +version = "1.2.3" source = { editable = "." } dependencies = [ { name = "httpx" },