mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-23 20:23:00 +00:00
client: regenerate from hanzo-inc/cloud@60477ef158 (8.5.607)
Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
||||
ref=ff08c86ce2535d8372e6c5447d6d024e9eae4c1d
|
||||
sha256=b3384ac85c338b4db62e3ccc70b11295aabab46253e8bc1ccb8f0869a99f520b
|
||||
ref=60477ef1584b32b2048eee0f1347163fc07827e9
|
||||
sha256=06277697a9bf620d061e23192ba8e62b05c407f950871aee724f4a4b0f463c07
|
||||
repo=hanzo-inc/cloud
|
||||
path=openapi.yaml
|
||||
|
||||
@@ -3264,7 +3264,7 @@ class AutoApi:
|
||||
) -> AutoAutomation:
|
||||
"""Changes an automation, for the person it runs as or an admin of the org: any field it was created with, and `enabled`, which arms or disarms its schedule.
|
||||
|
||||
Changes an automation, for the person it runs as or an admin of the org: any field it was created with, and `enabled`, which arms or disarms its schedule. A field the request omits is left alone; `project` or `model` sent as null (or \"\") clears it. Any change but `enabled` makes the caller the person it runs as from then on.
|
||||
Changes an automation, for the person it runs as or an admin of the org: any field it was created with, and `enabled`, which arms or disarms its schedule. A field the request omits is left alone; `project` or `model` sent as null (or \"\") clears it. Any change but `enabled` makes the caller the person it runs as from then on. A draft is finished by saving its `instructions`: it becomes an automation in place, on unless `enabled` says otherwise.
|
||||
|
||||
:param id: ID is the automation, from the path. (required)
|
||||
:type id: str
|
||||
@@ -3335,7 +3335,7 @@ class AutoApi:
|
||||
) -> ApiResponse[AutoAutomation]:
|
||||
"""Changes an automation, for the person it runs as or an admin of the org: any field it was created with, and `enabled`, which arms or disarms its schedule.
|
||||
|
||||
Changes an automation, for the person it runs as or an admin of the org: any field it was created with, and `enabled`, which arms or disarms its schedule. A field the request omits is left alone; `project` or `model` sent as null (or \"\") clears it. Any change but `enabled` makes the caller the person it runs as from then on.
|
||||
Changes an automation, for the person it runs as or an admin of the org: any field it was created with, and `enabled`, which arms or disarms its schedule. A field the request omits is left alone; `project` or `model` sent as null (or \"\") clears it. Any change but `enabled` makes the caller the person it runs as from then on. A draft is finished by saving its `instructions`: it becomes an automation in place, on unless `enabled` says otherwise.
|
||||
|
||||
:param id: ID is the automation, from the path. (required)
|
||||
:type id: str
|
||||
@@ -3406,7 +3406,7 @@ class AutoApi:
|
||||
) -> RESTResponseType:
|
||||
"""Changes an automation, for the person it runs as or an admin of the org: any field it was created with, and `enabled`, which arms or disarms its schedule.
|
||||
|
||||
Changes an automation, for the person it runs as or an admin of the org: any field it was created with, and `enabled`, which arms or disarms its schedule. A field the request omits is left alone; `project` or `model` sent as null (or \"\") clears it. Any change but `enabled` makes the caller the person it runs as from then on.
|
||||
Changes an automation, for the person it runs as or an admin of the org: any field it was created with, and `enabled`, which arms or disarms its schedule. A field the request omits is left alone; `project` or `model` sent as null (or \"\") clears it. Any change but `enabled` makes the caller the person it runs as from then on. A draft is finished by saving its `instructions`: it becomes an automation in place, on unless `enabled` says otherwise.
|
||||
|
||||
:param id: ID is the automation, from the path. (required)
|
||||
:type id: str
|
||||
@@ -3843,7 +3843,7 @@ class AutoApi:
|
||||
) -> AutoAutomation:
|
||||
"""Creates an automation and arms its schedule.
|
||||
|
||||
Creates an automation and arms its schedule. It runs as the caller: their Dev run, in this org, each time it fires. `name` and `instructions` are required; no `schedule` runs it only on demand, and no `permissions` is ask: it proposes what it would do and changes nothing.
|
||||
Creates an automation and arms its schedule. It runs as the caller: their Dev run, in this org, each time it fires. `name` and `instructions` are required; no `schedule` runs it only on demand, no `permissions` is ask: it proposes what it would do and changes nothing, and `enabled: false` creates it off, its schedule unarmed.
|
||||
|
||||
:param auto_automation_in: (required)
|
||||
:type auto_automation_in: AutoAutomationIn
|
||||
@@ -3910,7 +3910,7 @@ class AutoApi:
|
||||
) -> ApiResponse[AutoAutomation]:
|
||||
"""Creates an automation and arms its schedule.
|
||||
|
||||
Creates an automation and arms its schedule. It runs as the caller: their Dev run, in this org, each time it fires. `name` and `instructions` are required; no `schedule` runs it only on demand, and no `permissions` is ask: it proposes what it would do and changes nothing.
|
||||
Creates an automation and arms its schedule. It runs as the caller: their Dev run, in this org, each time it fires. `name` and `instructions` are required; no `schedule` runs it only on demand, no `permissions` is ask: it proposes what it would do and changes nothing, and `enabled: false` creates it off, its schedule unarmed.
|
||||
|
||||
:param auto_automation_in: (required)
|
||||
:type auto_automation_in: AutoAutomationIn
|
||||
@@ -3977,7 +3977,7 @@ class AutoApi:
|
||||
) -> RESTResponseType:
|
||||
"""Creates an automation and arms its schedule.
|
||||
|
||||
Creates an automation and arms its schedule. It runs as the caller: their Dev run, in this org, each time it fires. `name` and `instructions` are required; no `schedule` runs it only on demand, and no `permissions` is ask: it proposes what it would do and changes nothing.
|
||||
Creates an automation and arms its schedule. It runs as the caller: their Dev run, in this org, each time it fires. `name` and `instructions` are required; no `schedule` runs it only on demand, no `permissions` is ask: it proposes what it would do and changes nothing, and `enabled: false` creates it off, its schedule unarmed.
|
||||
|
||||
:param auto_automation_in: (required)
|
||||
:type auto_automation_in: AutoAutomationIn
|
||||
|
||||
@@ -29,6 +29,7 @@ class AutoAutomation(BaseModel):
|
||||
AutoAutomation
|
||||
""" # noqa: E501
|
||||
created: Optional[StrictStr] = Field(default=None, description="Created and Updated are RFC 3339 UTC.")
|
||||
draft: Optional[StrictBool] = Field(default=None, description="Draft is a flow with no step yet: it has no instructions, never runs, and becomes an automation when its instructions are saved.")
|
||||
enabled: Optional[StrictBool] = Field(default=None, description="Enabled is whether its schedule is armed.")
|
||||
id: Optional[StrictStr] = Field(default=None, description="ID is the automation's id, which is also its flow's.")
|
||||
instructions: Optional[StrictStr] = Field(default=None, description="Instructions are what the agent is asked to do each run.")
|
||||
@@ -41,7 +42,7 @@ class AutoAutomation(BaseModel):
|
||||
project: Optional[StrictStr] = Field(default=None, description="Project is the Dev project the run works in, by its slug; null for none.")
|
||||
schedule: Optional[AutoSchedule] = Field(default=None, description="Schedule is when it runs.")
|
||||
updated: Optional[StrictStr] = None
|
||||
__properties: ClassVar[List[str]] = ["created", "enabled", "id", "instructions", "last", "model", "name", "next", "notify", "permissions", "project", "schedule", "updated"]
|
||||
__properties: ClassVar[List[str]] = ["created", "draft", "enabled", "id", "instructions", "last", "model", "name", "next", "notify", "permissions", "project", "schedule", "updated"]
|
||||
|
||||
model_config = ConfigDict(
|
||||
populate_by_name=True,
|
||||
@@ -101,6 +102,7 @@ class AutoAutomation(BaseModel):
|
||||
|
||||
_obj = cls.model_validate({
|
||||
"created": obj.get("created"),
|
||||
"draft": obj.get("draft"),
|
||||
"enabled": obj.get("enabled"),
|
||||
"id": obj.get("id"),
|
||||
"instructions": obj.get("instructions"),
|
||||
|
||||
@@ -27,6 +27,7 @@ class AutoAutomationIn(BaseModel):
|
||||
"""
|
||||
AutoAutomationIn
|
||||
""" # noqa: E501
|
||||
enabled: Optional[StrictBool] = Field(default=None, description="Enabled arms its schedule. Absent is true.")
|
||||
instructions: Optional[StrictStr] = Field(default=None, description="Instructions are what the agent is asked to do each run. Required.")
|
||||
model: Optional[StrictStr] = Field(default=None, description="Model is the model id to think with. Optional; absent is the default.")
|
||||
name: Optional[StrictStr] = Field(default=None, description="Name is what it is called. Required.")
|
||||
@@ -34,7 +35,7 @@ class AutoAutomationIn(BaseModel):
|
||||
permissions: Optional[StrictStr] = Field(default=None, description="Permissions is auto (works without stopping) or ask (proposes, changes nothing). Absent is ask.")
|
||||
project: Optional[StrictStr] = Field(default=None, description="Project is a Dev project's slug to work in. Optional.")
|
||||
schedule: Optional[AutoSchedule] = Field(default=None, description="Schedule is when it runs. Absent runs it only on demand.")
|
||||
__properties: ClassVar[List[str]] = ["instructions", "model", "name", "notify", "permissions", "project", "schedule"]
|
||||
__properties: ClassVar[List[str]] = ["enabled", "instructions", "model", "name", "notify", "permissions", "project", "schedule"]
|
||||
|
||||
model_config = ConfigDict(
|
||||
populate_by_name=True,
|
||||
@@ -90,6 +91,7 @@ class AutoAutomationIn(BaseModel):
|
||||
return cls.model_validate(obj)
|
||||
|
||||
_obj = cls.model_validate({
|
||||
"enabled": obj.get("enabled"),
|
||||
"instructions": obj.get("instructions"),
|
||||
"model": obj.get("model"),
|
||||
"name": obj.get("name"),
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "hanzoai"
|
||||
version = "8.5.605"
|
||||
version = "8.5.607"
|
||||
description = "The official Python library for the Hanzo API"
|
||||
dynamic = ["readme"]
|
||||
license = "Apache-2.0"
|
||||
|
||||
Reference in New Issue
Block a user