Files
sdk/docs/AgentRegisterReq.md

15 KiB

AgentRegisterReq

Properties

Name Type Description Notes
Account Pointer to string Account is which subscription or API account under that provider served the run, up to 256 characters. It is what lets a revoke of that login stop exactly the sessions it was paying for. [optional]
Agent Pointer to string Agent is the label the surface opening this session calls itself by ("hanzo-dev"). REQUIRED, up to 128 characters, and free text — nothing resolves it against a defined agent. [optional]
BudgetMicroUsd Pointer to int64 BudgetMicroUSD caps what this session may spend, integer micro-USD. Zero means no cap; a cap can be raised or removed later, never added. [optional]
Channel Pointer to string Channel is the collaborative channel this run was started in (HIP-0523), so a space view can list the sessions of one channel. It is PROVENANCE and is set only here: there is deliberately no way to move a session to another channel, so it is absent from the patch input and from UpdateSession's SET list. [optional]
Cwd Pointer to string Cwd is the directory the session starts in, up to 1024 characters. It can be moved later, because a linked shell walks around. [optional]
Host Pointer to string Execution context — where this session runs (all optional). [optional]
ParentSessionId Pointer to string ParentSessionID makes this a subagent of that session: it inherits the parent's root, so one flow stays one tree. The parent must exist IN THE SAME ORG — a foreign or unknown id is a 400, never a tree across tenants. Empty opens a root session. [optional]
Project Pointer to string The readable build (provenance.go): which product this session builds, and whether its story may be read by the world. [optional]
Provider Pointer to string Account tag — the linked AI account this session ran under (login manager). [optional]
Published Pointer to bool Published opens this session's story to the public build route. It is refused without a Project, because that route is keyed on (org, project) — a build with no product is not a story anyone can open. False keeps it org-only. [optional]
Repo Pointer to string Repo is the code being worked on, up to 512 characters. A label the surface states; nothing resolves it against the forge. [optional]
Status Pointer to string Status opens the session in one of running, paused, done or error. Empty means running. A TERMINAL status here (done, error) records a session that has already finished — its end time is stamped now — and nothing can move it afterwards. [optional]
Target Pointer to string Target names a run-target the org has registered. Unlike Host and Repo it IS resolved: a target that does not exist in this org is a 400, so a session can never claim to run on another tenant's machine. Empty names no machine. [optional]
TaskRunId Pointer to string TaskRunID is that workflow's particular run, same bound. Recorded, not resolved: this surface does not check the workflow exists. [optional]
TaskWorkflowId Pointer to string TaskWorkflowID links this session to the hanzoai/tasks workflow that executes it, up to 256 characters. Set it and control commands are forwarded to that engine; leave it and the running surface polls for them instead. [optional]
Terminal Pointer to string Terminal is the URL this session's live terminal is published at, so the console can watch it. Optional — a session that publishes nothing is still a session. [optional]
Title Pointer to string Title is the human line a card shows, up to 512 characters. Optional, and changeable later. [optional]

Methods

NewAgentRegisterReq

func NewAgentRegisterReq() *AgentRegisterReq

NewAgentRegisterReq instantiates a new AgentRegisterReq object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewAgentRegisterReqWithDefaults

func NewAgentRegisterReqWithDefaults() *AgentRegisterReq

NewAgentRegisterReqWithDefaults instantiates a new AgentRegisterReq object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetAccount

func (o *AgentRegisterReq) GetAccount() string

GetAccount returns the Account field if non-nil, zero value otherwise.

GetAccountOk

func (o *AgentRegisterReq) GetAccountOk() (*string, bool)

GetAccountOk returns a tuple with the Account field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAccount

func (o *AgentRegisterReq) SetAccount(v string)

SetAccount sets Account field to given value.

HasAccount

func (o *AgentRegisterReq) HasAccount() bool

HasAccount returns a boolean if a field has been set.

GetAgent

func (o *AgentRegisterReq) GetAgent() string

GetAgent returns the Agent field if non-nil, zero value otherwise.

GetAgentOk

func (o *AgentRegisterReq) GetAgentOk() (*string, bool)

GetAgentOk returns a tuple with the Agent field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAgent

func (o *AgentRegisterReq) SetAgent(v string)

