Files

541 KiB

\AiAPI

All URIs are relative to https://api.hanzo.ai

Method HTTP request Description
AiChat Post /v1/ai/mcp/chat Asks one model one prompt and answers the reply, which model served it and who paid.
AiDecide Post /v1/ai/mcp/decisions Runs one decision — the caller's own POST /v1/decisions, gated and billed exactly as that route is — and answers the decision, which model served it and who paid.
AiLimits Get /v1/ai/limits Reads the caller's plan usage: for each class of model the plan includes, the share used of the billing period and of its short window, who pays for the next request, and whether the caller is in limited mode and why; the share used of the session and the day; and the ways on.
AiMCPTools Get /v1/ai/mcp/tools Reports what THIS PROCESS's MCP server carries: how many tools its own registry projects, optionally their names, and which subsystems this process composed.
AiModels Get /v1/ai/mcp/models Searches the model catalog — the one GET /v1/models lists, every OpenRouter model among it as last synced — by text, class, family, capability or free, and answers each match with its class, family, whether it is free, its list price (per token and per million; variable for a router billed at the answering model's price; a resold model's every vendor rate and conditional rate as billed), context window, output bound, expiry and capabilities.
AiRateLimit Get /v1/ai/limits/rate Reads the per-minute limit as it governs the organization the caller acts in: the model requests one person may make in a minute on every surface — the API, chat, coding runs, bots and MCP — the platform's default, which is the most the organization may set, and the organization's own setting.
AiSetRateLimit Put /v1/ai/limits/rate Sets the model requests one person may make in a minute acting in the organization the caller acts in, on every surface: 1 up to the platform's default, never more, or 0 to hold its people to the default.
DecisionsCorrect Post /v1/decisions/{decision}/corrections Files a correction of one question of one of the org's Kai decisions: the right answer, which must be one of that question's options and not what Kai answered, and why.
DecisionsCorrections Get /v1/decisions/{decision}/corrections Answers one of the org's decisions' corrections, each captured (it can teach) or missing (the decision was made with capture off).
DecisionsUncorrect Delete /v1/decisions/{decision}/corrections/{id} Deletes one correction of one of the org's decisions.
DeleteAiArticlesByOwnerByName Delete /v1/ai/articles/{owner}/{name} Delete a article
DeleteAiAssetsByOwnerByName Delete /v1/ai/assets/{owner}/{name} Delete a asset
DeleteAiChatsByOwnerByName Delete /v1/ai/chats/{owner}/{name} Delete a chat
DeleteAiConnectionsByProvider Delete /v1/ai/connections/{provider} Disconnects a third-party AI account: it deactivates the org's row so completion resolution falls back to the global Hanzo account (no BYO), and best-effort tombstones the sealed secret.
DeleteAiDeploymentsByOwnerByName Delete /v1/ai/deployments/{owner}/{name} Delete a application
DeleteAiFilesByOwnerByName Delete /v1/ai/files/{owner}/{name} Delete a file
DeleteAiFormsByOwnerByName Delete /v1/ai/forms/{owner}/{name} Delete a form
DeleteAiGraphsByOwnerByName Delete /v1/ai/graphs/{owner}/{name} Delete a graph
DeleteAiMessagesByOwnerByName Delete /v1/ai/messages/{owner}/{name} Delete a message
DeleteAiMessagesWelcome Delete /v1/ai/messages/welcome Welcome (message)
DeleteAiNodesByOwnerByName Delete /v1/ai/nodes/{owner}/{name} Delete a node
DeleteAiOrgSettings Delete /v1/ai/org/settings The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
DeleteAiOrgSettingsList Delete /v1/ai/org/settings/list The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
DeleteAiProvidersByOwnerByName Delete /v1/ai/providers/{owner}/{name} Delete a provider
DeleteAiRecordsByOwnerByName Delete /v1/ai/records/{owner}/{name} Delete a record
DeleteAiRemoteConnectionsByOwnerByName Delete /v1/ai/remote-connections/{owner}/{name} Delete a connection
DeleteAiRouterArtifactMeta Delete /v1/ai/router/artifact-meta The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
DeleteAiRouterData Delete /v1/ai/router/data Router Data
DeleteAiRouterDefaults Delete /v1/ai/router/defaults The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
DeleteAiRouterLedger Delete /v1/ai/router/ledger The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
DeleteAiRouterPolicy Delete /v1/ai/router/policy The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
DeleteAiRouterRewards Delete /v1/ai/router/rewards The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
DeleteAiRoutesByOwnerByName Delete /v1/ai/routes/{owner}/{name} Delete a model-route
DeleteAiScalesByOwnerByName Delete /v1/ai/scales/{owner}/{name} Delete a scale
DeleteAiScansByOwnerByName Delete /v1/ai/scans/{owner}/{name} Delete a scan
DeleteAiSigninSessionsByOwnerByName Delete /v1/ai/signin-sessions/{owner}/{name} Delete a session
DeleteAiStoresByOwnerByName Delete /v1/ai/stores/{owner}/{name} Delete a store
DeleteAiTasksByOwnerByName Delete /v1/ai/tasks/{owner}/{name} Delete a task
DeleteAiTemplatesByOwnerByName Delete /v1/ai/templates/{owner}/{name} Delete a template
DeleteAiTreeFilesByOwnerByName Delete /v1/ai/tree-files/{owner}/{name} Delete a tree-file
DeleteAiVectorsAll Delete /v1/ai/vectors/all All (vector)
DeleteAiVectorsByOwnerByName Delete /v1/ai/vectors/{owner}/{name} Delete a vector
DeleteAiVideosByOwnerByName Delete /v1/ai/videos/{owner}/{name} Delete a video
DeleteAiWorkflowsByOwnerByName Delete /v1/ai/workflows/{owner}/{name} Delete a workflow
DeleteAudioTranscriptById Delete /v1/audio/transcript/{id} Serves the growing transcript over HTTP: POST opens one, POST to its id pushes raw pcm16 at 16 kHz, and DELETE closes it with the settled text.
GetAiAccount Get /v1/ai/account Account
GetAiActivities Get /v1/ai/activities List activities
GetAiAnswer Get /v1/ai/answer Answer
GetAiArticles Get /v1/ai/articles List articles
GetAiArticlesByOwnerByName Get /v1/ai/articles/{owner}/{name} Retrieve a article
GetAiArticlesGlobal Get /v1/ai/articles/global List articles across tenants
GetAiAssets Get /v1/ai/assets List assets
GetAiAssetsByOwnerByName Get /v1/ai/assets/{owner}/{name} Retrieve a asset
GetAiChats Get /v1/ai/chats List chats
GetAiChatsByOwnerByName Get /v1/ai/chats/{owner}/{name} Retrieve a chat
GetAiChatsGlobal Get /v1/ai/chats/global List chats across tenants
GetAiConnections Get /v1/ai/connections Lists the org's connectable AI accounts and whether each is currently connected.
GetAiConnectionsByProviderAuthorize Get /v1/ai/connections/{provider}/authorize Begins an OAuth connection for the caller's org: it binds the org into a signed state and sends the caller to the provider's authorize URL.
GetAiConnectionsByProviderCallback Get /v1/ai/connections/{provider}/callback Completes OAuth: the org is recovered from the SIGNED state (not a header), the code is exchanged for a token, the token is SEALED into KMS (never the row/logs) through the same path as a BYOK key, and the org's provider row is upserted to "connected".
GetAiConnectionsByProviderUsage Get /v1/ai/connections/{provider}/usage Imports the caller org's usage for a connected third-party account.
GetAiDashboardsAgents Get /v1/ai/dashboards/agents Dashboards Agents
GetAiDashboardsVm Get /v1/ai/dashboards/vm Dashboards Vm
GetAiDeployments Get /v1/ai/deployments List deployments
GetAiDeploymentsByOwnerByName Get /v1/ai/deployments/{owner}/{name} Retrieve a application
GetAiFiles Get /v1/ai/files List files
GetAiFilesActive Get /v1/ai/files/active Active (file)
GetAiFilesByOwnerByName Get /v1/ai/files/{owner}/{name} Retrieve a file
GetAiFilesGlobal Get /v1/ai/files/global List files across tenants
GetAiFinetuneHfDatasets Get /v1/ai/finetune/hf/datasets Proxies a HuggingFace dataset search (dataset picker).
GetAiFinetuneHfModels Get /v1/ai/finetune/hf/models Proxies a HuggingFace model search (base-model picker).
GetAiFinetuneHfRepo Get /v1/ai/finetune/hf/repo Returns a repo's detail (files, gated/private state).
GetAiFinetuneJob Get /v1/ai/finetune/job Returns one job with refreshed live status.
GetAiFinetuneJobs Get /v1/ai/finetune/jobs Returns the org's jobs, refreshing live status for active ones.
GetAiFinetunePresets Get /v1/ai/finetune/presets Returns the new-job catalog plus, when a selection is passed (?baseModel&method&task&preset[&datasetExamples]), the recommended config so the console can render "Recommended" as a one-click, ready-to-run default.
GetAiForms Get /v1/ai/forms List forms
GetAiFormsByOwnerByName Get /v1/ai/forms/{owner}/{name} Retrieve a form
GetAiFormsData Get /v1/ai/forms/data Data (form)
GetAiFormsGlobal Get /v1/ai/forms/global List forms across tenants
GetAiGraphs Get /v1/ai/graphs List graphs
GetAiGraphsByOwnerByName Get /v1/ai/graphs/{owner}/{name} Retrieve a graph
GetAiGraphsGlobal Get /v1/ai/graphs/global List graphs across tenants
GetAiK8sStatus Get /v1/ai/k8s-status K8s Status
GetAiMemoryFacts Get /v1/ai/memory/facts List the authenticated user's stored facts
GetAiMemoryList Get /v1/ai/memory/list List the authenticated user's memories, newest first
GetAiMemoryRecall Get /v1/ai/memory/recall Recall recent/relevant memories for context injection; with q it
GetAiMemorySearch Get /v1/ai/memory/search Search the authenticated user's memories (semantic, text fallback)
GetAiMessages Get /v1/ai/messages List messages
GetAiMessagesByOwnerByName Get /v1/ai/messages/{owner}/{name} Retrieve a message
GetAiMessagesByOwnerByNameAnswer Get /v1/ai/messages/{owner}/{name}/answer Answer (message)
GetAiNodes Get /v1/ai/nodes List nodes
GetAiNodesByOwnerByName Get /v1/ai/nodes/{owner}/{name} Retrieve a node
GetAiNodesByOwnerByNameTunnel Get /v1/ai/nodes/{owner}/{name}/tunnel Tunnel (node)
GetAiOrgSettings Get /v1/ai/org/settings The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
GetAiOrgSettingsList Get /v1/ai/org/settings/list The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
GetAiPrometheus Get /v1/ai/prometheus Prometheus
GetAiProviders Get /v1/ai/providers List providers
GetAiProvidersByOwnerByName Get /v1/ai/providers/{owner}/{name} Retrieve a provider
GetAiProvidersGlobal Get /v1/ai/providers/global List providers across tenants
GetAiRagContext Get /v1/ai/rag/context Return every stored chunk of one file_id (full document context).
GetAiRecords Get /v1/ai/records List records
GetAiRecordsByOwnerByName Get /v1/ai/records/{owner}/{name} Retrieve a record
GetAiRecordsQuery Get /v1/ai/records/query Query (record)
GetAiRecordsQuerySecond Get /v1/ai/records/query-second Query Second (record)
GetAiRemoteConnections Get /v1/ai/remote-connections List remote-connections
GetAiRemoteConnectionsByOwnerByName Get /v1/ai/remote-connections/{owner}/{name} Retrieve a connection
GetAiRouterArtifactMeta Get /v1/ai/router/artifact-meta The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
GetAiRouterCatalog Get /v1/ai/router/catalog Lists the Zen and Enso routing catalogs: what each serves, its accounts and model health, and its version history.
GetAiRouterData Get /v1/ai/router/data Router Data
GetAiRouterDefaults Get /v1/ai/router/defaults The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
GetAiRouterHistory Get /v1/ai/router/history Returns the router-improvement time-series.
GetAiRouterJudgePanel Get /v1/ai/router/judge-panel Returns the LIVE Mean-Field Judge Panel state: the configured panel + dynamic judge posture (enabled/sample) resolved from the "*" GlobalDefaultOwner row, the live in-process per-judge calibration (weight/mean/n), and the static published benchmark.
GetAiRouterLedger Get /v1/ai/router/ledger The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
GetAiRouterPolicy Get /v1/ai/router/policy The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
GetAiRouterRewards Get /v1/ai/router/rewards The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
GetAiRouterStats Get /v1/ai/router/stats Returns the router observability aggregate.
GetAiRoutes Get /v1/ai/routes List routes
GetAiRoutesByOwnerByName Get /v1/ai/routes/{owner}/{name} Retrieve a model-route
GetAiScales Get /v1/ai/scales List scales
GetAiScalesByOwnerByName Get /v1/ai/scales/{owner}/{name} Retrieve a scale
GetAiScalesGlobal Get /v1/ai/scales/global List scales across tenants
GetAiScalesPublic Get /v1/ai/scales/public Public (scale)
GetAiScans Get /v1/ai/scans List scans
GetAiScansByOwnerByName Get /v1/ai/scans/{owner}/{name} Retrieve a scan
GetAiSigninSessions Get /v1/ai/signin-sessions List signin-sessions
GetAiSigninSessionsByOwnerByName Get /v1/ai/signin-sessions/{owner}/{name} Retrieve a session
GetAiSigninSessionsDuplicated Get /v1/ai/signin-sessions/duplicated Duplicated (session)
GetAiStores Get /v1/ai/stores List stores
GetAiStoresByOwnerByName Get /v1/ai/stores/{owner}/{name} Retrieve a store
GetAiStoresGlobal Get /v1/ai/stores/global List stores across tenants
GetAiStoresNames Get /v1/ai/stores/names Names (store)
GetAiStoresProviders Get /v1/ai/stores/providers Providers (store)
GetAiSystem Get /v1/ai/system System
GetAiTasks Get /v1/ai/tasks List tasks
GetAiTasksByOwnerByName Get /v1/ai/tasks/{owner}/{name} Retrieve a task
GetAiTasksGlobal Get /v1/ai/tasks/global List tasks across tenants
GetAiTemplates Get /v1/ai/templates List templates
GetAiTemplatesByOwnerByName Get /v1/ai/templates/{owner}/{name} Retrieve a template
GetAiTrafficGlobe Get /v1/ai/traffic/globe Returns the PUBLIC live request-geo aggregate for the world.hanzo.ai "Hanzo mode" globe: WHERE requests to api.hanzo.ai are coming from, as country/region points with per-service-class counts, plus headline throughput rates.
GetAiTrainingContribution Get /v1/ai/training-contribution Training Contribution
GetAiUsages Get /v1/ai/usages List usages
GetAiUsagesByUser Get /v1/ai/usages/by-user By User (usage)
GetAiUsagesCloud Get /v1/ai/usages/cloud Cloud (usage)
GetAiUsagesRange Get /v1/ai/usages/range Range (usage)
GetAiUsagesUserNames Get /v1/ai/usages/user-names User Names (usage)
GetAiVectors Get /v1/ai/vectors List vectors
GetAiVectorsByOwnerByName Get /v1/ai/vectors/{owner}/{name} Retrieve a vector
GetAiVectorsGlobal Get /v1/ai/vectors/global List vectors across tenants
GetAiVersion Get /v1/ai/version Version
GetAiVideos Get /v1/ai/videos List videos
GetAiVideosByOwnerByName Get /v1/ai/videos/{owner}/{name} Retrieve a video
GetAiVideosGlobal Get /v1/ai/videos/global List videos across tenants
GetAiWorkflows Get /v1/ai/workflows List workflows
GetAiWorkflowsByOwnerByName Get /v1/ai/workflows/{owner}/{name} Retrieve a workflow
GetAiWorkflowsGlobal Get /v1/ai/workflows/global List workflows across tenants
GetModels Get /v1/models Returns the list of available models from the routing table.
GetModelsByModelAccess Get /v1/models/{model}/access Returns the caller's own standing for a gated model: "granted", "requested", or empty when they have never asked.
GetModelsProviders Get /v1/models/providers Public, secret-free list of the providers serving the models that GET /v1/models lists — the same source, projected.
GetModelsVendorsByVendor Get /v1/models/vendors/{vendor} Lists every model a vendor lists now, each entry exactly as the vendor listed it (prices, context, output bound, modalities, parameters, created, expiration), and when the list was last synced.
GetModelsVendorsByVendorEvents Get /v1/models/vendors/{vendor}/events Lists the changes syncs read in a vendor's model list, newest first.
GetVideosById Get /v1/videos/{id} Implements GET /v1/videos/{id} — poll a job's status.
GetVideosByIdContent Get /v1/videos/{id}/content Implements GET /v1/videos/{id}/content — download the finished MP4.
PatchAiArticlesByOwnerByName Patch /v1/ai/articles/{owner}/{name} Update a article
PatchAiAssetsByOwnerByName Patch /v1/ai/assets/{owner}/{name} Update a asset
PatchAiChatsByOwnerByName Patch /v1/ai/chats/{owner}/{name} Update a chat
PatchAiDeploymentsByOwnerByName Patch /v1/ai/deployments/{owner}/{name} Update a application
PatchAiFilesByOwnerByName Patch /v1/ai/files/{owner}/{name} Update a file
PatchAiFormsByOwnerByName Patch /v1/ai/forms/{owner}/{name} Update a form
PatchAiGraphsByOwnerByName Patch /v1/ai/graphs/{owner}/{name} Update a graph
PatchAiMessagesByOwnerByName Patch /v1/ai/messages/{owner}/{name} Update a message
PatchAiNodesByOwnerByName Patch /v1/ai/nodes/{owner}/{name} Update a node
PatchAiOrgSettings Patch /v1/ai/org/settings The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
PatchAiOrgSettingsList Patch /v1/ai/org/settings/list The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
PatchAiPreferences Patch /v1/ai/preferences Preferences
PatchAiProvidersByOwnerByName Patch /v1/ai/providers/{owner}/{name} Update a provider
PatchAiRecordsByOwnerByName Patch /v1/ai/records/{owner}/{name} Update a record
PatchAiRemoteConnectionsByOwnerByName Patch /v1/ai/remote-connections/{owner}/{name} Update a connection
PatchAiRouterArtifactMeta Patch /v1/ai/router/artifact-meta The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
PatchAiRouterDefaults Patch /v1/ai/router/defaults The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
PatchAiRouterLedger Patch /v1/ai/router/ledger The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
PatchAiRouterPolicy Patch /v1/ai/router/policy The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
PatchAiRouterRewards Patch /v1/ai/router/rewards The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
PatchAiRoutesByOwnerByName Patch /v1/ai/routes/{owner}/{name} Update a model-route
PatchAiScalesByOwnerByName Patch /v1/ai/scales/{owner}/{name} Update a scale
PatchAiScansByOwnerByName Patch /v1/ai/scans/{owner}/{name} Update a scan
PatchAiSigninSessionsByOwnerByName Patch /v1/ai/signin-sessions/{owner}/{name} Update a session
PatchAiStoresByOwnerByName Patch /v1/ai/stores/{owner}/{name} Update a store
PatchAiTasksByOwnerByName Patch /v1/ai/tasks/{owner}/{name} Update a task
PatchAiTemplatesByOwnerByName Patch /v1/ai/templates/{owner}/{name} Update a template
PatchAiTrainingContribution Patch /v1/ai/training-contribution Training Contribution
PatchAiTreeFilesByOwnerByName Patch /v1/ai/tree-files/{owner}/{name} Update a tree-file
PatchAiVectorsByOwnerByName Patch /v1/ai/vectors/{owner}/{name} Update a vector
PatchAiVideosByOwnerByName Patch /v1/ai/videos/{owner}/{name} Update a video
PatchAiWorkflowsByOwnerByName Patch /v1/ai/workflows/{owner}/{name} Update a workflow
PostAiArticles Post /v1/ai/articles Create a article
PostAiAssets Post /v1/ai/assets Create a asset
PostAiAssetsByOwnerByNameScan Post /v1/ai/assets/{owner}/{name}/scan Scan (asset)
PostAiAssetsScan Post /v1/ai/assets/scan Scan (asset)
PostAiChats Post /v1/ai/chats Create a chat
PostAiConnections Post /v1/ai/connections Connects (or reconnects) a third-party AI account for the org by sealing the supplied key into KMS and upserting the org's provider row.
PostAiConnectionsByProvider Post /v1/ai/connections/{provider} Disconnects a third-party AI account: it deactivates the org's row so completion resolution falls back to the global Hanzo account (no BYO), and best-effort tombstones the sealed secret.
PostAiDeployments Post /v1/ai/deployments Create a application
PostAiDeploymentsByOwnerByNameDeploy Post /v1/ai/deployments/{owner}/{name}/deploy Deploy (application)
PostAiDeploymentsByOwnerByNameUndeploy Post /v1/ai/deployments/{owner}/{name}/undeploy Undeploy (application)
PostAiFeedback Post /v1/ai/feedback Attaches a per-request outcome reward to the routing decision that served request_id — the enso training loop's quality signal.
PostAiFiles Post /v1/ai/files Create a file
PostAiFilesActivate Post /v1/ai/files/activate Activate (file)
PostAiFilesByOwnerByNameVectors Post /v1/ai/files/{owner}/{name}/vectors Vectors (file)
PostAiFilesUpload Post /v1/ai/files/upload Upload (file)
PostAiFinetuneCancel Post /v1/ai/finetune/cancel Deletes the TrainJob CR, meters the GPU-hours used so far, and marks the job cancelled.
PostAiFinetuneDeploy Post /v1/ai/finetune/deploy Serves a completed job's checkpoints and registers the result as a routable model on api.hanzo.ai.
PostAiFinetuneJobs Post /v1/ai/finetune/jobs Validates the request, resolves efficient defaults, persists the job, and submits a real TrainJob CR.
PostAiForms Post /v1/ai/forms Create a form
PostAiGraphs Post /v1/ai/graphs Create a graph
PostAiMemoryDelete Post /v1/ai/memory/delete Delete one of the authenticated user's memories
PostAiMemoryRemember Post /v1/ai/memory/remember Store a memory for the authenticated user
PostAiMemoryUpdate Post /v1/ai/memory/update Update one of the authenticated user's memories
PostAiMessages Post /v1/ai/messages Create a message
PostAiNodes Post /v1/ai/nodes Create a node
PostAiNodesByOwnerByNameTunnel Post /v1/ai/nodes/{owner}/{name}/tunnel Tunnel (node)
PostAiOrgSettings Post /v1/ai/org/settings The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
PostAiOrgSettingsList Post /v1/ai/org/settings/list The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
PostAiProviders Post /v1/ai/providers Create a provider
PostAiProvidersMcpTools Post /v1/ai/providers/mcp-tools Mcp Tools (provider)
PostAiRagDelete Post /v1/ai/rag/delete Delete all chunks of one or more uploaded files (by file_id) from the owner's Search+Vector index.
PostAiRagEmbed Post /v1/ai/rag/embed Parse, chunk, and embed one uploaded file under its file_id into the unified Search+Vector index, scoped to the authenticated owner.
PostAiRagIngest Post /v1/ai/rag/ingest Unified RAG ingest: parse + chunk + embed documents and pipe them to BOTH Hanzo Vector (semantic) AND Hanzo Search (keyword) under the tenant index {owner}-{store}-docs — the same index /v1/chat retrieval reads.
PostAiRagQuery Post /v1/ai/rag/query Retrieve the top-K chunks relevant to a query, scoped to a single uploaded file (`file_id`).
PostAiRagQueryMultiple Post /v1/ai/rag/query-multiple Retrieve the top-K chunks relevant to a query, scoped to a SET of uploaded files (`file_ids`).
PostAiRecords Post /v1/ai/records Create a record
PostAiRecordsBatch Post /v1/ai/records/batch Batch (record)
PostAiRecordsCommit Post /v1/ai/records/commit Commit (record)
PostAiRecordsCommitSecond Post /v1/ai/records/commit-second Commit Second (record)
PostAiRemoteConnections Post /v1/ai/remote-connections Create a connection
PostAiRemoteConnectionsByOwnerByNameStart Post /v1/ai/remote-connections/{owner}/{name}/start Start (connection)
PostAiRemoteConnectionsByOwnerByNameStop Post /v1/ai/remote-connections/{owner}/{name}/stop Stop (connection)
PostAiRouterArtifactMeta Post /v1/ai/router/artifact-meta The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
PostAiRouterCatalogPropose Post /v1/ai/router/catalog/propose Answers the diff an edited catalog would apply to a family, and the version it would be made from.
PostAiRouterCatalogRollback Post /v1/ai/router/catalog/rollback Applies an earlier version of a family's catalog again, as a new version.
PostAiRouterCatalogTest Post /v1/ai/router/catalog/test Sends one short turn to a SKU through its family and answers which upstream wrote it and how long it took.
PostAiRouterDefaults Post /v1/ai/router/defaults The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
PostAiRouterLedger Post /v1/ai/router/ledger The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
PostAiRouterPolicy Post /v1/ai/router/policy The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
PostAiRouterRewards Post /v1/ai/router/rewards The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
PostAiRoutes Post /v1/ai/routes Create a model-route
PostAiScales Post /v1/ai/scales Create a scale
PostAiScans Post /v1/ai/scans Create a scan
PostAiSignin Post /v1/ai/signin Signin
PostAiSigninSessions Post /v1/ai/signin-sessions Create a session
PostAiSignout Post /v1/ai/signout Signout
PostAiStores Post /v1/ai/stores Create a store
PostAiStoresByOwnerByNameVectors Post /v1/ai/stores/{owner}/{name}/vectors Vectors (store)
PostAiTasks Post /v1/ai/tasks Create a task
PostAiTasksByOwnerByNameAnalyze Post /v1/ai/tasks/{owner}/{name}/analyze Analyze (task)
PostAiTasksByOwnerByNameDocument Post /v1/ai/tasks/{owner}/{name}/document Document (task)
PostAiTemplates Post /v1/ai/templates Create a template
PostAiTreeFiles Post /v1/ai/tree-files Create a tree-file
PostAiVectors Post /v1/ai/vectors Create a vector
PostAiVideos Post /v1/ai/videos Create a video
PostAiVideosUpload Post /v1/ai/videos/upload Upload (video)
PostAiWorkflows Post /v1/ai/workflows Create a workflow
PostAudioFoley Post /v1/audio/foley Serves the generative audio verbs — /v1/audio/voice (TTS), /music, /foley — that the Zen family serves natively.
PostAudioMusic Post /v1/audio/music Serves the generative audio verbs — /v1/audio/voice (TTS), /music, /foley — that the Zen family serves natively.
PostAudioSpeech Post /v1/audio/speech The OpenAI-compatible TTS endpoint (POST /v1/audio/speech).
PostAudioTranscript Post /v1/audio/transcript Serves the growing transcript over HTTP: POST opens one, POST to its id pushes raw pcm16 at 16 kHz, and DELETE closes it with the settled text.
PostAudioTranscriptById Post /v1/audio/transcript/{id} Serves the growing transcript over HTTP: POST opens one, POST to its id pushes raw pcm16 at 16 kHz, and DELETE closes it with the settled text.
PostAudioTranscriptions Post /v1/audio/transcriptions The OpenAI-compatible STT endpoint (POST /v1/audio/transcriptions, multipart: file + model [+ language + response_format]).
PostAudioTranscriptionsPublic Post /v1/audio/transcriptions/public Transcribes up to a minute of audio for a caller with no account, on Hanzo's own transcriber, within a daily allowance per visitor.
PostAudioVoice Post /v1/audio/voice Serves the generative audio verbs — /v1/audio/voice (TTS), /music, /foley — that the Zen family serves natively.
PostChat Post /v1/chat Implements the OpenAI-compatible chat completions API
PostChatCompletions Post /v1/chat/completions Implements the OpenAI-compatible chat completions API
PostChatPublic Post /v1/chat/public Serves one completion to a caller with no account.
PostCompletions Post /v1/completions Implements the OpenAI-compatible chat completions API
PostDecisions Post /v1/decisions Implements POST /v1/decisions (the Decisions API).
PostEmbeddings Post /v1/embeddings Implements POST /v1/embeddings (OpenAI-compatible).
PostImagesGenerations Post /v1/images/generations Implements POST /v1/images/generations (OpenAI-compatible).
PostMessages Post /v1/messages Implements the Anthropic Messages API.
PostMessagesCountTokens Post /v1/messages/count_tokens Implements POST /v1/messages/count_tokens.
PostModelsByModelAccess Post /v1/models/{model}/access Records the caller's waitlist request for a gated model and answers their new standing.
PostRerank Post /v1/rerank Implements POST /v1/rerank (Cohere/Jina-compatible).
PostResponses Post /v1/responses Implements POST /v1/responses.
PostVideosGenerations Post /v1/videos/generations Implements POST /v1/videos/generations — the ASYNC create.
PutAiArticlesByOwnerByName Put /v1/ai/articles/{owner}/{name} Replace a article
PutAiAssetsByOwnerByName Put /v1/ai/assets/{owner}/{name} Replace a asset
PutAiChatsByOwnerByName Put /v1/ai/chats/{owner}/{name} Replace a chat
PutAiDeploymentsByOwnerByName Put /v1/ai/deployments/{owner}/{name} Replace a application
PutAiFilesByOwnerByName Put /v1/ai/files/{owner}/{name} Replace a file
PutAiFormsByOwnerByName Put /v1/ai/forms/{owner}/{name} Replace a form
PutAiGraphsByOwnerByName Put /v1/ai/graphs/{owner}/{name} Replace a graph
PutAiMessagesByOwnerByName Put /v1/ai/messages/{owner}/{name} Replace a message
PutAiNodesByOwnerByName Put /v1/ai/nodes/{owner}/{name} Replace a node
PutAiOrgSettings Put /v1/ai/org/settings The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
PutAiOrgSettingsList Put /v1/ai/org/settings/list The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
PutAiPreferences Put /v1/ai/preferences Preferences
PutAiProvidersByOwnerByName Put /v1/ai/providers/{owner}/{name} Replace a provider
PutAiRecordsByOwnerByName Put /v1/ai/records/{owner}/{name} Replace a record
PutAiRemoteConnectionsByOwnerByName Put /v1/ai/remote-connections/{owner}/{name} Replace a connection
PutAiRouterArtifactMeta Put /v1/ai/router/artifact-meta The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
PutAiRouterCatalog Put /v1/ai/router/catalog Applies an edited catalog to one family, made from its newest version, and records the new version.
PutAiRouterDefaults Put /v1/ai/router/defaults The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
PutAiRouterLedger Put /v1/ai/router/ledger The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
PutAiRouterPolicy Put /v1/ai/router/policy The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
PutAiRouterRewards Put /v1/ai/router/rewards The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).
PutAiRoutesByOwnerByName Put /v1/ai/routes/{owner}/{name} Replace a model-route
PutAiScalesByOwnerByName Put /v1/ai/scales/{owner}/{name} Replace a scale
PutAiScansByOwnerByName Put /v1/ai/scans/{owner}/{name} Replace a scan
PutAiSigninSessionsByOwnerByName Put /v1/ai/signin-sessions/{owner}/{name} Replace a session
PutAiStoresByOwnerByName Put /v1/ai/stores/{owner}/{name} Replace a store
PutAiTasksByOwnerByName Put /v1/ai/tasks/{owner}/{name} Replace a task
PutAiTemplatesByOwnerByName Put /v1/ai/templates/{owner}/{name} Replace a template
PutAiTrainingContribution Put /v1/ai/training-contribution Training Contribution
PutAiTreeFilesByOwnerByName Put /v1/ai/tree-files/{owner}/{name} Replace a tree-file
PutAiVectorsByOwnerByName Put /v1/ai/vectors/{owner}/{name} Replace a vector
PutAiVideosByOwnerByName Put /v1/ai/videos/{owner}/{name} Replace a video
PutAiWorkflowsByOwnerByName Put /v1/ai/workflows/{owner}/{name} Replace a workflow

