mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-23 20:23:00 +00:00
The store and agent examples name the document's ProvisioningProvisionRequest and AgentCreateAgentIn.
This commit is contained in:
@@ -19,7 +19,7 @@ rows, because the document declares ``GET /v1/agent/{ref}/runs`` without its
|
||||
|
||||
import time
|
||||
|
||||
from hanzoai.cloud import AgentApi, CreateAgentIn
|
||||
from hanzoai.cloud import AgentApi, AgentCreateAgentIn
|
||||
|
||||
from examples.client import MODEL, client, run
|
||||
|
||||
@@ -32,7 +32,7 @@ def main() -> None:
|
||||
agents = AgentApi(api)
|
||||
|
||||
created = agents.post_agent(
|
||||
CreateAgentIn(
|
||||
AgentCreateAgentIn(
|
||||
name=NAME,
|
||||
model=MODEL,
|
||||
description="Created by the hanzoai SDK agent example.",
|
||||
|
||||
@@ -18,7 +18,7 @@ rather than leaving it billable for the next run to collide with.
|
||||
|
||||
import time
|
||||
|
||||
from hanzoai.cloud import ProvisionRequest, ProvisioningApi
|
||||
from hanzoai.cloud import ProvisioningApi, ProvisioningProvisionRequest
|
||||
|
||||
from examples.client import client, run
|
||||
|
||||
@@ -29,7 +29,7 @@ def main() -> None:
|
||||
with client() as api:
|
||||
kv = ProvisioningApi(api)
|
||||
|
||||
kv.post_provisioning_kv(ProvisionRequest(name=NAME))
|
||||
kv.post_provisioning_kv(ProvisioningProvisionRequest(name=NAME))
|
||||
print(f"provisioned {NAME}")
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user