SetAgent sets Agent field to given value.

HasAgent

func (o *AgentRegisterReq) HasAgent() bool

HasAgent returns a boolean if a field has been set.

GetBudgetMicroUsd

func (o *AgentRegisterReq) GetBudgetMicroUsd() int64

GetBudgetMicroUsd returns the BudgetMicroUsd field if non-nil, zero value otherwise.

GetBudgetMicroUsdOk

func (o *AgentRegisterReq) GetBudgetMicroUsdOk() (*int64, bool)

GetBudgetMicroUsdOk returns a tuple with the BudgetMicroUsd field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetBudgetMicroUsd

func (o *AgentRegisterReq) SetBudgetMicroUsd(v int64)

SetBudgetMicroUsd sets BudgetMicroUsd field to given value.

HasBudgetMicroUsd

func (o *AgentRegisterReq) HasBudgetMicroUsd() bool

HasBudgetMicroUsd returns a boolean if a field has been set.

GetChannel

func (o *AgentRegisterReq) GetChannel() string

GetChannel returns the Channel field if non-nil, zero value otherwise.

GetChannelOk

func (o *AgentRegisterReq) GetChannelOk() (*string, bool)

GetChannelOk returns a tuple with the Channel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetChannel

func (o *AgentRegisterReq) SetChannel(v string)

SetChannel sets Channel field to given value.

HasChannel

func (o *AgentRegisterReq) HasChannel() bool

HasChannel returns a boolean if a field has been set.

GetCwd

func (o *AgentRegisterReq) GetCwd() string

GetCwd returns the Cwd field if non-nil, zero value otherwise.

GetCwdOk

func (o *AgentRegisterReq) GetCwdOk() (*string, bool)

GetCwdOk returns a tuple with the Cwd field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCwd

func (o *AgentRegisterReq) SetCwd(v string)

SetCwd sets Cwd field to given value.

HasCwd

func (o *AgentRegisterReq) HasCwd() bool

HasCwd returns a boolean if a field has been set.

GetHost

func (o *AgentRegisterReq) GetHost() string

GetHost returns the Host field if non-nil, zero value otherwise.

GetHostOk

func (o *AgentRegisterReq) GetHostOk() (*string, bool)

GetHostOk returns a tuple with the Host field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetHost

func (o *AgentRegisterReq) SetHost(v string)

SetHost sets Host field to given value.

HasHost

func (o *AgentRegisterReq) HasHost() bool

HasHost returns a boolean if a field has been set.

GetParentSessionId

func (o *AgentRegisterReq) GetParentSessionId() string

GetParentSessionId returns the ParentSessionId field if non-nil, zero value otherwise.

GetParentSessionIdOk

func (o *AgentRegisterReq) GetParentSessionIdOk() (*string, bool)

GetParentSessionIdOk returns a tuple with the ParentSessionId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetParentSessionId

func (o *AgentRegisterReq) SetParentSessionId(v string)

SetParentSessionId sets ParentSessionId field to given value.

HasParentSessionId

func (o *AgentRegisterReq) HasParentSessionId() bool

HasParentSessionId returns a boolean if a field has been set.

GetProject

func (o *AgentRegisterReq) GetProject() string

GetProject returns the Project field if non-nil, zero value otherwise.

GetProjectOk

func (o *AgentRegisterReq) GetProjectOk() (*string, bool)

GetProjectOk returns a tuple with the Project field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetProject

func (o *AgentRegisterReq) SetProject(v string)

SetProject sets Project field to given value.

HasProject

func (o *AgentRegisterReq) HasProject() bool

HasProject returns a boolean if a field has been set.

GetProvider

func (o *AgentRegisterReq) GetProvider() string

GetProvider returns the Provider field if non-nil, zero value otherwise.

GetProviderOk

func (o *AgentRegisterReq) GetProviderOk() (*string, bool)

GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetProvider

func (o *AgentRegisterReq) SetProvider(v string)

SetProvider sets Provider field to given value.

HasProvider

func (o *AgentRegisterReq) HasProvider() bool

HasProvider returns a boolean if a field has been set.

GetPublished

func (o *AgentRegisterReq) GetPublished() bool

GetPublished returns the Published field if non-nil, zero value otherwise.