AiChat

AiChat AiChat(ctx).AiChatIn(aiChatIn).Execute()

Asks one model one prompt and answers the reply, which model served it and who paid.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	aiChatIn := *openapiclient.NewAiChatIn() // AiChatIn | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.AiChat(context.Background()).AiChatIn(aiChatIn).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.AiChat``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `AiChat`: AiChat
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.AiChat`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiAiChatRequest struct via the builder pattern

Name Type Description Notes
aiChatIn AiChatIn

Return type

AiChat

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json, application/problem+json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AiDecide

AiDecision AiDecide(ctx).AiDecideIn(aiDecideIn).Execute()

Runs one decision — the caller's own POST /v1/decisions, gated and billed exactly as that route is — and answers the decision, which model served it and who paid.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	aiDecideIn := *openapiclient.NewAiDecideIn() // AiDecideIn | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.AiDecide(context.Background()).AiDecideIn(aiDecideIn).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.AiDecide``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `AiDecide`: AiDecision
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.AiDecide`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiAiDecideRequest struct via the builder pattern

Name Type Description Notes
aiDecideIn AiDecideIn

Return type

AiDecision

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json, application/problem+json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AiLimits

AiLimits AiLimits(ctx).Execute()

Reads the caller's plan usage: for each class of model the plan includes, the share used of the billing period and of its short window, who pays for the next request, and whether the caller is in limited mode and why; the share used of the session and the day; and the ways on.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.AiLimits(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.AiLimits``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `AiLimits`: AiLimits
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.AiLimits`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiAiLimitsRequest struct via the builder pattern

Return type

AiLimits

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/problem+json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AiMCPTools

AiMCPSurface AiMCPTools(ctx).Names(names).Execute()

Reports what THIS PROCESS's MCP server carries: how many tools its own registry projects, optionally their names, and which subsystems this process composed.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	names := true // bool | Names asks for this process's tool NAMES and not only how many there are. Off by default: a list of names is a page, and the question this op exists to answer (\"is the MCP server up and does it have anything behind it\") is answered by the count. (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.AiMCPTools(context.Background()).Names(names).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.AiMCPTools``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `AiMCPTools`: AiMCPSurface
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.AiMCPTools`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiAiMCPToolsRequest struct via the builder pattern

Name Type Description Notes
names bool Names asks for this process's tool NAMES and not only how many there are. Off by default: a list of names is a page, and the question this op exists to answer ("is the MCP server up and does it have anything behind it") is answered by the count.

Return type

AiMCPSurface

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/problem+json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AiModels

AiModels AiModels(ctx).Q(q).Class(class).Family(family).Capability(capability).Free(free).Zdr(zdr).Limit(limit).Execute()