GetPublishedOk

func (o *AgentRegisterReq) GetPublishedOk() (*bool, bool)

GetPublishedOk returns a tuple with the Published field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPublished

func (o *AgentRegisterReq) SetPublished(v bool)

SetPublished sets Published field to given value.

HasPublished

func (o *AgentRegisterReq) HasPublished() bool

HasPublished returns a boolean if a field has been set.

GetRepo

func (o *AgentRegisterReq) GetRepo() string

GetRepo returns the Repo field if non-nil, zero value otherwise.

GetRepoOk

func (o *AgentRegisterReq) GetRepoOk() (*string, bool)

GetRepoOk returns a tuple with the Repo field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetRepo

func (o *AgentRegisterReq) SetRepo(v string)

SetRepo sets Repo field to given value.

HasRepo

func (o *AgentRegisterReq) HasRepo() bool

HasRepo returns a boolean if a field has been set.

GetStatus

func (o *AgentRegisterReq) GetStatus() string

GetStatus returns the Status field if non-nil, zero value otherwise.

GetStatusOk

func (o *AgentRegisterReq) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetStatus

func (o *AgentRegisterReq) SetStatus(v string)

SetStatus sets Status field to given value.

HasStatus

func (o *AgentRegisterReq) HasStatus() bool

HasStatus returns a boolean if a field has been set.

GetTarget

func (o *AgentRegisterReq) GetTarget() string

GetTarget returns the Target field if non-nil, zero value otherwise.

GetTargetOk

func (o *AgentRegisterReq) GetTargetOk() (*string, bool)

GetTargetOk returns a tuple with the Target field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTarget

func (o *AgentRegisterReq) SetTarget(v string)

SetTarget sets Target field to given value.

HasTarget

func (o *AgentRegisterReq) HasTarget() bool

HasTarget returns a boolean if a field has been set.

GetTaskRunId

func (o *AgentRegisterReq) GetTaskRunId() string

GetTaskRunId returns the TaskRunId field if non-nil, zero value otherwise.

GetTaskRunIdOk

func (o *AgentRegisterReq) GetTaskRunIdOk() (*string, bool)

GetTaskRunIdOk returns a tuple with the TaskRunId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTaskRunId

func (o *AgentRegisterReq) SetTaskRunId(v string)

SetTaskRunId sets TaskRunId field to given value.

HasTaskRunId

func (o *AgentRegisterReq) HasTaskRunId() bool

HasTaskRunId returns a boolean if a field has been set.

GetTaskWorkflowId

func (o *AgentRegisterReq) GetTaskWorkflowId() string

GetTaskWorkflowId returns the TaskWorkflowId field if non-nil, zero value otherwise.

GetTaskWorkflowIdOk

func (o *AgentRegisterReq) GetTaskWorkflowIdOk() (*string, bool)

GetTaskWorkflowIdOk returns a tuple with the TaskWorkflowId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTaskWorkflowId

func (o *AgentRegisterReq) SetTaskWorkflowId(v string)

SetTaskWorkflowId sets TaskWorkflowId field to given value.

HasTaskWorkflowId

func (o *AgentRegisterReq) HasTaskWorkflowId() bool

HasTaskWorkflowId returns a boolean if a field has been set.

GetTerminal

func (o *AgentRegisterReq) GetTerminal() string

GetTerminal returns the Terminal field if non-nil, zero value otherwise.

GetTerminalOk

func (o *AgentRegisterReq) GetTerminalOk() (*string, bool)

GetTerminalOk returns a tuple with the Terminal field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTerminal

func (o *AgentRegisterReq) SetTerminal(v string)

SetTerminal sets Terminal field to given value.

HasTerminal

func (o *AgentRegisterReq) HasTerminal() bool

HasTerminal returns a boolean if a field has been set.

GetTitle

func (o *AgentRegisterReq) GetTitle() string

GetTitle returns the Title field if non-nil, zero value otherwise.

GetTitleOk

func (o *AgentRegisterReq) GetTitleOk() (*string, bool)

GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTitle

func (o *AgentRegisterReq) SetTitle(v string)

SetTitle sets Title field to given value.

HasTitle

func (o *AgentRegisterReq) HasTitle() bool

HasTitle returns a boolean if a field has been set.

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