Searches the model catalog — the one GET /v1/models lists, every OpenRouter model among it as last synced — by text, class, family, capability or free, and answers each match with its class, family, whether it is free, its list price (per token and per million; variable for a router billed at the answering model's price; a resold model's every vendor rate and conditional rate as billed), context window, output bound, expiry and capabilities.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	q := "q_example" // string | Q matches the model's id, name, description or owner, ignoring case. (optional)
	class := "class_example" // string | Class keeps one class: premium (third-party frontier models), ours (Hanzo's priced models) or free. (optional)
	family := "family_example" // string | Family keeps one Hanzo family: enso, zen, kai or zoo. (optional)
	capability := "capability_example" // string | Capability keeps the models that have it: tools, vision or reasoning, or a modality they take or give (text, image, audio, file, video, decision). (optional)
	free := true // bool | Free keeps the models a call to which bills nothing (bounded by the free allowances instead of a balance). (optional)
	zdr := true // bool | ZDR keeps only models eligible for Zero Data Retention (excludes free and data-shared routes). (optional)
	limit := int64(789) // int64 | Limit is the most models to answer, 1 to 500; 0 answers 50. (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.AiModels(context.Background()).Q(q).Class(class).Family(family).Capability(capability).Free(free).Zdr(zdr).Limit(limit).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.AiModels``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `AiModels`: AiModels
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.AiModels`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiAiModelsRequest struct via the builder pattern

Name Type Description Notes
q string Q matches the model's id, name, description or owner, ignoring case.
class string Class keeps one class: premium (third-party frontier models), ours (Hanzo's priced models) or free.
family string Family keeps one Hanzo family: enso, zen, kai or zoo.
capability string Capability keeps the models that have it: tools, vision or reasoning, or a modality they take or give (text, image, audio, file, video, decision).
free bool Free keeps the models a call to which bills nothing (bounded by the free allowances instead of a balance).
zdr bool ZDR keeps only models eligible for Zero Data Retention (excludes free and data-shared routes).
limit int64 Limit is the most models to answer, 1 to 500; 0 answers 50.

Return type

AiModels

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/problem+json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AiRateLimit

AiRate AiRateLimit(ctx).Execute()

Reads the per-minute limit as it governs the organization the caller acts in: the model requests one person may make in a minute on every surface — the API, chat, coding runs, bots and MCP — the platform's default, which is the most the organization may set, and the organization's own setting.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.AiRateLimit(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.AiRateLimit``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `AiRateLimit`: AiRate
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.AiRateLimit`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiAiRateLimitRequest struct via the builder pattern

Return type

AiRate

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/problem+json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AiSetRateLimit

AiRate AiSetRateLimit(ctx).AiRateIn(aiRateIn).Execute()

Sets the model requests one person may make in a minute acting in the organization the caller acts in, on every surface: 1 up to the platform's default, never more, or 0 to hold its people to the default.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	aiRateIn := *openapiclient.NewAiRateIn() // AiRateIn | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.AiSetRateLimit(context.Background()).AiRateIn(aiRateIn).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.AiSetRateLimit``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `AiSetRateLimit`: AiRate
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.AiSetRateLimit`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiAiSetRateLimitRequest struct via the builder pattern

Name Type Description Notes
aiRateIn AiRateIn

Return type

AiRate

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json, application/problem+json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DecisionsCorrect

Correction DecisionsCorrect(ctx, decision).CorrectIn(correctIn).Execute()

Files a correction of one question of one of the org's Kai decisions: the right answer, which must be one of that question's options and not what Kai answered, and why.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	decision := "decision_example" // string | Decision is the decision's id.
	correctIn := *openapiclient.NewCorrectIn() // CorrectIn | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DecisionsCorrect(context.Background(), decision).CorrectIn(correctIn).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DecisionsCorrect``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DecisionsCorrect`: Correction
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DecisionsCorrect`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
decision string Decision is the decision's id.

Other Parameters

Other parameters are passed through a pointer to a apiDecisionsCorrectRequest struct via the builder pattern

Name Type Description Notes

correctIn | CorrectIn | |

Return type

Correction

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json, application/problem+json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DecisionsCorrections

Corrections DecisionsCorrections(ctx, decision).Execute()

Answers one of the org's decisions' corrections, each captured (it can teach) or missing (the decision was made with capture off).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	decision := "decision_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DecisionsCorrections(context.Background(), decision).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DecisionsCorrections``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DecisionsCorrections`: Corrections
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DecisionsCorrections`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
decision string

Other Parameters

Other parameters are passed through a pointer to a apiDecisionsCorrectionsRequest struct via the builder pattern

Name Type Description Notes

Return type

Corrections

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/problem+json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DecisionsUncorrect

DecisionsUncorrect(ctx, decision, id).Execute()

Deletes one correction of one of the org's decisions.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	decision := "decision_example" // string | 
	id := "id_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.AiAPI.DecisionsUncorrect(context.Background(), decision, id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DecisionsUncorrect``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
decision string
id string

Other Parameters

Other parameters are passed through a pointer to a apiDecisionsUncorrectRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/problem+json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiArticlesByOwnerByName

PostAiArticles200Response DeleteAiArticlesByOwnerByName(ctx, owner, name).Execute()

Delete a article

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiArticlesByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiArticlesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiArticlesByOwnerByName`: PostAiArticles200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiArticlesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiArticlesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiArticles200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiAssetsByOwnerByName

PostAiAssets200Response DeleteAiAssetsByOwnerByName(ctx, owner, name).Execute()

Delete a asset

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiAssetsByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiAssetsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiAssetsByOwnerByName`: PostAiAssets200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiAssetsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiAssetsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiAssets200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiChatsByOwnerByName

PostAiChats200Response DeleteAiChatsByOwnerByName(ctx, owner, name).Execute()

Delete a chat

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiChatsByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiChatsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiChatsByOwnerByName`: PostAiChats200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiChatsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiChatsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiChats200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiConnectionsByProvider

PostAiConnections200Response DeleteAiConnectionsByProvider(ctx, provider).Execute()

Disconnects a third-party AI account: it deactivates the org's row so completion resolution falls back to the global Hanzo account (no BYO), and best-effort tombstones the sealed secret.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	provider := "provider_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiConnectionsByProvider(context.Background(), provider).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiConnectionsByProvider``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiConnectionsByProvider`: PostAiConnections200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiConnectionsByProvider`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
provider string

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiConnectionsByProviderRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiConnections200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiDeploymentsByOwnerByName

PostAiDeployments200Response DeleteAiDeploymentsByOwnerByName(ctx, owner, name).Execute()

Delete a application

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiDeploymentsByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiDeploymentsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiDeploymentsByOwnerByName`: PostAiDeployments200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiDeploymentsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiDeploymentsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiDeployments200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiFilesByOwnerByName

PostAiFiles200Response DeleteAiFilesByOwnerByName(ctx, owner, name).Execute()

Delete a file

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiFilesByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiFilesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiFilesByOwnerByName`: PostAiFiles200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiFilesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiFilesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiFiles200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiFormsByOwnerByName

PostAiForms200Response DeleteAiFormsByOwnerByName(ctx, owner, name).Execute()

Delete a form

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiFormsByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiFormsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiFormsByOwnerByName`: PostAiForms200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiFormsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiFormsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiForms200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiGraphsByOwnerByName

PostAiGraphs200Response DeleteAiGraphsByOwnerByName(ctx, owner, name).Execute()

Delete a graph

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiGraphsByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiGraphsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiGraphsByOwnerByName`: PostAiGraphs200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiGraphsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiGraphsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiGraphs200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiMessagesByOwnerByName

PostAiMessages200Response DeleteAiMessagesByOwnerByName(ctx, owner, name).Execute()

Delete a message

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiMessagesByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiMessagesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiMessagesByOwnerByName`: PostAiMessages200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiMessagesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiMessagesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiMessages200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiMessagesWelcome

Envelope DeleteAiMessagesWelcome(ctx).Execute()

Welcome (message)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiMessagesWelcome(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiMessagesWelcome``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiMessagesWelcome`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiMessagesWelcome`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiMessagesWelcomeRequest struct via the builder pattern

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiNodesByOwnerByName

PostAiNodes200Response DeleteAiNodesByOwnerByName(ctx, owner, name).Execute()

Delete a node

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiNodesByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiNodesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiNodesByOwnerByName`: PostAiNodes200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiNodesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiNodesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiNodes200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiOrgSettings

AiResponse DeleteAiOrgSettings(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiOrgSettings(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiOrgSettings``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiOrgSettings`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiOrgSettings`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiOrgSettingsRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiOrgSettingsList

AiResponse DeleteAiOrgSettingsList(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiOrgSettingsList(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiOrgSettingsList``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiOrgSettingsList`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiOrgSettingsList`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiOrgSettingsListRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiProvidersByOwnerByName

PostAiProviders200Response DeleteAiProvidersByOwnerByName(ctx, owner, name).Execute()

Delete a provider

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiProvidersByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiProvidersByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiProvidersByOwnerByName`: PostAiProviders200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiProvidersByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiProvidersByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiProviders200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiRecordsByOwnerByName

PostAiRecords200Response DeleteAiRecordsByOwnerByName(ctx, owner, name).Execute()

Delete a record

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiRecordsByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiRecordsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiRecordsByOwnerByName`: PostAiRecords200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiRecordsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiRecordsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiRecords200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiRemoteConnectionsByOwnerByName

PostAiRemoteConnections200Response DeleteAiRemoteConnectionsByOwnerByName(ctx, owner, name).Execute()

Delete a connection

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiRemoteConnectionsByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiRemoteConnectionsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiRemoteConnectionsByOwnerByName`: PostAiRemoteConnections200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiRemoteConnectionsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiRemoteConnectionsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiRemoteConnections200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiRouterArtifactMeta

AiResponse DeleteAiRouterArtifactMeta(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiRouterArtifactMeta(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiRouterArtifactMeta``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiRouterArtifactMeta`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiRouterArtifactMeta`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiRouterArtifactMetaRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiRouterData

Envelope DeleteAiRouterData(ctx).Execute()

Router Data

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiRouterData(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiRouterData``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiRouterData`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiRouterData`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiRouterDataRequest struct via the builder pattern

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiRouterDefaults

AiResponse DeleteAiRouterDefaults(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiRouterDefaults(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiRouterDefaults``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiRouterDefaults`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiRouterDefaults`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiRouterDefaultsRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiRouterLedger

AiResponse DeleteAiRouterLedger(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiRouterLedger(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiRouterLedger``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiRouterLedger`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiRouterLedger`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiRouterLedgerRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiRouterPolicy

AiResponse DeleteAiRouterPolicy(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiRouterPolicy(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiRouterPolicy``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiRouterPolicy`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiRouterPolicy`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiRouterPolicyRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiRouterRewards

AiResponse DeleteAiRouterRewards(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiRouterRewards(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiRouterRewards``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiRouterRewards`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiRouterRewards`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiRouterRewardsRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiRoutesByOwnerByName

PostAiRoutes200Response DeleteAiRoutesByOwnerByName(ctx, owner, name).Execute()

Delete a model-route

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiRoutesByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiRoutesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiRoutesByOwnerByName`: PostAiRoutes200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiRoutesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiRoutesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiRoutes200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiScalesByOwnerByName

PostAiScales200Response DeleteAiScalesByOwnerByName(ctx, owner, name).Execute()

Delete a scale

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiScalesByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiScalesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiScalesByOwnerByName`: PostAiScales200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiScalesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiScalesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiScales200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiScansByOwnerByName

PostAiScans200Response DeleteAiScansByOwnerByName(ctx, owner, name).Execute()

Delete a scan

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiScansByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiScansByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiScansByOwnerByName`: PostAiScans200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiScansByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiScansByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiScans200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiSigninSessionsByOwnerByName

PostAiSigninSessions200Response DeleteAiSigninSessionsByOwnerByName(ctx, owner, name).Execute()

Delete a session

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiSigninSessionsByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiSigninSessionsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiSigninSessionsByOwnerByName`: PostAiSigninSessions200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiSigninSessionsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiSigninSessionsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiSigninSessions200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiStoresByOwnerByName

PostAiStores200Response DeleteAiStoresByOwnerByName(ctx, owner, name).Execute()

Delete a store

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiStoresByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiStoresByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiStoresByOwnerByName`: PostAiStores200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiStoresByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiStoresByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiStores200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiTasksByOwnerByName

PostAiTasks200Response DeleteAiTasksByOwnerByName(ctx, owner, name).Execute()

Delete a task

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiTasksByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiTasksByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiTasksByOwnerByName`: PostAiTasks200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiTasksByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiTasksByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiTasks200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiTemplatesByOwnerByName

PostAiTemplates200Response DeleteAiTemplatesByOwnerByName(ctx, owner, name).Execute()

Delete a template

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiTemplatesByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiTemplatesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiTemplatesByOwnerByName`: PostAiTemplates200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiTemplatesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiTemplatesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiTemplates200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiTreeFilesByOwnerByName

PostAiTreeFiles200Response DeleteAiTreeFilesByOwnerByName(ctx, owner, name).Execute()

Delete a tree-file

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiTreeFilesByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiTreeFilesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiTreeFilesByOwnerByName`: PostAiTreeFiles200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiTreeFilesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiTreeFilesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiTreeFiles200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiVectorsAll

Envelope DeleteAiVectorsAll(ctx).Execute()

All (vector)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiVectorsAll(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiVectorsAll``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiVectorsAll`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiVectorsAll`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiVectorsAllRequest struct via the builder pattern

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiVectorsByOwnerByName

PostAiVectors200Response DeleteAiVectorsByOwnerByName(ctx, owner, name).Execute()

Delete a vector

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiVectorsByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiVectorsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiVectorsByOwnerByName`: PostAiVectors200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiVectorsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiVectorsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiVectors200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiVideosByOwnerByName

PostAiVideos200Response DeleteAiVideosByOwnerByName(ctx, owner, name).Execute()

Delete a video

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiVideosByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiVideosByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiVideosByOwnerByName`: PostAiVideos200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiVideosByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiVideosByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiVideos200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAiWorkflowsByOwnerByName

PostAiWorkflows200Response DeleteAiWorkflowsByOwnerByName(ctx, owner, name).Execute()

Delete a workflow

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.DeleteAiWorkflowsByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAiWorkflowsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteAiWorkflowsByOwnerByName`: PostAiWorkflows200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.DeleteAiWorkflowsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAiWorkflowsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiWorkflows200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAudioTranscriptById

DeleteAudioTranscriptById(ctx, id).Execute()

Serves the growing transcript over HTTP: POST opens one, POST to its id pushes raw pcm16 at 16 kHz, and DELETE closes it with the settled text.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	id := "id_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.AiAPI.DeleteAudioTranscriptById(context.Background(), id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.DeleteAudioTranscriptById``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string

Other Parameters

Other parameters are passed through a pointer to a apiDeleteAudioTranscriptByIdRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiAccount

Envelope GetAiAccount(ctx).Execute()

Account

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiAccount(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiAccount``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiAccount`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiAccount`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiAccountRequest struct via the builder pattern

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiActivities

GetAiActivities200Response GetAiActivities(ctx).Execute()

List activities

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiActivities(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiActivities``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiActivities`: GetAiActivities200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiActivities`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiActivitiesRequest struct via the builder pattern

Return type

GetAiActivities200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiAnswer

Envelope GetAiAnswer(ctx).Execute()

Answer

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiAnswer(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiAnswer``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiAnswer`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiAnswer`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiAnswerRequest struct via the builder pattern

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiArticles

GetAiArticles200Response GetAiArticles(ctx).Execute()

List articles

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiArticles(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiArticles``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiArticles`: GetAiArticles200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiArticles`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiArticlesRequest struct via the builder pattern

Return type

GetAiArticles200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiArticlesByOwnerByName

PostAiArticles200Response GetAiArticlesByOwnerByName(ctx, owner, name).Execute()

Retrieve a article

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiArticlesByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiArticlesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiArticlesByOwnerByName`: PostAiArticles200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiArticlesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiGetAiArticlesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiArticles200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiArticlesGlobal

GetAiArticles200Response GetAiArticlesGlobal(ctx).Execute()

List articles across tenants

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiArticlesGlobal(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiArticlesGlobal``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiArticlesGlobal`: GetAiArticles200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiArticlesGlobal`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiArticlesGlobalRequest struct via the builder pattern

Return type

GetAiArticles200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiAssets

GetAiAssets200Response GetAiAssets(ctx).Execute()

List assets

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiAssets(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiAssets``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiAssets`: GetAiAssets200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiAssets`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiAssetsRequest struct via the builder pattern

Return type

GetAiAssets200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiAssetsByOwnerByName

PostAiAssets200Response GetAiAssetsByOwnerByName(ctx, owner, name).Execute()

Retrieve a asset

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiAssetsByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiAssetsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiAssetsByOwnerByName`: PostAiAssets200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiAssetsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiGetAiAssetsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiAssets200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiChats

GetAiChats200Response GetAiChats(ctx).Execute()

List chats

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiChats(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiChats``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiChats`: GetAiChats200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiChats`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiChatsRequest struct via the builder pattern

Return type

GetAiChats200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiChatsByOwnerByName

PostAiChats200Response GetAiChatsByOwnerByName(ctx, owner, name).Execute()

Retrieve a chat

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiChatsByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiChatsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiChatsByOwnerByName`: PostAiChats200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiChatsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiGetAiChatsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiChats200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiChatsGlobal

GetAiChats200Response GetAiChatsGlobal(ctx).Execute()

List chats across tenants

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiChatsGlobal(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiChatsGlobal``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiChatsGlobal`: GetAiChats200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiChatsGlobal`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiChatsGlobalRequest struct via the builder pattern

Return type

GetAiChats200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiConnections

GetAiConnections200Response GetAiConnections(ctx).Execute()

Lists the org's connectable AI accounts and whether each is currently connected.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiConnections(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiConnections``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiConnections`: GetAiConnections200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiConnections`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiConnectionsRequest struct via the builder pattern

Return type

GetAiConnections200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiConnectionsByProviderAuthorize

GetAiConnectionsByProviderAuthorize200Response GetAiConnectionsByProviderAuthorize(ctx, provider).Execute()

Begins an OAuth connection for the caller's org: it binds the org into a signed state and sends the caller to the provider's authorize URL.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	provider := "provider_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiConnectionsByProviderAuthorize(context.Background(), provider).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiConnectionsByProviderAuthorize``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiConnectionsByProviderAuthorize`: GetAiConnectionsByProviderAuthorize200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiConnectionsByProviderAuthorize`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
provider string

Other Parameters

Other parameters are passed through a pointer to a apiGetAiConnectionsByProviderAuthorizeRequest struct via the builder pattern

Name Type Description Notes

Return type

GetAiConnectionsByProviderAuthorize200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiConnectionsByProviderCallback

GetAiConnectionsByProviderCallback(ctx, provider).Execute()

Completes OAuth: the org is recovered from the SIGNED state (not a header), the code is exchanged for a token, the token is SEALED into KMS (never the row/logs) through the same path as a BYOK key, and the org's provider row is upserted to "connected".

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	provider := "provider_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.AiAPI.GetAiConnectionsByProviderCallback(context.Background(), provider).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiConnectionsByProviderCallback``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
provider string

Other Parameters

Other parameters are passed through a pointer to a apiGetAiConnectionsByProviderCallbackRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiConnectionsByProviderUsage

GetAiConnectionsByProviderUsage200Response GetAiConnectionsByProviderUsage(ctx, provider).Execute()

Imports the caller org's usage for a connected third-party account.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	provider := "provider_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiConnectionsByProviderUsage(context.Background(), provider).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiConnectionsByProviderUsage``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiConnectionsByProviderUsage`: GetAiConnectionsByProviderUsage200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiConnectionsByProviderUsage`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
provider string

Other Parameters

Other parameters are passed through a pointer to a apiGetAiConnectionsByProviderUsageRequest struct via the builder pattern

Name Type Description Notes

Return type

GetAiConnectionsByProviderUsage200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiDashboardsAgents

Envelope GetAiDashboardsAgents(ctx).Execute()

Dashboards Agents

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiDashboardsAgents(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiDashboardsAgents``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiDashboardsAgents`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiDashboardsAgents`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiDashboardsAgentsRequest struct via the builder pattern

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiDashboardsVm

Envelope GetAiDashboardsVm(ctx).Execute()

Dashboards Vm

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiDashboardsVm(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiDashboardsVm``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiDashboardsVm`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiDashboardsVm`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiDashboardsVmRequest struct via the builder pattern

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiDeployments

GetAiDeployments200Response GetAiDeployments(ctx).Execute()

List deployments

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiDeployments(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiDeployments``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiDeployments`: GetAiDeployments200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiDeployments`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiDeploymentsRequest struct via the builder pattern

Return type

GetAiDeployments200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiDeploymentsByOwnerByName

PostAiDeployments200Response GetAiDeploymentsByOwnerByName(ctx, owner, name).Execute()

Retrieve a application

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiDeploymentsByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiDeploymentsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiDeploymentsByOwnerByName`: PostAiDeployments200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiDeploymentsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiGetAiDeploymentsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiDeployments200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiFiles

GetAiFiles200Response GetAiFiles(ctx).Execute()

List files

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiFiles(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiFiles``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiFiles`: GetAiFiles200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiFiles`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiFilesRequest struct via the builder pattern

Return type

GetAiFiles200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiFilesActive

Envelope GetAiFilesActive(ctx).Execute()

Active (file)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiFilesActive(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiFilesActive``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiFilesActive`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiFilesActive`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiFilesActiveRequest struct via the builder pattern

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiFilesByOwnerByName

PostAiFiles200Response GetAiFilesByOwnerByName(ctx, owner, name).Execute()

Retrieve a file

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiFilesByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiFilesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiFilesByOwnerByName`: PostAiFiles200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiFilesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiGetAiFilesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiFiles200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiFilesGlobal

GetAiFiles200Response GetAiFilesGlobal(ctx).Execute()

List files across tenants

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiFilesGlobal(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiFilesGlobal``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiFilesGlobal`: GetAiFiles200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiFilesGlobal`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiFilesGlobalRequest struct via the builder pattern

Return type

GetAiFiles200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiFinetuneHfDatasets

GetAiFinetuneHfDatasets200Response GetAiFinetuneHfDatasets(ctx).Execute()

Proxies a HuggingFace dataset search (dataset picker).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiFinetuneHfDatasets(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiFinetuneHfDatasets``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiFinetuneHfDatasets`: GetAiFinetuneHfDatasets200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiFinetuneHfDatasets`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiFinetuneHfDatasetsRequest struct via the builder pattern

Return type

GetAiFinetuneHfDatasets200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiFinetuneHfModels

GetAiFinetuneHfModels200Response GetAiFinetuneHfModels(ctx).Execute()

Proxies a HuggingFace model search (base-model picker).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiFinetuneHfModels(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiFinetuneHfModels``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiFinetuneHfModels`: GetAiFinetuneHfModels200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiFinetuneHfModels`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiFinetuneHfModelsRequest struct via the builder pattern

Return type

GetAiFinetuneHfModels200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiFinetuneHfRepo

GetAiFinetuneHfRepo200Response GetAiFinetuneHfRepo(ctx).Execute()

Returns a repo's detail (files, gated/private state).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiFinetuneHfRepo(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiFinetuneHfRepo``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiFinetuneHfRepo`: GetAiFinetuneHfRepo200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiFinetuneHfRepo`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiFinetuneHfRepoRequest struct via the builder pattern

Return type

GetAiFinetuneHfRepo200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiFinetuneJob

PostAiFinetuneCancel200Response GetAiFinetuneJob(ctx).Execute()

Returns one job with refreshed live status.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiFinetuneJob(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiFinetuneJob``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiFinetuneJob`: PostAiFinetuneCancel200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiFinetuneJob`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiFinetuneJobRequest struct via the builder pattern

Return type

PostAiFinetuneCancel200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiFinetuneJobs

GetAiFinetuneJobs200Response GetAiFinetuneJobs(ctx).Execute()

Returns the org's jobs, refreshing live status for active ones.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiFinetuneJobs(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiFinetuneJobs``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiFinetuneJobs`: GetAiFinetuneJobs200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiFinetuneJobs`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiFinetuneJobsRequest struct via the builder pattern

Return type

GetAiFinetuneJobs200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiFinetunePresets

GetAiFinetunePresets200Response GetAiFinetunePresets(ctx).Execute()

Returns the new-job catalog plus, when a selection is passed (?baseModel&method&task&preset[&datasetExamples]), the recommended config so the console can render "Recommended" as a one-click, ready-to-run default.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiFinetunePresets(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiFinetunePresets``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiFinetunePresets`: GetAiFinetunePresets200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiFinetunePresets`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiFinetunePresetsRequest struct via the builder pattern

Return type

GetAiFinetunePresets200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiForms

GetAiForms200Response GetAiForms(ctx).Execute()

List forms

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiForms(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiForms``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiForms`: GetAiForms200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiForms`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiFormsRequest struct via the builder pattern

Return type

GetAiForms200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiFormsByOwnerByName

PostAiForms200Response GetAiFormsByOwnerByName(ctx, owner, name).Execute()

Retrieve a form

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiFormsByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiFormsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiFormsByOwnerByName`: PostAiForms200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiFormsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiGetAiFormsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiForms200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiFormsData

Envelope GetAiFormsData(ctx).Execute()

Data (form)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiFormsData(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiFormsData``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiFormsData`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiFormsData`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiFormsDataRequest struct via the builder pattern

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiFormsGlobal

GetAiForms200Response GetAiFormsGlobal(ctx).Execute()

List forms across tenants

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiFormsGlobal(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiFormsGlobal``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiFormsGlobal`: GetAiForms200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiFormsGlobal`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiFormsGlobalRequest struct via the builder pattern

Return type

GetAiForms200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiGraphs

GetAiGraphs200Response GetAiGraphs(ctx).Execute()

List graphs

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiGraphs(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiGraphs``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiGraphs`: GetAiGraphs200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiGraphs`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiGraphsRequest struct via the builder pattern

Return type

GetAiGraphs200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiGraphsByOwnerByName

PostAiGraphs200Response GetAiGraphsByOwnerByName(ctx, owner, name).Execute()

Retrieve a graph

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiGraphsByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiGraphsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiGraphsByOwnerByName`: PostAiGraphs200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiGraphsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiGetAiGraphsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiGraphs200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiGraphsGlobal

GetAiGraphs200Response GetAiGraphsGlobal(ctx).Execute()

List graphs across tenants

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiGraphsGlobal(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiGraphsGlobal``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiGraphsGlobal`: GetAiGraphs200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiGraphsGlobal`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiGraphsGlobalRequest struct via the builder pattern

Return type

GetAiGraphs200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiK8sStatus

Envelope GetAiK8sStatus(ctx).Execute()

K8s Status

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiK8sStatus(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiK8sStatus``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiK8sStatus`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiK8sStatus`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiK8sStatusRequest struct via the builder pattern

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiMemoryFacts

GetAiMemoryFacts200Response GetAiMemoryFacts(ctx).Execute()

List the authenticated user's stored facts

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiMemoryFacts(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiMemoryFacts``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiMemoryFacts`: GetAiMemoryFacts200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiMemoryFacts`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiMemoryFactsRequest struct via the builder pattern

Return type

GetAiMemoryFacts200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiMemoryList

GetAiMemoryFacts200Response GetAiMemoryList(ctx).Execute()

List the authenticated user's memories, newest first

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiMemoryList(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiMemoryList``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiMemoryList`: GetAiMemoryFacts200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiMemoryList`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiMemoryListRequest struct via the builder pattern

Return type

GetAiMemoryFacts200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiMemoryRecall

GetAiMemoryFacts200Response GetAiMemoryRecall(ctx).Execute()

Recall recent/relevant memories for context injection; with q it

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiMemoryRecall(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiMemoryRecall``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiMemoryRecall`: GetAiMemoryFacts200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiMemoryRecall`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiMemoryRecallRequest struct via the builder pattern

Return type

GetAiMemoryFacts200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiMemorySearch

GetAiMemoryFacts200Response GetAiMemorySearch(ctx).Execute()

Search the authenticated user's memories (semantic, text fallback)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiMemorySearch(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiMemorySearch``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiMemorySearch`: GetAiMemoryFacts200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiMemorySearch`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiMemorySearchRequest struct via the builder pattern

Return type

GetAiMemoryFacts200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiMessages

GetAiMessages200Response GetAiMessages(ctx).Execute()

List messages

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiMessages(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiMessages``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiMessages`: GetAiMessages200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiMessages`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiMessagesRequest struct via the builder pattern

Return type

GetAiMessages200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiMessagesByOwnerByName

PostAiMessages200Response GetAiMessagesByOwnerByName(ctx, owner, name).Execute()

Retrieve a message

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiMessagesByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiMessagesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiMessagesByOwnerByName`: PostAiMessages200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiMessagesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiGetAiMessagesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiMessages200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiMessagesByOwnerByNameAnswer

Envelope GetAiMessagesByOwnerByNameAnswer(ctx, owner, name).Execute()

Answer (message)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiMessagesByOwnerByNameAnswer(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiMessagesByOwnerByNameAnswer``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiMessagesByOwnerByNameAnswer`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiMessagesByOwnerByNameAnswer`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiGetAiMessagesByOwnerByNameAnswerRequest struct via the builder pattern

Name Type Description Notes

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiNodes

GetAiNodes200Response GetAiNodes(ctx).Execute()

List nodes

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiNodes(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiNodes``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiNodes`: GetAiNodes200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiNodes`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiNodesRequest struct via the builder pattern

Return type

GetAiNodes200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiNodesByOwnerByName

PostAiNodes200Response GetAiNodesByOwnerByName(ctx, owner, name).Execute()

Retrieve a node

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiNodesByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiNodesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiNodesByOwnerByName`: PostAiNodes200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiNodesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiGetAiNodesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiNodes200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiNodesByOwnerByNameTunnel

Envelope GetAiNodesByOwnerByNameTunnel(ctx, owner, name).Execute()

Tunnel (node)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiNodesByOwnerByNameTunnel(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiNodesByOwnerByNameTunnel``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiNodesByOwnerByNameTunnel`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiNodesByOwnerByNameTunnel`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiGetAiNodesByOwnerByNameTunnelRequest struct via the builder pattern

Name Type Description Notes

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiOrgSettings

AiResponse GetAiOrgSettings(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiOrgSettings(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiOrgSettings``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiOrgSettings`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiOrgSettings`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiOrgSettingsRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiOrgSettingsList

AiResponse GetAiOrgSettingsList(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiOrgSettingsList(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiOrgSettingsList``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiOrgSettingsList`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiOrgSettingsList`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiOrgSettingsListRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiPrometheus

Envelope GetAiPrometheus(ctx).Execute()

Prometheus

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiPrometheus(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiPrometheus``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiPrometheus`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiPrometheus`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiPrometheusRequest struct via the builder pattern

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiProviders

GetAiProviders200Response GetAiProviders(ctx).Execute()

List providers

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiProviders(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiProviders``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiProviders`: GetAiProviders200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiProviders`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiProvidersRequest struct via the builder pattern

Return type

GetAiProviders200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiProvidersByOwnerByName

PostAiProviders200Response GetAiProvidersByOwnerByName(ctx, owner, name).Execute()

Retrieve a provider

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiProvidersByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiProvidersByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiProvidersByOwnerByName`: PostAiProviders200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiProvidersByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiGetAiProvidersByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiProviders200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiProvidersGlobal

GetAiProviders200Response GetAiProvidersGlobal(ctx).Execute()

List providers across tenants

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiProvidersGlobal(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiProvidersGlobal``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiProvidersGlobal`: GetAiProviders200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiProvidersGlobal`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiProvidersGlobalRequest struct via the builder pattern

Return type

GetAiProviders200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiRagContext

[]DocSearchResult GetAiRagContext(ctx).Execute()

Return every stored chunk of one file_id (full document context).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiRagContext(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiRagContext``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiRagContext`: []DocSearchResult
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiRagContext`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiRagContextRequest struct via the builder pattern

Return type

[]DocSearchResult

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiRecords

GetAiRecords200Response GetAiRecords(ctx).Execute()

List records

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiRecords(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiRecords``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiRecords`: GetAiRecords200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiRecords`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiRecordsRequest struct via the builder pattern

Return type

GetAiRecords200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiRecordsByOwnerByName

PostAiRecords200Response GetAiRecordsByOwnerByName(ctx, owner, name).Execute()

Retrieve a record

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiRecordsByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiRecordsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiRecordsByOwnerByName`: PostAiRecords200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiRecordsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiGetAiRecordsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiRecords200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiRecordsQuery

Envelope GetAiRecordsQuery(ctx).Execute()

Query (record)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiRecordsQuery(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiRecordsQuery``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiRecordsQuery`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiRecordsQuery`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiRecordsQueryRequest struct via the builder pattern

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiRecordsQuerySecond

Envelope GetAiRecordsQuerySecond(ctx).Execute()

Query Second (record)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiRecordsQuerySecond(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiRecordsQuerySecond``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiRecordsQuerySecond`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiRecordsQuerySecond`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiRecordsQuerySecondRequest struct via the builder pattern

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiRemoteConnections

GetAiRemoteConnections200Response GetAiRemoteConnections(ctx).Execute()

List remote-connections

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiRemoteConnections(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiRemoteConnections``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiRemoteConnections`: GetAiRemoteConnections200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiRemoteConnections`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiRemoteConnectionsRequest struct via the builder pattern

Return type

GetAiRemoteConnections200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiRemoteConnectionsByOwnerByName

PostAiRemoteConnections200Response GetAiRemoteConnectionsByOwnerByName(ctx, owner, name).Execute()

Retrieve a connection

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiRemoteConnectionsByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiRemoteConnectionsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiRemoteConnectionsByOwnerByName`: PostAiRemoteConnections200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiRemoteConnectionsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiGetAiRemoteConnectionsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiRemoteConnections200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiRouterArtifactMeta

AiResponse GetAiRouterArtifactMeta(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiRouterArtifactMeta(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiRouterArtifactMeta``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiRouterArtifactMeta`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiRouterArtifactMeta`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiRouterArtifactMetaRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiRouterCatalog

GetAiRouterCatalog200Response GetAiRouterCatalog(ctx).Execute()

Lists the Zen and Enso routing catalogs: what each serves, its accounts and model health, and its version history.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiRouterCatalog(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiRouterCatalog``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiRouterCatalog`: GetAiRouterCatalog200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiRouterCatalog`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiRouterCatalogRequest struct via the builder pattern

Return type

GetAiRouterCatalog200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiRouterData

Envelope GetAiRouterData(ctx).Execute()

Router Data

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiRouterData(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiRouterData``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiRouterData`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiRouterData`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiRouterDataRequest struct via the builder pattern

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiRouterDefaults

AiResponse GetAiRouterDefaults(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiRouterDefaults(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiRouterDefaults``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiRouterDefaults`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiRouterDefaults`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiRouterDefaultsRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiRouterHistory

GetAiRouterHistory200Response GetAiRouterHistory(ctx).Execute()

Returns the router-improvement time-series.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiRouterHistory(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiRouterHistory``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiRouterHistory`: GetAiRouterHistory200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiRouterHistory`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiRouterHistoryRequest struct via the builder pattern

Return type

GetAiRouterHistory200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiRouterJudgePanel

GetAiRouterJudgePanel200Response GetAiRouterJudgePanel(ctx).Execute()

Returns the LIVE Mean-Field Judge Panel state: the configured panel + dynamic judge posture (enabled/sample) resolved from the "*" GlobalDefaultOwner row, the live in-process per-judge calibration (weight/mean/n), and the static published benchmark.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiRouterJudgePanel(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiRouterJudgePanel``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiRouterJudgePanel`: GetAiRouterJudgePanel200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiRouterJudgePanel`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiRouterJudgePanelRequest struct via the builder pattern

Return type

GetAiRouterJudgePanel200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiRouterLedger

AiResponse GetAiRouterLedger(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiRouterLedger(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiRouterLedger``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiRouterLedger`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiRouterLedger`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiRouterLedgerRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiRouterPolicy

AiResponse GetAiRouterPolicy(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiRouterPolicy(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiRouterPolicy``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiRouterPolicy`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiRouterPolicy`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiRouterPolicyRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiRouterRewards

AiResponse GetAiRouterRewards(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiRouterRewards(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiRouterRewards``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiRouterRewards`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiRouterRewards`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiRouterRewardsRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiRouterStats

GetAiRouterStats200Response GetAiRouterStats(ctx).Execute()

Returns the router observability aggregate.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiRouterStats(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiRouterStats``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiRouterStats`: GetAiRouterStats200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiRouterStats`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiRouterStatsRequest struct via the builder pattern

Return type

GetAiRouterStats200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiRoutes

GetAiRoutes200Response GetAiRoutes(ctx).Execute()

List routes

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiRoutes(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiRoutes``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiRoutes`: GetAiRoutes200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiRoutes`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiRoutesRequest struct via the builder pattern

Return type

GetAiRoutes200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiRoutesByOwnerByName

PostAiRoutes200Response GetAiRoutesByOwnerByName(ctx, owner, name).Execute()

Retrieve a model-route

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiRoutesByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiRoutesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiRoutesByOwnerByName`: PostAiRoutes200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiRoutesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiGetAiRoutesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiRoutes200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiScales

GetAiScales200Response GetAiScales(ctx).Execute()

List scales

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiScales(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiScales``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiScales`: GetAiScales200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiScales`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiScalesRequest struct via the builder pattern

Return type

GetAiScales200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiScalesByOwnerByName

PostAiScales200Response GetAiScalesByOwnerByName(ctx, owner, name).Execute()

Retrieve a scale

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiScalesByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiScalesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiScalesByOwnerByName`: PostAiScales200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiScalesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiGetAiScalesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiScales200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiScalesGlobal

GetAiScales200Response GetAiScalesGlobal(ctx).Execute()

List scales across tenants

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiScalesGlobal(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiScalesGlobal``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiScalesGlobal`: GetAiScales200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiScalesGlobal`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiScalesGlobalRequest struct via the builder pattern

Return type

GetAiScales200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiScalesPublic

Envelope GetAiScalesPublic(ctx).Execute()

Public (scale)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiScalesPublic(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiScalesPublic``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiScalesPublic`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiScalesPublic`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiScalesPublicRequest struct via the builder pattern

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiScans

GetAiScans200Response GetAiScans(ctx).Execute()

List scans

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiScans(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiScans``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiScans`: GetAiScans200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiScans`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiScansRequest struct via the builder pattern

Return type

GetAiScans200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiScansByOwnerByName

PostAiScans200Response GetAiScansByOwnerByName(ctx, owner, name).Execute()

Retrieve a scan

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiScansByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiScansByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiScansByOwnerByName`: PostAiScans200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiScansByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiGetAiScansByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiScans200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiSigninSessions

GetAiSigninSessions200Response GetAiSigninSessions(ctx).Execute()

List signin-sessions

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiSigninSessions(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiSigninSessions``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiSigninSessions`: GetAiSigninSessions200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiSigninSessions`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiSigninSessionsRequest struct via the builder pattern

Return type

GetAiSigninSessions200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiSigninSessionsByOwnerByName

PostAiSigninSessions200Response GetAiSigninSessionsByOwnerByName(ctx, owner, name).Execute()

Retrieve a session

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiSigninSessionsByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiSigninSessionsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiSigninSessionsByOwnerByName`: PostAiSigninSessions200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiSigninSessionsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiGetAiSigninSessionsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiSigninSessions200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiSigninSessionsDuplicated

Envelope GetAiSigninSessionsDuplicated(ctx).Execute()

Duplicated (session)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiSigninSessionsDuplicated(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiSigninSessionsDuplicated``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiSigninSessionsDuplicated`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiSigninSessionsDuplicated`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiSigninSessionsDuplicatedRequest struct via the builder pattern

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiStores

GetAiStores200Response GetAiStores(ctx).Execute()

List stores

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiStores(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiStores``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiStores`: GetAiStores200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiStores`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiStoresRequest struct via the builder pattern

Return type

GetAiStores200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiStoresByOwnerByName

PostAiStores200Response GetAiStoresByOwnerByName(ctx, owner, name).Execute()

Retrieve a store

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiStoresByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiStoresByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiStoresByOwnerByName`: PostAiStores200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiStoresByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiGetAiStoresByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiStores200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiStoresGlobal

GetAiStores200Response GetAiStoresGlobal(ctx).Execute()

List stores across tenants

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiStoresGlobal(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiStoresGlobal``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiStoresGlobal`: GetAiStores200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiStoresGlobal`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiStoresGlobalRequest struct via the builder pattern

Return type

GetAiStores200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiStoresNames

Envelope GetAiStoresNames(ctx).Execute()

Names (store)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiStoresNames(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiStoresNames``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiStoresNames`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiStoresNames`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiStoresNamesRequest struct via the builder pattern

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiStoresProviders

Envelope GetAiStoresProviders(ctx).Execute()

Providers (store)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiStoresProviders(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiStoresProviders``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiStoresProviders`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiStoresProviders`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiStoresProvidersRequest struct via the builder pattern

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiSystem

Envelope GetAiSystem(ctx).Execute()

System

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiSystem(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiSystem``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiSystem`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiSystem`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiSystemRequest struct via the builder pattern

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiTasks

GetAiTasks200Response GetAiTasks(ctx).Execute()

List tasks

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiTasks(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiTasks``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiTasks`: GetAiTasks200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiTasks`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiTasksRequest struct via the builder pattern

Return type

GetAiTasks200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiTasksByOwnerByName

PostAiTasks200Response GetAiTasksByOwnerByName(ctx, owner, name).Execute()

Retrieve a task

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiTasksByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiTasksByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiTasksByOwnerByName`: PostAiTasks200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiTasksByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiGetAiTasksByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiTasks200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiTasksGlobal

GetAiTasks200Response GetAiTasksGlobal(ctx).Execute()

List tasks across tenants

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiTasksGlobal(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiTasksGlobal``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiTasksGlobal`: GetAiTasks200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiTasksGlobal`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiTasksGlobalRequest struct via the builder pattern

Return type

GetAiTasks200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiTemplates

GetAiTemplates200Response GetAiTemplates(ctx).Execute()

List templates

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiTemplates(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiTemplates``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiTemplates`: GetAiTemplates200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiTemplates`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiTemplatesRequest struct via the builder pattern

Return type

GetAiTemplates200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiTemplatesByOwnerByName

PostAiTemplates200Response GetAiTemplatesByOwnerByName(ctx, owner, name).Execute()

Retrieve a template

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiTemplatesByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiTemplatesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiTemplatesByOwnerByName`: PostAiTemplates200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiTemplatesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiGetAiTemplatesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiTemplates200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiTrafficGlobe

GetAiTrafficGlobe200Response GetAiTrafficGlobe(ctx).Execute()

Returns the PUBLIC live request-geo aggregate for the world.hanzo.ai "Hanzo mode" globe: WHERE requests to api.hanzo.ai are coming from, as country/region points with per-service-class counts, plus headline throughput rates.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiTrafficGlobe(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiTrafficGlobe``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiTrafficGlobe`: GetAiTrafficGlobe200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiTrafficGlobe`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiTrafficGlobeRequest struct via the builder pattern

Return type

GetAiTrafficGlobe200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiTrainingContribution

Envelope GetAiTrainingContribution(ctx).Execute()

Training Contribution

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiTrainingContribution(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiTrainingContribution``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiTrainingContribution`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiTrainingContribution`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiTrainingContributionRequest struct via the builder pattern

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiUsages

GetAiUsages200Response GetAiUsages(ctx).Execute()

List usages

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiUsages(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiUsages``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiUsages`: GetAiUsages200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiUsages`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiUsagesRequest struct via the builder pattern

Return type

GetAiUsages200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiUsagesByUser

Envelope GetAiUsagesByUser(ctx).Execute()

By User (usage)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiUsagesByUser(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiUsagesByUser``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiUsagesByUser`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiUsagesByUser`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiUsagesByUserRequest struct via the builder pattern

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiUsagesCloud

Envelope GetAiUsagesCloud(ctx).Execute()

Cloud (usage)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiUsagesCloud(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiUsagesCloud``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiUsagesCloud`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiUsagesCloud`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiUsagesCloudRequest struct via the builder pattern

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiUsagesRange

Envelope GetAiUsagesRange(ctx).Execute()

Range (usage)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiUsagesRange(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiUsagesRange``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiUsagesRange`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiUsagesRange`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiUsagesRangeRequest struct via the builder pattern

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiUsagesUserNames

Envelope GetAiUsagesUserNames(ctx).Execute()

User Names (usage)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiUsagesUserNames(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiUsagesUserNames``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiUsagesUserNames`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiUsagesUserNames`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiUsagesUserNamesRequest struct via the builder pattern

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiVectors

GetAiVectors200Response GetAiVectors(ctx).Execute()

List vectors

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiVectors(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiVectors``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiVectors`: GetAiVectors200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiVectors`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiVectorsRequest struct via the builder pattern

Return type

GetAiVectors200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiVectorsByOwnerByName

PostAiVectors200Response GetAiVectorsByOwnerByName(ctx, owner, name).Execute()

Retrieve a vector

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiVectorsByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiVectorsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiVectorsByOwnerByName`: PostAiVectors200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiVectorsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiGetAiVectorsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiVectors200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiVectorsGlobal

GetAiVectors200Response GetAiVectorsGlobal(ctx).Execute()

List vectors across tenants

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiVectorsGlobal(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiVectorsGlobal``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiVectorsGlobal`: GetAiVectors200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiVectorsGlobal`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiVectorsGlobalRequest struct via the builder pattern

Return type

GetAiVectors200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiVersion

Envelope GetAiVersion(ctx).Execute()

Version

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiVersion(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiVersion``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiVersion`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiVersion`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiVersionRequest struct via the builder pattern

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiVideos

GetAiVideos200Response GetAiVideos(ctx).Execute()

List videos

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiVideos(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiVideos``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiVideos`: GetAiVideos200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiVideos`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiVideosRequest struct via the builder pattern

Return type

GetAiVideos200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiVideosByOwnerByName

PostAiVideos200Response GetAiVideosByOwnerByName(ctx, owner, name).Execute()

Retrieve a video

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiVideosByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiVideosByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiVideosByOwnerByName`: PostAiVideos200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiVideosByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiGetAiVideosByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiVideos200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiVideosGlobal

GetAiVideos200Response GetAiVideosGlobal(ctx).Execute()

List videos across tenants

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiVideosGlobal(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiVideosGlobal``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiVideosGlobal`: GetAiVideos200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiVideosGlobal`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiVideosGlobalRequest struct via the builder pattern

Return type

GetAiVideos200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiWorkflows

GetAiWorkflows200Response GetAiWorkflows(ctx).Execute()

List workflows

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiWorkflows(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiWorkflows``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiWorkflows`: GetAiWorkflows200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiWorkflows`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiWorkflowsRequest struct via the builder pattern

Return type

GetAiWorkflows200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiWorkflowsByOwnerByName

PostAiWorkflows200Response GetAiWorkflowsByOwnerByName(ctx, owner, name).Execute()

Retrieve a workflow

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiWorkflowsByOwnerByName(context.Background(), owner, name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiWorkflowsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiWorkflowsByOwnerByName`: PostAiWorkflows200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiWorkflowsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiGetAiWorkflowsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiWorkflows200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAiWorkflowsGlobal

GetAiWorkflows200Response GetAiWorkflowsGlobal(ctx).Execute()

List workflows across tenants

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetAiWorkflowsGlobal(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetAiWorkflowsGlobal``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAiWorkflowsGlobal`: GetAiWorkflows200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetAiWorkflowsGlobal`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAiWorkflowsGlobalRequest struct via the builder pattern

Return type

GetAiWorkflows200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetModels

AiModelList GetModels(ctx).Execute()

Returns the list of available models from the routing table.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetModels(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetModels``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetModels`: AiModelList
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetModels`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetModelsRequest struct via the builder pattern

Return type

AiModelList

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetModelsByModelAccess

GetAiConnectionsByProviderAuthorize200Response GetModelsByModelAccess(ctx, model).Execute()

Returns the caller's own standing for a gated model: "granted", "requested", or empty when they have never asked.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	model := "model_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetModelsByModelAccess(context.Background(), model).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetModelsByModelAccess``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetModelsByModelAccess`: GetAiConnectionsByProviderAuthorize200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetModelsByModelAccess`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
model string

Other Parameters

Other parameters are passed through a pointer to a apiGetModelsByModelAccessRequest struct via the builder pattern

Name Type Description Notes

Return type

GetAiConnectionsByProviderAuthorize200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetModelsProviders

GetModelsProviders200Response GetModelsProviders(ctx).Execute()

Public, secret-free list of the providers serving the models that GET /v1/models lists — the same source, projected.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetModelsProviders(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetModelsProviders``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetModelsProviders`: GetModelsProviders200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetModelsProviders`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetModelsProvidersRequest struct via the builder pattern

Return type

GetModelsProviders200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetModelsVendorsByVendor

GetModelsVendorsByVendor(ctx, vendor).Execute()

Lists every model a vendor lists now, each entry exactly as the vendor listed it (prices, context, output bound, modalities, parameters, created, expiration), and when the list was last synced.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	vendor := "vendor_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.AiAPI.GetModelsVendorsByVendor(context.Background(), vendor).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetModelsVendorsByVendor``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
vendor string

Other Parameters

Other parameters are passed through a pointer to a apiGetModelsVendorsByVendorRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetModelsVendorsByVendorEvents

GetModelsVendorsByVendorEvents(ctx, vendor).Execute()

Lists the changes syncs read in a vendor's model list, newest first.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	vendor := "vendor_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.AiAPI.GetModelsVendorsByVendorEvents(context.Background(), vendor).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetModelsVendorsByVendorEvents``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
vendor string

Other Parameters

Other parameters are passed through a pointer to a apiGetModelsVendorsByVendorEventsRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetVideosById

AiVideoStatus GetVideosById(ctx, id).Execute()

Implements GET /v1/videos/{id} — poll a job's status.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	id := "id_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.GetVideosById(context.Background(), id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetVideosById``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetVideosById`: AiVideoStatus
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.GetVideosById`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string

Other Parameters

Other parameters are passed through a pointer to a apiGetVideosByIdRequest struct via the builder pattern

Name Type Description Notes

Return type

AiVideoStatus

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetVideosByIdContent

GetVideosByIdContent(ctx, id).Execute()

Implements GET /v1/videos/{id}/content — download the finished MP4.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	id := "id_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.AiAPI.GetVideosByIdContent(context.Background(), id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.GetVideosByIdContent``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string

Other Parameters

Other parameters are passed through a pointer to a apiGetVideosByIdContentRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiArticlesByOwnerByName

PostAiArticles200Response PatchAiArticlesByOwnerByName(ctx, owner, name).Body(body).Execute()

Update a article

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiArticlesByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiArticlesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiArticlesByOwnerByName`: PostAiArticles200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiArticlesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiArticlesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiArticles200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiAssetsByOwnerByName

PostAiAssets200Response PatchAiAssetsByOwnerByName(ctx, owner, name).Body(body).Execute()

Update a asset

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiAssetsByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiAssetsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiAssetsByOwnerByName`: PostAiAssets200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiAssetsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiAssetsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiAssets200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiChatsByOwnerByName

PostAiChats200Response PatchAiChatsByOwnerByName(ctx, owner, name).Body(body).Execute()

Update a chat

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiChatsByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiChatsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiChatsByOwnerByName`: PostAiChats200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiChatsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiChatsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiChats200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiDeploymentsByOwnerByName

PostAiDeployments200Response PatchAiDeploymentsByOwnerByName(ctx, owner, name).Body(body).Execute()

Update a application

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiDeploymentsByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiDeploymentsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiDeploymentsByOwnerByName`: PostAiDeployments200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiDeploymentsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiDeploymentsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiDeployments200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiFilesByOwnerByName

PostAiFiles200Response PatchAiFilesByOwnerByName(ctx, owner, name).Body(body).Execute()

Update a file

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiFilesByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiFilesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiFilesByOwnerByName`: PostAiFiles200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiFilesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiFilesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiFiles200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiFormsByOwnerByName

PostAiForms200Response PatchAiFormsByOwnerByName(ctx, owner, name).Body(body).Execute()

Update a form

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiFormsByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiFormsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiFormsByOwnerByName`: PostAiForms200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiFormsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiFormsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiForms200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiGraphsByOwnerByName

PostAiGraphs200Response PatchAiGraphsByOwnerByName(ctx, owner, name).Body(body).Execute()

Update a graph

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiGraphsByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiGraphsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiGraphsByOwnerByName`: PostAiGraphs200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiGraphsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiGraphsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiGraphs200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiMessagesByOwnerByName

PostAiMessages200Response PatchAiMessagesByOwnerByName(ctx, owner, name).Body(body).Execute()

Update a message

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiMessagesByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiMessagesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiMessagesByOwnerByName`: PostAiMessages200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiMessagesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiMessagesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiMessages200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiNodesByOwnerByName

PostAiNodes200Response PatchAiNodesByOwnerByName(ctx, owner, name).Body(body).Execute()

Update a node

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiNodesByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiNodesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiNodesByOwnerByName`: PostAiNodes200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiNodesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiNodesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiNodes200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiOrgSettings

AiResponse PatchAiOrgSettings(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiOrgSettings(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiOrgSettings``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiOrgSettings`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiOrgSettings`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiOrgSettingsRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiOrgSettingsList

AiResponse PatchAiOrgSettingsList(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiOrgSettingsList(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiOrgSettingsList``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiOrgSettingsList`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiOrgSettingsList`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiOrgSettingsListRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiPreferences

Envelope PatchAiPreferences(ctx).Body(body).Execute()

Preferences

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiPreferences(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiPreferences``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiPreferences`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiPreferences`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiPreferencesRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiProvidersByOwnerByName

PostAiProviders200Response PatchAiProvidersByOwnerByName(ctx, owner, name).Body(body).Execute()

Update a provider

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiProvidersByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiProvidersByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiProvidersByOwnerByName`: PostAiProviders200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiProvidersByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiProvidersByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiProviders200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiRecordsByOwnerByName

PostAiRecords200Response PatchAiRecordsByOwnerByName(ctx, owner, name).Body(body).Execute()

Update a record

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiRecordsByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiRecordsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiRecordsByOwnerByName`: PostAiRecords200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiRecordsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiRecordsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiRecords200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiRemoteConnectionsByOwnerByName

PostAiRemoteConnections200Response PatchAiRemoteConnectionsByOwnerByName(ctx, owner, name).Body(body).Execute()

Update a connection

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiRemoteConnectionsByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiRemoteConnectionsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiRemoteConnectionsByOwnerByName`: PostAiRemoteConnections200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiRemoteConnectionsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiRemoteConnectionsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiRemoteConnections200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiRouterArtifactMeta

AiResponse PatchAiRouterArtifactMeta(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiRouterArtifactMeta(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiRouterArtifactMeta``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiRouterArtifactMeta`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiRouterArtifactMeta`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiRouterArtifactMetaRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiRouterDefaults

AiResponse PatchAiRouterDefaults(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiRouterDefaults(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiRouterDefaults``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiRouterDefaults`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiRouterDefaults`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiRouterDefaultsRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiRouterLedger

AiResponse PatchAiRouterLedger(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiRouterLedger(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiRouterLedger``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiRouterLedger`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiRouterLedger`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiRouterLedgerRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiRouterPolicy

AiResponse PatchAiRouterPolicy(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiRouterPolicy(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiRouterPolicy``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiRouterPolicy`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiRouterPolicy`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiRouterPolicyRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiRouterRewards

AiResponse PatchAiRouterRewards(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiRouterRewards(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiRouterRewards``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiRouterRewards`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiRouterRewards`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiRouterRewardsRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiRoutesByOwnerByName

PostAiRoutes200Response PatchAiRoutesByOwnerByName(ctx, owner, name).Body(body).Execute()

Update a model-route

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiRoutesByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiRoutesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiRoutesByOwnerByName`: PostAiRoutes200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiRoutesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiRoutesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiRoutes200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiScalesByOwnerByName

PostAiScales200Response PatchAiScalesByOwnerByName(ctx, owner, name).Body(body).Execute()

Update a scale

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiScalesByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiScalesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiScalesByOwnerByName`: PostAiScales200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiScalesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiScalesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiScales200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiScansByOwnerByName

PostAiScans200Response PatchAiScansByOwnerByName(ctx, owner, name).Body(body).Execute()

Update a scan

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiScansByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiScansByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiScansByOwnerByName`: PostAiScans200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiScansByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiScansByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiScans200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiSigninSessionsByOwnerByName

PostAiSigninSessions200Response PatchAiSigninSessionsByOwnerByName(ctx, owner, name).Body(body).Execute()

Update a session

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiSigninSessionsByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiSigninSessionsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiSigninSessionsByOwnerByName`: PostAiSigninSessions200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiSigninSessionsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiSigninSessionsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiSigninSessions200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiStoresByOwnerByName

PostAiStores200Response PatchAiStoresByOwnerByName(ctx, owner, name).Body(body).Execute()

Update a store

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiStoresByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiStoresByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiStoresByOwnerByName`: PostAiStores200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiStoresByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiStoresByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiStores200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiTasksByOwnerByName

PostAiTasks200Response PatchAiTasksByOwnerByName(ctx, owner, name).Body(body).Execute()

Update a task

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiTasksByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiTasksByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiTasksByOwnerByName`: PostAiTasks200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiTasksByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiTasksByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiTasks200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiTemplatesByOwnerByName

PostAiTemplates200Response PatchAiTemplatesByOwnerByName(ctx, owner, name).Body(body).Execute()

Update a template

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiTemplatesByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiTemplatesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiTemplatesByOwnerByName`: PostAiTemplates200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiTemplatesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiTemplatesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiTemplates200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiTrainingContribution

Envelope PatchAiTrainingContribution(ctx).Body(body).Execute()

Training Contribution

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiTrainingContribution(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiTrainingContribution``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiTrainingContribution`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiTrainingContribution`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiTrainingContributionRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiTreeFilesByOwnerByName

PostAiTreeFiles200Response PatchAiTreeFilesByOwnerByName(ctx, owner, name).Body(body).Execute()

Update a tree-file

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiTreeFilesByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiTreeFilesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiTreeFilesByOwnerByName`: PostAiTreeFiles200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiTreeFilesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiTreeFilesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiTreeFiles200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiVectorsByOwnerByName

PostAiVectors200Response PatchAiVectorsByOwnerByName(ctx, owner, name).Body(body).Execute()

Update a vector

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiVectorsByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiVectorsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiVectorsByOwnerByName`: PostAiVectors200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiVectorsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiVectorsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiVectors200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiVideosByOwnerByName

PostAiVideos200Response PatchAiVideosByOwnerByName(ctx, owner, name).Body(body).Execute()

Update a video

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiVideosByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiVideosByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiVideosByOwnerByName`: PostAiVideos200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiVideosByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiVideosByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiVideos200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchAiWorkflowsByOwnerByName

PostAiWorkflows200Response PatchAiWorkflowsByOwnerByName(ctx, owner, name).Body(body).Execute()

Update a workflow

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PatchAiWorkflowsByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PatchAiWorkflowsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchAiWorkflowsByOwnerByName`: PostAiWorkflows200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PatchAiWorkflowsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPatchAiWorkflowsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiWorkflows200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiArticles

PostAiArticles200Response PostAiArticles(ctx).Body(body).Execute()

Create a article

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiArticles(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiArticles``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiArticles`: PostAiArticles200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiArticles`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiArticlesRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

PostAiArticles200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiAssets

PostAiAssets200Response PostAiAssets(ctx).Body(body).Execute()

Create a asset

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiAssets(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiAssets``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiAssets`: PostAiAssets200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiAssets`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiAssetsRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

PostAiAssets200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiAssetsByOwnerByNameScan

Envelope PostAiAssetsByOwnerByNameScan(ctx, owner, name).Body(body).Execute()

Scan (asset)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiAssetsByOwnerByNameScan(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiAssetsByOwnerByNameScan``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiAssetsByOwnerByNameScan`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiAssetsByOwnerByNameScan`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPostAiAssetsByOwnerByNameScanRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiAssetsScan

Envelope PostAiAssetsScan(ctx).Body(body).Execute()

Scan (asset)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiAssetsScan(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiAssetsScan``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiAssetsScan`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiAssetsScan`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiAssetsScanRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiChats

PostAiChats200Response PostAiChats(ctx).Body(body).Execute()

Create a chat

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiChats(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiChats``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiChats`: PostAiChats200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiChats`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiChatsRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

PostAiChats200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiConnections

PostAiConnections200Response PostAiConnections(ctx).Execute()

Connects (or reconnects) a third-party AI account for the org by sealing the supplied key into KMS and upserting the org's provider row.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiConnections(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiConnections``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiConnections`: PostAiConnections200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiConnections`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostAiConnectionsRequest struct via the builder pattern

Return type

PostAiConnections200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiConnectionsByProvider

PostAiConnections200Response PostAiConnectionsByProvider(ctx, provider).Execute()

Disconnects a third-party AI account: it deactivates the org's row so completion resolution falls back to the global Hanzo account (no BYO), and best-effort tombstones the sealed secret.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	provider := "provider_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiConnectionsByProvider(context.Background(), provider).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiConnectionsByProvider``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiConnectionsByProvider`: PostAiConnections200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiConnectionsByProvider`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
provider string

Other Parameters

Other parameters are passed through a pointer to a apiPostAiConnectionsByProviderRequest struct via the builder pattern

Name Type Description Notes

Return type

PostAiConnections200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiDeployments

PostAiDeployments200Response PostAiDeployments(ctx).Body(body).Execute()

Create a application

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiDeployments(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiDeployments``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiDeployments`: PostAiDeployments200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiDeployments`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiDeploymentsRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

PostAiDeployments200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiDeploymentsByOwnerByNameDeploy

Envelope PostAiDeploymentsByOwnerByNameDeploy(ctx, owner, name).Body(body).Execute()

Deploy (application)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiDeploymentsByOwnerByNameDeploy(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiDeploymentsByOwnerByNameDeploy``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiDeploymentsByOwnerByNameDeploy`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiDeploymentsByOwnerByNameDeploy`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPostAiDeploymentsByOwnerByNameDeployRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiDeploymentsByOwnerByNameUndeploy

Envelope PostAiDeploymentsByOwnerByNameUndeploy(ctx, owner, name).Body(body).Execute()

Undeploy (application)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiDeploymentsByOwnerByNameUndeploy(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiDeploymentsByOwnerByNameUndeploy``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiDeploymentsByOwnerByNameUndeploy`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiDeploymentsByOwnerByNameUndeploy`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPostAiDeploymentsByOwnerByNameUndeployRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiFeedback

PostAiFeedback200Response PostAiFeedback(ctx).AiRoutingRewardRequest(aiRoutingRewardRequest).Execute()

Attaches a per-request outcome reward to the routing decision that served request_id — the enso training loop's quality signal.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	aiRoutingRewardRequest := *openapiclient.NewAiRoutingRewardRequest("RequestId_example") // AiRoutingRewardRequest | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiFeedback(context.Background()).AiRoutingRewardRequest(aiRoutingRewardRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiFeedback``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiFeedback`: PostAiFeedback200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiFeedback`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiFeedbackRequest struct via the builder pattern

Name Type Description Notes
aiRoutingRewardRequest AiRoutingRewardRequest

Return type

PostAiFeedback200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiFiles

PostAiFiles200Response PostAiFiles(ctx).Body(body).Execute()

Create a file

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiFiles(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiFiles``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiFiles`: PostAiFiles200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiFiles`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiFilesRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

PostAiFiles200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiFilesActivate

Envelope PostAiFilesActivate(ctx).Body(body).Execute()

Activate (file)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiFilesActivate(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiFilesActivate``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiFilesActivate`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiFilesActivate`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiFilesActivateRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiFilesByOwnerByNameVectors

Envelope PostAiFilesByOwnerByNameVectors(ctx, owner, name).Body(body).Execute()

Vectors (file)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiFilesByOwnerByNameVectors(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiFilesByOwnerByNameVectors``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiFilesByOwnerByNameVectors`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiFilesByOwnerByNameVectors`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPostAiFilesByOwnerByNameVectorsRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiFilesUpload

Envelope PostAiFilesUpload(ctx).Body(body).Execute()

Upload (file)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiFilesUpload(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiFilesUpload``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiFilesUpload`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiFilesUpload`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiFilesUploadRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiFinetuneCancel

PostAiFinetuneCancel200Response PostAiFinetuneCancel(ctx).Execute()

Deletes the TrainJob CR, meters the GPU-hours used so far, and marks the job cancelled.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiFinetuneCancel(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiFinetuneCancel``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiFinetuneCancel`: PostAiFinetuneCancel200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiFinetuneCancel`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostAiFinetuneCancelRequest struct via the builder pattern

Return type

PostAiFinetuneCancel200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiFinetuneDeploy

PostAiFinetuneDeploy200Response PostAiFinetuneDeploy(ctx).Execute()

Serves a completed job's checkpoints and registers the result as a routable model on api.hanzo.ai.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiFinetuneDeploy(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiFinetuneDeploy``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiFinetuneDeploy`: PostAiFinetuneDeploy200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiFinetuneDeploy`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostAiFinetuneDeployRequest struct via the builder pattern

Return type

PostAiFinetuneDeploy200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiFinetuneJobs

PostAiFinetuneCancel200Response PostAiFinetuneJobs(ctx).Execute()

Validates the request, resolves efficient defaults, persists the job, and submits a real TrainJob CR.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiFinetuneJobs(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiFinetuneJobs``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiFinetuneJobs`: PostAiFinetuneCancel200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiFinetuneJobs`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostAiFinetuneJobsRequest struct via the builder pattern

Return type

PostAiFinetuneCancel200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiForms

PostAiForms200Response PostAiForms(ctx).Body(body).Execute()

Create a form

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiForms(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiForms``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiForms`: PostAiForms200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiForms`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiFormsRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

PostAiForms200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiGraphs

PostAiGraphs200Response PostAiGraphs(ctx).Body(body).Execute()

Create a graph

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiGraphs(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiGraphs``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiGraphs`: PostAiGraphs200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiGraphs`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiGraphsRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

PostAiGraphs200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiMemoryDelete

PostAiMemoryDelete200Response PostAiMemoryDelete(ctx).Execute()

Delete one of the authenticated user's memories

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiMemoryDelete(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiMemoryDelete``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiMemoryDelete`: PostAiMemoryDelete200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiMemoryDelete`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostAiMemoryDeleteRequest struct via the builder pattern

Return type

PostAiMemoryDelete200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiMemoryRemember

PostAiMemoryRemember200Response PostAiMemoryRemember(ctx).Execute()

Store a memory for the authenticated user

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiMemoryRemember(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiMemoryRemember``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiMemoryRemember`: PostAiMemoryRemember200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiMemoryRemember`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostAiMemoryRememberRequest struct via the builder pattern

Return type

PostAiMemoryRemember200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiMemoryUpdate

PostAiMemoryDelete200Response PostAiMemoryUpdate(ctx).Execute()

Update one of the authenticated user's memories

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiMemoryUpdate(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiMemoryUpdate``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiMemoryUpdate`: PostAiMemoryDelete200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiMemoryUpdate`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostAiMemoryUpdateRequest struct via the builder pattern

Return type

PostAiMemoryDelete200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiMessages

PostAiMessages200Response PostAiMessages(ctx).Body(body).Execute()

Create a message

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiMessages(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiMessages``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiMessages`: PostAiMessages200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiMessages`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiMessagesRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

PostAiMessages200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiNodes

PostAiNodes200Response PostAiNodes(ctx).Body(body).Execute()

Create a node

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiNodes(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiNodes``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiNodes`: PostAiNodes200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiNodes`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiNodesRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

PostAiNodes200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiNodesByOwnerByNameTunnel

Envelope PostAiNodesByOwnerByNameTunnel(ctx, owner, name).Body(body).Execute()

Tunnel (node)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiNodesByOwnerByNameTunnel(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiNodesByOwnerByNameTunnel``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiNodesByOwnerByNameTunnel`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiNodesByOwnerByNameTunnel`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPostAiNodesByOwnerByNameTunnelRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiOrgSettings

AiResponse PostAiOrgSettings(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiOrgSettings(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiOrgSettings``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiOrgSettings`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiOrgSettings`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostAiOrgSettingsRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiOrgSettingsList

AiResponse PostAiOrgSettingsList(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiOrgSettingsList(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiOrgSettingsList``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiOrgSettingsList`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiOrgSettingsList`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostAiOrgSettingsListRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiProviders

PostAiProviders200Response PostAiProviders(ctx).Body(body).Execute()

Create a provider

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiProviders(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiProviders``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiProviders`: PostAiProviders200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiProviders`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiProvidersRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

PostAiProviders200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiProvidersMcpTools

Envelope PostAiProvidersMcpTools(ctx).Body(body).Execute()

Mcp Tools (provider)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiProvidersMcpTools(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiProvidersMcpTools``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiProvidersMcpTools`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiProvidersMcpTools`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiProvidersMcpToolsRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiRagDelete

GetAiFinetunePresets200Response PostAiRagDelete(ctx).Execute()

Delete all chunks of one or more uploaded files (by file_id) from the owner's Search+Vector index.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiRagDelete(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiRagDelete``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiRagDelete`: GetAiFinetunePresets200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiRagDelete`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostAiRagDeleteRequest struct via the builder pattern

Return type

GetAiFinetunePresets200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiRagEmbed

PostAiRagEmbed200Response PostAiRagEmbed(ctx).Execute()

Parse, chunk, and embed one uploaded file under its file_id into the unified Search+Vector index, scoped to the authenticated owner.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiRagEmbed(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiRagEmbed``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiRagEmbed`: PostAiRagEmbed200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiRagEmbed`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostAiRagEmbedRequest struct via the builder pattern

Return type

PostAiRagEmbed200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiRagIngest

PostAiRagIngest200Response PostAiRagIngest(ctx).Execute()

Unified RAG ingest: parse + chunk + embed documents and pipe them to BOTH Hanzo Vector (semantic) AND Hanzo Search (keyword) under the tenant index {owner}-{store}-docs — the same index /v1/chat retrieval reads.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiRagIngest(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiRagIngest``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiRagIngest`: PostAiRagIngest200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiRagIngest`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostAiRagIngestRequest struct via the builder pattern

Return type

PostAiRagIngest200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiRagQuery

[]DocSearchResult PostAiRagQuery(ctx).Execute()

Retrieve the top-K chunks relevant to a query, scoped to a single uploaded file (file_id).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiRagQuery(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiRagQuery``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiRagQuery`: []DocSearchResult
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiRagQuery`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostAiRagQueryRequest struct via the builder pattern

Return type

[]DocSearchResult

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiRagQueryMultiple

[]DocSearchResult PostAiRagQueryMultiple(ctx).Execute()

Retrieve the top-K chunks relevant to a query, scoped to a SET of uploaded files (file_ids).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiRagQueryMultiple(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiRagQueryMultiple``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiRagQueryMultiple`: []DocSearchResult
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiRagQueryMultiple`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostAiRagQueryMultipleRequest struct via the builder pattern

Return type

[]DocSearchResult

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiRecords

PostAiRecords200Response PostAiRecords(ctx).Body(body).Execute()

Create a record

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiRecords(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiRecords``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiRecords`: PostAiRecords200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiRecords`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiRecordsRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

PostAiRecords200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiRecordsBatch

Envelope PostAiRecordsBatch(ctx).Body(body).Execute()

Batch (record)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiRecordsBatch(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiRecordsBatch``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiRecordsBatch`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiRecordsBatch`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiRecordsBatchRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiRecordsCommit

Envelope PostAiRecordsCommit(ctx).Body(body).Execute()

Commit (record)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiRecordsCommit(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiRecordsCommit``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiRecordsCommit`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiRecordsCommit`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiRecordsCommitRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiRecordsCommitSecond

Envelope PostAiRecordsCommitSecond(ctx).Body(body).Execute()

Commit Second (record)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiRecordsCommitSecond(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiRecordsCommitSecond``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiRecordsCommitSecond`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiRecordsCommitSecond`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiRecordsCommitSecondRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiRemoteConnections

PostAiRemoteConnections200Response PostAiRemoteConnections(ctx).Body(body).Execute()

Create a connection

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiRemoteConnections(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiRemoteConnections``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiRemoteConnections`: PostAiRemoteConnections200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiRemoteConnections`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiRemoteConnectionsRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

PostAiRemoteConnections200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiRemoteConnectionsByOwnerByNameStart

Envelope PostAiRemoteConnectionsByOwnerByNameStart(ctx, owner, name).Body(body).Execute()

Start (connection)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiRemoteConnectionsByOwnerByNameStart(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiRemoteConnectionsByOwnerByNameStart``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiRemoteConnectionsByOwnerByNameStart`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiRemoteConnectionsByOwnerByNameStart`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPostAiRemoteConnectionsByOwnerByNameStartRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiRemoteConnectionsByOwnerByNameStop

Envelope PostAiRemoteConnectionsByOwnerByNameStop(ctx, owner, name).Body(body).Execute()

Stop (connection)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiRemoteConnectionsByOwnerByNameStop(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiRemoteConnectionsByOwnerByNameStop``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiRemoteConnectionsByOwnerByNameStop`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiRemoteConnectionsByOwnerByNameStop`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPostAiRemoteConnectionsByOwnerByNameStopRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiRouterArtifactMeta

AiResponse PostAiRouterArtifactMeta(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiRouterArtifactMeta(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiRouterArtifactMeta``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiRouterArtifactMeta`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiRouterArtifactMeta`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostAiRouterArtifactMetaRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiRouterCatalogPropose

PostAiRouterCatalogPropose200Response PostAiRouterCatalogPropose(ctx).AiRoutingEdit(aiRoutingEdit).Execute()

Answers the diff an edited catalog would apply to a family, and the version it would be made from.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	aiRoutingEdit := *openapiclient.NewAiRoutingEdit() // AiRoutingEdit | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiRouterCatalogPropose(context.Background()).AiRoutingEdit(aiRoutingEdit).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiRouterCatalogPropose``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiRouterCatalogPropose`: PostAiRouterCatalogPropose200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiRouterCatalogPropose`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiRouterCatalogProposeRequest struct via the builder pattern

Name Type Description Notes
aiRoutingEdit AiRoutingEdit

Return type

PostAiRouterCatalogPropose200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiRouterCatalogRollback

PutAiRouterCatalog200Response PostAiRouterCatalogRollback(ctx).AiRoutingEdit(aiRoutingEdit).Execute()

Applies an earlier version of a family's catalog again, as a new version.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	aiRoutingEdit := *openapiclient.NewAiRoutingEdit() // AiRoutingEdit | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiRouterCatalogRollback(context.Background()).AiRoutingEdit(aiRoutingEdit).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiRouterCatalogRollback``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiRouterCatalogRollback`: PutAiRouterCatalog200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiRouterCatalogRollback`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiRouterCatalogRollbackRequest struct via the builder pattern

Name Type Description Notes
aiRoutingEdit AiRoutingEdit

Return type

PutAiRouterCatalog200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiRouterCatalogTest

PostAiRouterCatalogTest200Response PostAiRouterCatalogTest(ctx).AiRoutingEdit(aiRoutingEdit).Execute()

Sends one short turn to a SKU through its family and answers which upstream wrote it and how long it took.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	aiRoutingEdit := *openapiclient.NewAiRoutingEdit() // AiRoutingEdit | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiRouterCatalogTest(context.Background()).AiRoutingEdit(aiRoutingEdit).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiRouterCatalogTest``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiRouterCatalogTest`: PostAiRouterCatalogTest200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiRouterCatalogTest`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiRouterCatalogTestRequest struct via the builder pattern

Name Type Description Notes
aiRoutingEdit AiRoutingEdit

Return type

PostAiRouterCatalogTest200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiRouterDefaults

AiResponse PostAiRouterDefaults(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiRouterDefaults(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiRouterDefaults``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiRouterDefaults`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiRouterDefaults`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostAiRouterDefaultsRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiRouterLedger

AiResponse PostAiRouterLedger(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiRouterLedger(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiRouterLedger``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiRouterLedger`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiRouterLedger`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostAiRouterLedgerRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiRouterPolicy

AiResponse PostAiRouterPolicy(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiRouterPolicy(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiRouterPolicy``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiRouterPolicy`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiRouterPolicy`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostAiRouterPolicyRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiRouterRewards

AiResponse PostAiRouterRewards(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiRouterRewards(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiRouterRewards``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiRouterRewards`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiRouterRewards`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostAiRouterRewardsRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiRoutes

PostAiRoutes200Response PostAiRoutes(ctx).Body(body).Execute()

Create a model-route

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiRoutes(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiRoutes``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiRoutes`: PostAiRoutes200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiRoutes`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiRoutesRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

PostAiRoutes200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiScales

PostAiScales200Response PostAiScales(ctx).Body(body).Execute()

Create a scale

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiScales(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiScales``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiScales`: PostAiScales200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiScales`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiScalesRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

PostAiScales200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiScans

PostAiScans200Response PostAiScans(ctx).Body(body).Execute()

Create a scan

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiScans(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiScans``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiScans`: PostAiScans200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiScans`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiScansRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

PostAiScans200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiSignin

Envelope PostAiSignin(ctx).Body(body).Execute()

Signin

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiSignin(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiSignin``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiSignin`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiSignin`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiSigninRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiSigninSessions

PostAiSigninSessions200Response PostAiSigninSessions(ctx).Body(body).Execute()

Create a session

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiSigninSessions(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiSigninSessions``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiSigninSessions`: PostAiSigninSessions200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiSigninSessions`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiSigninSessionsRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

PostAiSigninSessions200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiSignout

Envelope PostAiSignout(ctx).Body(body).Execute()

Signout

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiSignout(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiSignout``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiSignout`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiSignout`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiSignoutRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiStores

PostAiStores200Response PostAiStores(ctx).Body(body).Execute()

Create a store

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiStores(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiStores``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiStores`: PostAiStores200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiStores`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiStoresRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

PostAiStores200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiStoresByOwnerByNameVectors

Envelope PostAiStoresByOwnerByNameVectors(ctx, owner, name).Body(body).Execute()

Vectors (store)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiStoresByOwnerByNameVectors(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiStoresByOwnerByNameVectors``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiStoresByOwnerByNameVectors`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiStoresByOwnerByNameVectors`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPostAiStoresByOwnerByNameVectorsRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiTasks

PostAiTasks200Response PostAiTasks(ctx).Body(body).Execute()

Create a task

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiTasks(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiTasks``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiTasks`: PostAiTasks200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiTasks`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiTasksRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

PostAiTasks200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiTasksByOwnerByNameAnalyze

Envelope PostAiTasksByOwnerByNameAnalyze(ctx, owner, name).Body(body).Execute()

Analyze (task)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiTasksByOwnerByNameAnalyze(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiTasksByOwnerByNameAnalyze``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiTasksByOwnerByNameAnalyze`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiTasksByOwnerByNameAnalyze`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPostAiTasksByOwnerByNameAnalyzeRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiTasksByOwnerByNameDocument

Envelope PostAiTasksByOwnerByNameDocument(ctx, owner, name).Body(body).Execute()

Document (task)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiTasksByOwnerByNameDocument(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiTasksByOwnerByNameDocument``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiTasksByOwnerByNameDocument`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiTasksByOwnerByNameDocument`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPostAiTasksByOwnerByNameDocumentRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiTemplates

PostAiTemplates200Response PostAiTemplates(ctx).Body(body).Execute()

Create a template

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiTemplates(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiTemplates``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiTemplates`: PostAiTemplates200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiTemplates`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiTemplatesRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

PostAiTemplates200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiTreeFiles

PostAiTreeFiles200Response PostAiTreeFiles(ctx).Body(body).Execute()

Create a tree-file

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiTreeFiles(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiTreeFiles``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiTreeFiles`: PostAiTreeFiles200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiTreeFiles`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiTreeFilesRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

PostAiTreeFiles200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiVectors

PostAiVectors200Response PostAiVectors(ctx).Body(body).Execute()

Create a vector

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiVectors(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiVectors``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiVectors`: PostAiVectors200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiVectors`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiVectorsRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

PostAiVectors200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiVideos

PostAiVideos200Response PostAiVideos(ctx).Body(body).Execute()

Create a video

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiVideos(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiVideos``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiVideos`: PostAiVideos200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiVideos`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiVideosRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

PostAiVideos200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiVideosUpload

Envelope PostAiVideosUpload(ctx).Body(body).Execute()

Upload (video)

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiVideosUpload(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiVideosUpload``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiVideosUpload`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiVideosUpload`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiVideosUploadRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAiWorkflows

PostAiWorkflows200Response PostAiWorkflows(ctx).Body(body).Execute()

Create a workflow

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAiWorkflows(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAiWorkflows``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAiWorkflows`: PostAiWorkflows200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAiWorkflows`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostAiWorkflowsRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

PostAiWorkflows200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAudioFoley

PostAudioFoley(ctx).Execute()

Serves the generative audio verbs — /v1/audio/voice (TTS), /music, /foley — that the Zen family serves natively.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.AiAPI.PostAudioFoley(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAudioFoley``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostAudioFoleyRequest struct via the builder pattern

Return type

(empty response body)

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAudioMusic

PostAudioMusic(ctx).Execute()

Serves the generative audio verbs — /v1/audio/voice (TTS), /music, /foley — that the Zen family serves natively.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.AiAPI.PostAudioMusic(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAudioMusic``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostAudioMusicRequest struct via the builder pattern

Return type

(empty response body)

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAudioSpeech

PostAudioSpeech(ctx).Execute()

The OpenAI-compatible TTS endpoint (POST /v1/audio/speech).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.AiAPI.PostAudioSpeech(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAudioSpeech``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostAudioSpeechRequest struct via the builder pattern

Return type

(empty response body)

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAudioTranscript

PostAudioTranscript(ctx).Execute()

Serves the growing transcript over HTTP: POST opens one, POST to its id pushes raw pcm16 at 16 kHz, and DELETE closes it with the settled text.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.AiAPI.PostAudioTranscript(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAudioTranscript``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostAudioTranscriptRequest struct via the builder pattern

Return type

(empty response body)

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAudioTranscriptById

PostAudioTranscriptById(ctx, id).Execute()

Serves the growing transcript over HTTP: POST opens one, POST to its id pushes raw pcm16 at 16 kHz, and DELETE closes it with the settled text.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	id := "id_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.AiAPI.PostAudioTranscriptById(context.Background(), id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAudioTranscriptById``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string

Other Parameters

Other parameters are passed through a pointer to a apiPostAudioTranscriptByIdRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAudioTranscriptions

OpenaiAudioResponse PostAudioTranscriptions(ctx).Execute()

The OpenAI-compatible STT endpoint (POST /v1/audio/transcriptions, multipart: file + model [+ language + response_format]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAudioTranscriptions(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAudioTranscriptions``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAudioTranscriptions`: OpenaiAudioResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAudioTranscriptions`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostAudioTranscriptionsRequest struct via the builder pattern

Return type

OpenaiAudioResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAudioTranscriptionsPublic

OpenaiAudioResponse PostAudioTranscriptionsPublic(ctx).Execute()

Transcribes up to a minute of audio for a caller with no account, on Hanzo's own transcriber, within a daily allowance per visitor.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostAudioTranscriptionsPublic(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAudioTranscriptionsPublic``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostAudioTranscriptionsPublic`: OpenaiAudioResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostAudioTranscriptionsPublic`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostAudioTranscriptionsPublicRequest struct via the builder pattern

Return type

OpenaiAudioResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostAudioVoice

PostAudioVoice(ctx).Execute()

Serves the generative audio verbs — /v1/audio/voice (TTS), /music, /foley — that the Zen family serves natively.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.AiAPI.PostAudioVoice(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostAudioVoice``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostAudioVoiceRequest struct via the builder pattern

Return type

(empty response body)

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostChat

PostChat200Response PostChat(ctx).OpenaiChatCompletionRequest(openaiChatCompletionRequest).XMaxCost(xMaxCost).XMaxLatencyMs(xMaxLatencyMs).Execute()

Implements the OpenAI-compatible chat completions API

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	openaiChatCompletionRequest := *openapiclient.NewOpenaiChatCompletionRequest() // OpenaiChatCompletionRequest | 
	xMaxCost := float32(8.14) // float32 | The most this request may cost, in USD per 1,000 tokens. Routing picks only models under it; an org's own ceiling fills it when it is absent, and the lower of the two holds. (optional)
	xMaxLatencyMs := int32(56) // int32 | The slowest model this request accepts, in milliseconds. (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostChat(context.Background()).OpenaiChatCompletionRequest(openaiChatCompletionRequest).XMaxCost(xMaxCost).XMaxLatencyMs(xMaxLatencyMs).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostChat``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostChat`: PostChat200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostChat`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostChatRequest struct via the builder pattern

Name Type Description Notes
openaiChatCompletionRequest OpenaiChatCompletionRequest
xMaxCost float32 The most this request may cost, in USD per 1,000 tokens. Routing picks only models under it; an org's own ceiling fills it when it is absent, and the lower of the two holds.
xMaxLatencyMs int32 The slowest model this request accepts, in milliseconds.

Return type

PostChat200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostChatCompletions

PostChat200Response PostChatCompletions(ctx).OpenaiChatCompletionRequest(openaiChatCompletionRequest).XMaxCost(xMaxCost).XMaxLatencyMs(xMaxLatencyMs).Execute()

Implements the OpenAI-compatible chat completions API

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	openaiChatCompletionRequest := *openapiclient.NewOpenaiChatCompletionRequest() // OpenaiChatCompletionRequest | 
	xMaxCost := float32(8.14) // float32 | The most this request may cost, in USD per 1,000 tokens. Routing picks only models under it; an org's own ceiling fills it when it is absent, and the lower of the two holds. (optional)
	xMaxLatencyMs := int32(56) // int32 | The slowest model this request accepts, in milliseconds. (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostChatCompletions(context.Background()).OpenaiChatCompletionRequest(openaiChatCompletionRequest).XMaxCost(xMaxCost).XMaxLatencyMs(xMaxLatencyMs).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostChatCompletions``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostChatCompletions`: PostChat200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostChatCompletions`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostChatCompletionsRequest struct via the builder pattern

Name Type Description Notes
openaiChatCompletionRequest OpenaiChatCompletionRequest
xMaxCost float32 The most this request may cost, in USD per 1,000 tokens. Routing picks only models under it; an org's own ceiling fills it when it is absent, and the lower of the two holds.
xMaxLatencyMs int32 The slowest model this request accepts, in milliseconds.

Return type

PostChat200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostChatPublic

OpenaiChatCompletionResponse PostChatPublic(ctx).OpenaiChatCompletionRequest(openaiChatCompletionRequest).Execute()

Serves one completion to a caller with no account.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	openaiChatCompletionRequest := *openapiclient.NewOpenaiChatCompletionRequest() // OpenaiChatCompletionRequest | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostChatPublic(context.Background()).OpenaiChatCompletionRequest(openaiChatCompletionRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostChatPublic``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostChatPublic`: OpenaiChatCompletionResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostChatPublic`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostChatPublicRequest struct via the builder pattern

Name Type Description Notes
openaiChatCompletionRequest OpenaiChatCompletionRequest

Return type

OpenaiChatCompletionResponse

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostCompletions

PostChat200Response PostCompletions(ctx).OpenaiChatCompletionRequest(openaiChatCompletionRequest).XMaxCost(xMaxCost).XMaxLatencyMs(xMaxLatencyMs).Execute()

Implements the OpenAI-compatible chat completions API

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	openaiChatCompletionRequest := *openapiclient.NewOpenaiChatCompletionRequest() // OpenaiChatCompletionRequest | 
	xMaxCost := float32(8.14) // float32 | The most this request may cost, in USD per 1,000 tokens. Routing picks only models under it; an org's own ceiling fills it when it is absent, and the lower of the two holds. (optional)
	xMaxLatencyMs := int32(56) // int32 | The slowest model this request accepts, in milliseconds. (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostCompletions(context.Background()).OpenaiChatCompletionRequest(openaiChatCompletionRequest).XMaxCost(xMaxCost).XMaxLatencyMs(xMaxLatencyMs).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostCompletions``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostCompletions`: PostChat200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostCompletions`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostCompletionsRequest struct via the builder pattern

Name Type Description Notes
openaiChatCompletionRequest OpenaiChatCompletionRequest
xMaxCost float32 The most this request may cost, in USD per 1,000 tokens. Routing picks only models under it; an org's own ceiling fills it when it is absent, and the lower of the two holds.
xMaxLatencyMs int32 The slowest model this request accepts, in milliseconds.

Return type

PostChat200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostDecisions

AiDecisionsResponse PostDecisions(ctx).AiDecisionsRequest(aiDecisionsRequest).Execute()

Implements POST /v1/decisions (the Decisions API).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	aiDecisionsRequest := *openapiclient.NewAiDecisionsRequest("Model_example") // AiDecisionsRequest | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostDecisions(context.Background()).AiDecisionsRequest(aiDecisionsRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostDecisions``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostDecisions`: AiDecisionsResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostDecisions`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostDecisionsRequest struct via the builder pattern

Name Type Description Notes
aiDecisionsRequest AiDecisionsRequest

Return type

AiDecisionsResponse

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostEmbeddings

OpenaiEmbeddingResponse PostEmbeddings(ctx).OpenaiEmbeddingRequest(openaiEmbeddingRequest).Execute()

Implements POST /v1/embeddings (OpenAI-compatible).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	openaiEmbeddingRequest := *openapiclient.NewOpenaiEmbeddingRequest() // OpenaiEmbeddingRequest | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostEmbeddings(context.Background()).OpenaiEmbeddingRequest(openaiEmbeddingRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostEmbeddings``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostEmbeddings`: OpenaiEmbeddingResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostEmbeddings`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostEmbeddingsRequest struct via the builder pattern

Name Type Description Notes
openaiEmbeddingRequest OpenaiEmbeddingRequest

Return type

OpenaiEmbeddingResponse

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostImagesGenerations

OpenaiImageResponse PostImagesGenerations(ctx).Execute()

Implements POST /v1/images/generations (OpenAI-compatible).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostImagesGenerations(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostImagesGenerations``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostImagesGenerations`: OpenaiImageResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostImagesGenerations`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostImagesGenerationsRequest struct via the builder pattern

Return type

OpenaiImageResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostMessages

AiAnthropicResponse PostMessages(ctx).AiAnthropicRequest(aiAnthropicRequest).Execute()

Implements the Anthropic Messages API.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	aiAnthropicRequest := *openapiclient.NewAiAnthropicRequest() // AiAnthropicRequest | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostMessages(context.Background()).AiAnthropicRequest(aiAnthropicRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostMessages``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostMessages`: AiAnthropicResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostMessages`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostMessagesRequest struct via the builder pattern

Name Type Description Notes
aiAnthropicRequest AiAnthropicRequest

Return type

AiAnthropicResponse

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostMessagesCountTokens

AiTokenCount PostMessagesCountTokens(ctx).Execute()

Implements POST /v1/messages/count_tokens.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostMessagesCountTokens(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostMessagesCountTokens``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostMessagesCountTokens`: AiTokenCount
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostMessagesCountTokens`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostMessagesCountTokensRequest struct via the builder pattern

Return type

AiTokenCount

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostModelsByModelAccess

PostModelsByModelAccess200Response PostModelsByModelAccess(ctx, model).Execute()

Records the caller's waitlist request for a gated model and answers their new standing.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	model := "model_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostModelsByModelAccess(context.Background(), model).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostModelsByModelAccess``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostModelsByModelAccess`: PostModelsByModelAccess200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostModelsByModelAccess`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
model string

Other Parameters

Other parameters are passed through a pointer to a apiPostModelsByModelAccessRequest struct via the builder pattern

Name Type Description Notes

Return type

PostModelsByModelAccess200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostRerank

AiRanking PostRerank(ctx).Execute()

Implements POST /v1/rerank (Cohere/Jina-compatible).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostRerank(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostRerank``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostRerank`: AiRanking
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostRerank`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostRerankRequest struct via the builder pattern

Return type

AiRanking

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostResponses

PostResponses200Response PostResponses(ctx).XMaxCost(xMaxCost).XMaxLatencyMs(xMaxLatencyMs).Execute()

Implements POST /v1/responses.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	xMaxCost := float32(8.14) // float32 | The most this request may cost, in USD per 1,000 tokens. Routing picks only models under it; an org's own ceiling fills it when it is absent, and the lower of the two holds. (optional)
	xMaxLatencyMs := int32(56) // int32 | The slowest model this request accepts, in milliseconds. (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostResponses(context.Background()).XMaxCost(xMaxCost).XMaxLatencyMs(xMaxLatencyMs).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostResponses``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostResponses`: PostResponses200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostResponses`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostResponsesRequest struct via the builder pattern

Name Type Description Notes
xMaxCost float32 The most this request may cost, in USD per 1,000 tokens. Routing picks only models under it; an org's own ceiling fills it when it is absent, and the lower of the two holds.
xMaxLatencyMs int32 The slowest model this request accepts, in milliseconds.

Return type

PostResponses200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostVideosGenerations

AiVideoStatus PostVideosGenerations(ctx).Execute()

Implements POST /v1/videos/generations — the ASYNC create.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PostVideosGenerations(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PostVideosGenerations``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostVideosGenerations`: AiVideoStatus
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PostVideosGenerations`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPostVideosGenerationsRequest struct via the builder pattern

Return type

AiVideoStatus

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiArticlesByOwnerByName

PostAiArticles200Response PutAiArticlesByOwnerByName(ctx, owner, name).Body(body).Execute()

Replace a article

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiArticlesByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiArticlesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiArticlesByOwnerByName`: PostAiArticles200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiArticlesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPutAiArticlesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiArticles200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiAssetsByOwnerByName

PostAiAssets200Response PutAiAssetsByOwnerByName(ctx, owner, name).Body(body).Execute()

Replace a asset

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiAssetsByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiAssetsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiAssetsByOwnerByName`: PostAiAssets200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiAssetsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPutAiAssetsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiAssets200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiChatsByOwnerByName

PostAiChats200Response PutAiChatsByOwnerByName(ctx, owner, name).Body(body).Execute()

Replace a chat

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiChatsByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiChatsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiChatsByOwnerByName`: PostAiChats200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiChatsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPutAiChatsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiChats200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiDeploymentsByOwnerByName

PostAiDeployments200Response PutAiDeploymentsByOwnerByName(ctx, owner, name).Body(body).Execute()

Replace a application

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiDeploymentsByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiDeploymentsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiDeploymentsByOwnerByName`: PostAiDeployments200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiDeploymentsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPutAiDeploymentsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiDeployments200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiFilesByOwnerByName

PostAiFiles200Response PutAiFilesByOwnerByName(ctx, owner, name).Body(body).Execute()

Replace a file

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiFilesByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiFilesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiFilesByOwnerByName`: PostAiFiles200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiFilesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPutAiFilesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiFiles200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiFormsByOwnerByName

PostAiForms200Response PutAiFormsByOwnerByName(ctx, owner, name).Body(body).Execute()

Replace a form

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiFormsByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiFormsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiFormsByOwnerByName`: PostAiForms200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiFormsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPutAiFormsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiForms200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiGraphsByOwnerByName

PostAiGraphs200Response PutAiGraphsByOwnerByName(ctx, owner, name).Body(body).Execute()

Replace a graph

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiGraphsByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiGraphsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiGraphsByOwnerByName`: PostAiGraphs200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiGraphsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPutAiGraphsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiGraphs200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiMessagesByOwnerByName

PostAiMessages200Response PutAiMessagesByOwnerByName(ctx, owner, name).Body(body).Execute()

Replace a message

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiMessagesByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiMessagesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiMessagesByOwnerByName`: PostAiMessages200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiMessagesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPutAiMessagesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiMessages200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiNodesByOwnerByName

PostAiNodes200Response PutAiNodesByOwnerByName(ctx, owner, name).Body(body).Execute()

Replace a node

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiNodesByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiNodesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiNodesByOwnerByName`: PostAiNodes200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiNodesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPutAiNodesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiNodes200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiOrgSettings

AiResponse PutAiOrgSettings(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiOrgSettings(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiOrgSettings``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiOrgSettings`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiOrgSettings`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPutAiOrgSettingsRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiOrgSettingsList

AiResponse PutAiOrgSettingsList(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiOrgSettingsList(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiOrgSettingsList``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiOrgSettingsList`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiOrgSettingsList`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPutAiOrgSettingsListRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiPreferences

Envelope PutAiPreferences(ctx).Body(body).Execute()

Preferences

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiPreferences(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiPreferences``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiPreferences`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiPreferences`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPutAiPreferencesRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiProvidersByOwnerByName

PostAiProviders200Response PutAiProvidersByOwnerByName(ctx, owner, name).Body(body).Execute()

Replace a provider

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiProvidersByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiProvidersByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiProvidersByOwnerByName`: PostAiProviders200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiProvidersByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPutAiProvidersByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiProviders200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiRecordsByOwnerByName

PostAiRecords200Response PutAiRecordsByOwnerByName(ctx, owner, name).Body(body).Execute()

Replace a record

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiRecordsByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiRecordsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiRecordsByOwnerByName`: PostAiRecords200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiRecordsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPutAiRecordsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiRecords200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiRemoteConnectionsByOwnerByName

PostAiRemoteConnections200Response PutAiRemoteConnectionsByOwnerByName(ctx, owner, name).Body(body).Execute()

Replace a connection

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiRemoteConnectionsByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiRemoteConnectionsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiRemoteConnectionsByOwnerByName`: PostAiRemoteConnections200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiRemoteConnectionsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPutAiRemoteConnectionsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiRemoteConnections200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiRouterArtifactMeta

AiResponse PutAiRouterArtifactMeta(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiRouterArtifactMeta(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiRouterArtifactMeta``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiRouterArtifactMeta`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiRouterArtifactMeta`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPutAiRouterArtifactMetaRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiRouterCatalog

PutAiRouterCatalog200Response PutAiRouterCatalog(ctx).AiRoutingEdit(aiRoutingEdit).Execute()

Applies an edited catalog to one family, made from its newest version, and records the new version.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	aiRoutingEdit := *openapiclient.NewAiRoutingEdit() // AiRoutingEdit | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiRouterCatalog(context.Background()).AiRoutingEdit(aiRoutingEdit).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiRouterCatalog``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiRouterCatalog`: PutAiRouterCatalog200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiRouterCatalog`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPutAiRouterCatalogRequest struct via the builder pattern

Name Type Description Notes
aiRoutingEdit AiRoutingEdit

Return type

PutAiRouterCatalog200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiRouterDefaults

AiResponse PutAiRouterDefaults(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiRouterDefaults(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiRouterDefaults``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiRouterDefaults`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiRouterDefaults`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPutAiRouterDefaultsRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiRouterLedger

AiResponse PutAiRouterLedger(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiRouterLedger(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiRouterLedger``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiRouterLedger`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiRouterLedger`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPutAiRouterLedgerRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiRouterPolicy

AiResponse PutAiRouterPolicy(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiRouterPolicy(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiRouterPolicy``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiRouterPolicy`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiRouterPolicy`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPutAiRouterPolicyRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiRouterRewards

AiResponse PutAiRouterRewards(ctx).Execute()

The HTTP transport binding for the RESTful router-config nouns (/v1/ai/router/{policy,defaults,ledger,rewards,artifact-meta} and /v1/ai/org/settings[/list]).

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiRouterRewards(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiRouterRewards``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiRouterRewards`: AiResponse
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiRouterRewards`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiPutAiRouterRewardsRequest struct via the builder pattern

Return type

AiResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiRoutesByOwnerByName

PostAiRoutes200Response PutAiRoutesByOwnerByName(ctx, owner, name).Body(body).Execute()

Replace a model-route

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiRoutesByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiRoutesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiRoutesByOwnerByName`: PostAiRoutes200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiRoutesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPutAiRoutesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiRoutes200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiScalesByOwnerByName

PostAiScales200Response PutAiScalesByOwnerByName(ctx, owner, name).Body(body).Execute()

Replace a scale

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiScalesByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiScalesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiScalesByOwnerByName`: PostAiScales200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiScalesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPutAiScalesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiScales200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiScansByOwnerByName

PostAiScans200Response PutAiScansByOwnerByName(ctx, owner, name).Body(body).Execute()

Replace a scan

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiScansByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiScansByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiScansByOwnerByName`: PostAiScans200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiScansByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPutAiScansByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiScans200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiSigninSessionsByOwnerByName

PostAiSigninSessions200Response PutAiSigninSessionsByOwnerByName(ctx, owner, name).Body(body).Execute()

Replace a session

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiSigninSessionsByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiSigninSessionsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiSigninSessionsByOwnerByName`: PostAiSigninSessions200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiSigninSessionsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPutAiSigninSessionsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiSigninSessions200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiStoresByOwnerByName

PostAiStores200Response PutAiStoresByOwnerByName(ctx, owner, name).Body(body).Execute()

Replace a store

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiStoresByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiStoresByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiStoresByOwnerByName`: PostAiStores200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiStoresByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPutAiStoresByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiStores200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiTasksByOwnerByName

PostAiTasks200Response PutAiTasksByOwnerByName(ctx, owner, name).Body(body).Execute()

Replace a task

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiTasksByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiTasksByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiTasksByOwnerByName`: PostAiTasks200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiTasksByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPutAiTasksByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiTasks200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiTemplatesByOwnerByName

PostAiTemplates200Response PutAiTemplatesByOwnerByName(ctx, owner, name).Body(body).Execute()

Replace a template

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiTemplatesByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiTemplatesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiTemplatesByOwnerByName`: PostAiTemplates200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiTemplatesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPutAiTemplatesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiTemplates200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiTrainingContribution

Envelope PutAiTrainingContribution(ctx).Body(body).Execute()

Training Contribution

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiTrainingContribution(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiTrainingContribution``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiTrainingContribution`: Envelope
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiTrainingContribution`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPutAiTrainingContributionRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

Envelope

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiTreeFilesByOwnerByName

PostAiTreeFiles200Response PutAiTreeFilesByOwnerByName(ctx, owner, name).Body(body).Execute()

Replace a tree-file

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiTreeFilesByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiTreeFilesByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiTreeFilesByOwnerByName`: PostAiTreeFiles200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiTreeFilesByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPutAiTreeFilesByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiTreeFiles200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiVectorsByOwnerByName

PostAiVectors200Response PutAiVectorsByOwnerByName(ctx, owner, name).Body(body).Execute()

Replace a vector

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiVectorsByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiVectorsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiVectorsByOwnerByName`: PostAiVectors200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiVectorsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPutAiVectorsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiVectors200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiVideosByOwnerByName

PostAiVideos200Response PutAiVideosByOwnerByName(ctx, owner, name).Body(body).Execute()

Replace a video

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiVideosByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiVideosByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiVideosByOwnerByName`: PostAiVideos200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiVideosByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPutAiVideosByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiVideos200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PutAiWorkflowsByOwnerByName

PostAiWorkflows200Response PutAiWorkflowsByOwnerByName(ctx, owner, name).Body(body).Execute()

Replace a workflow

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/hanzoai/go-sdk/v8"
)

func main() {
	owner := "owner_example" // string | 
	name := "name_example" // string | 
	body := map[string]interface{}{ ... } // map[string]interface{} | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.AiAPI.PutAiWorkflowsByOwnerByName(context.Background(), owner, name).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AiAPI.PutAiWorkflowsByOwnerByName``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PutAiWorkflowsByOwnerByName`: PostAiWorkflows200Response
	fmt.Fprintf(os.Stdout, "Response from `AiAPI.PutAiWorkflowsByOwnerByName`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string
name string

Other Parameters

Other parameters are passed through a pointer to a apiPutAiWorkflowsByOwnerByNameRequest struct via the builder pattern

Name Type Description Notes

body | map[string]interface{} | |

Return type

PostAiWorkflows200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]