Documentation
¶
Overview ¶
Code generated by scripts/generate-public-api.py; DO NOT EDIT.
Package v1 contains the supported wire types from the pinned Agents API.
Index ¶
- func ModelProviderAllowed(environment string, source ExecutionSource) bool
- func ModelProviderRequired(environment string) bool
- func ResolvedHarnessConfig(raw json.RawMessage) json.RawMessage
- func TerminalTurnEvent(eventType string) bool
- func ValidateHarnessConfig(harness string, raw json.RawMessage) error
- func ValidateNativeModelConfiguration(harness, model string, raw json.RawMessage) error
- type APIError
- type Agent
- type AgentContent
- type AgentDeleted
- type AgentMessageItem
- type AgentsCore
- type Automation
- type AutomationAgentConfig
- type AutomationCreatedBy
- type AutomationDeleted
- type AutomationEnvironment
- type AutomationInvocation
- type AutomationInvocationError
- type AutomationInvocationList
- type AutomationInvocationSource
- type AutomationList
- type AutomationTarget
- type CreateAgentRequest
- type CreateSessionRequest
- type CreateSubagentCallItem
- type Credential
- type CredentialAuth
- type CredentialAuthInput
- type CredentialAuthReplacement
- type CredentialDeleted
- type CredentialList
- type Environment
- type EnvironmentConnectionAction
- type EnvironmentFile
- type EnvironmentFileCreateRequest
- type EnvironmentFileList
- type EnvironmentInfo
- type EnvironmentInfoList
- type EnvironmentInstallation
- type EnvironmentNetwork
- type EnvironmentNetworkInput
- type EnvironmentPackages
- type EnvironmentPackagesResponse
- type EnvironmentTemplate
- type EnvironmentTemplateDeleted
- type EnvironmentTemplateList
- type ErrorResponse
- type ExecutionHarnessConfigSelection
- type ExecutionProviderSelection
- type ExecutionProviderStatus
- type ExecutionSelection
- type ExecutionSource
- type FunctionCallAction
- type FunctionToolInput
- type InlineAgent
- type InputContent
- type InputMessage
- type InputTokenDetails
- type InstallationStatus
- type Item
- type ItemContent
- type ItemList
- type MCPTool
- type MCPToolInput
- type MCPTransport
- type ModelConfigurationInput
- type ModelConfigurationSupport
- type ModelConfigurationView
- type ModelProviderError
- type ModelProviderInput
- func (p *ModelProviderInput) SafeView() *ModelProviderView
- func (p *ModelProviderInput) Validate() error
- func (p *ModelProviderInput) ValidateConfiguration(harness string, native json.RawMessage) error
- func (p *ModelProviderInput) ValidateHarness(harness string) error
- func (p *ModelProviderInput) ValidateHarnessWithRegistry(harness string, registry harnessconfig.Registry) error
- type ModelProviderView
- type MultiAgentConfig
- type OAuthCredentialRefresh
- type OAuthCredentialRefreshInput
- type OAuthCredentialRefreshReplacement
- type OAuthEndpointAuth
- type OAuthEndpointAuthInput
- type OAuthEndpointAuthReplacement
- type OutputTokenDetails
- type Reasoning
- type ReasoningItem
- type ReasoningResource
- type RequiredAction
- type RuntimeHistory
- type RuntimeHistoryCPU
- type RuntimeHistoryCoverage
- type RuntimeHistoryCoveragePoint
- type RuntimeHistoryMemory
- type RuntimeHistoryPoint
- type RuntimeHistoryRange
- type RuntimeHistorySeries
- type RuntimeHistoryTime
- type RuntimeHistoryTokenUsagePoint
- type RuntimeInstance
- type RuntimeMemoryObservation
- type RuntimeObservation
- type SavedAgent
- type SavedAgentConfiguration
- type SavedAgentCore
- type SavedAgentCoreInput
- type SavedAgentList
- type SendSubagentInputCallItem
- type Session
- type SessionArtifact
- type SessionArtifactDeleted
- type SessionArtifactList
- type SessionCore
- type SessionDeleted
- type SessionEnvironment
- type SessionEnvironmentState
- type SessionEvent
- type SessionExecutionConfiguration
- type SessionExecutionInput
- type SessionInput
- type SessionList
- type Skill
- type SkillDeleted
- type SkillList
- type SkillUpdateRequest
- type SkillVersion
- type SkillVersionDeleted
- type SkillVersionList
- type SourceFile
- type SourceFileDeleted
- type SourceFileList
- type StreamError
- type Subagent
- type SubagentControlCallItem
- type SubagentList
- type SummaryText
- type TextConfig
- type TextConfigInput
- type TextFormat
- type TokenUsage
- type Turn
- type TurnError
- type TurnList
- type UpdateAgentRequest
- type Vault
- type VaultDeleted
- type VaultList
- type WaitForSubagentsCallItem
- type WebSearchAction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModelProviderAllowed ¶
func ModelProviderAllowed(environment string, source ExecutionSource) bool
ModelProviderAllowed reports whether a provider bundle from source may be frozen into a Session placed in environment. Caller bundles (Session or saved Agent) run on Core-managed or caller-owned compute. The deployment default holds the operator's key, so it stays on operator compute: openai_hosted and operator-registered none devices. An unknown source is allowed only where every source is.
func ModelProviderRequired ¶
ModelProviderRequired reports whether a Session in environment cannot run without a frozen provider bundle. Hosted and self-hosted Runtimes carry no model configuration of their own; a none device may use its own environment.
func ResolvedHarnessConfig ¶
func ResolvedHarnessConfig(raw json.RawMessage) json.RawMessage
func TerminalTurnEvent ¶
TerminalTurnEvent reports whether an event type settles a Turn.
func ValidateHarnessConfig ¶
func ValidateHarnessConfig(harness string, raw json.RawMessage) error
func ValidateNativeModelConfiguration ¶
func ValidateNativeModelConfiguration(harness, model string, raw json.RawMessage) error
ValidateNativeModelConfiguration checks the resolved public execution inputs through the same adapter validation used by deployment administration.
Types ¶
type APIError ¶
type APIError struct {
Message string `json:"message" binding:"required"`
Type string `json:"type" binding:"required"`
Code *string `json:"code" binding:"required" extensions:"x-nullable"`
Param *string `json:"param" binding:"required" extensions:"x-nullable"`
Misalignment json.RawMessage `json:"misalignment,omitempty" swaggertype:"object"`
}
APIError projects Error.
type Agent ¶
type Agent struct {
XAgentsCore *AgentsCore `json:"x_agents_core,omitempty"`
ID string `json:"id" binding:"required"`
Instructions *string `json:"instructions" binding:"required" extensions:"x-nullable"`
Model string `json:"model" binding:"required"`
MultiAgent MultiAgentConfig `json:"multi_agent" binding:"required"`
Name *string `json:"name" binding:"required" extensions:"x-nullable"`
Reasoning Reasoning `json:"reasoning" binding:"required"`
ServiceTier string `json:"service_tier" binding:"required" enums:"auto,default,flex,priority,fast,ultrafast"`
Text TextConfig `json:"text" binding:"required"`
Tools []json.RawMessage `json:"tools" binding:"required" swaggertype:"array,object"`
Compaction json.RawMessage `json:"compaction,omitempty" swaggertype:"object"`
Experimental json.RawMessage `json:"experimental,omitempty" swaggertype:"object"`
}
Agent projects SessionAgentResource.
type AgentContent ¶
type AgentContent struct {
Type string `json:"type" binding:"required" enums:"output_text,encrypted_content"`
Text *string `json:"text,omitempty"`
EncryptedContent *string `json:"encrypted_content,omitempty"`
}
AgentContent projects AgentContentResource.
type AgentDeleted ¶
type AgentDeleted struct {
ID string `json:"id" binding:"required"`
Object string `json:"object" binding:"required" enums:"agent.deleted"`
Deleted bool `json:"deleted" binding:"required"`
}
AgentDeleted projects DeletedAgentResource.
type AgentMessageItem ¶
type AgentMessageItem struct {
ID string `json:"id" binding:"required"`
TurnID string `json:"turn_id" binding:"required"`
Type string `json:"type" binding:"required" enums:"agent_message"`
SenderAgentID string `json:"sender_agent_id" binding:"required"`
RecipientAgentID string `json:"recipient_agent_id" binding:"required"`
Content []AgentContent `json:"content" binding:"required"`
}
AgentMessageItem projects AgentMessageItemResource.
type AgentsCore ¶
type AgentsCore struct {
Harness string `json:"harness,omitempty"`
HarnessConfig json.RawMessage `json:"harness_config,omitempty" swaggertype:"object"`
}
AgentsCore selects an existing Core harness independently of model identity.
func (*AgentsCore) Validate ¶
func (x *AgentsCore) Validate() error
type Automation ¶ added in v0.0.14
type Automation struct {
Type string `json:"type" binding:"required" enums:"periodic,once"`
ID string `json:"id" binding:"required"`
Object string `json:"object" binding:"required" enums:"agent.automation"`
CreatedAt int64 `json:"created_at" binding:"required"`
Name string `json:"name" binding:"required"`
Target json.RawMessage `json:"target" binding:"required" swaggertype:"object"`
Metadata map[string]string `json:"metadata" binding:"required"`
CreatedBy AutomationCreatedBy `json:"created_by" binding:"required"`
Expression *string `json:"expression,omitempty"`
Timezone *string `json:"timezone,omitempty"`
RunAt *int64 `json:"run_at,omitempty"`
Status string `json:"status" binding:"required" enums:"active,paused,completed"`
}
Automation projects AutomationResource.
func (Automation) MarshalJSON ¶ added in v0.0.14
func (value Automation) MarshalJSON() ([]byte, error)
type AutomationAgentConfig ¶ added in v0.0.14
type AutomationAgentConfig struct {
Model string `json:"model" binding:"required"`
Reasoning ReasoningResource `json:"reasoning" binding:"required"`
Text TextConfig `json:"text" binding:"required"`
ServiceTier string `json:"service_tier" binding:"required" enums:"auto,default,flex,priority,fast,ultrafast"`
Instructions *string `json:"instructions" binding:"required" extensions:"x-nullable"`
Tools []json.RawMessage `json:"tools" binding:"required" swaggertype:"array,object"`
MultiAgent MultiAgentConfig `json:"multi_agent" binding:"required"`
Compaction json.RawMessage `json:"compaction,omitempty" swaggertype:"object"`
Experimental json.RawMessage `json:"experimental,omitempty" swaggertype:"object"`
}
AutomationAgentConfig projects AutomationAgentConfigResource.
type AutomationCreatedBy ¶ added in v0.0.14
type AutomationCreatedBy struct {
Type string `json:"type" binding:"required" enums:"developer,agent"`
SessionID *string `json:"session_id,omitempty"`
ToolCallID *string `json:"tool_call_id,omitempty"`
}
AutomationCreatedBy projects AutomationCreatedByResource.
func (AutomationCreatedBy) MarshalJSON ¶ added in v0.0.14
func (value AutomationCreatedBy) MarshalJSON() ([]byte, error)
type AutomationDeleted ¶ added in v0.0.14
type AutomationDeleted struct {
ID string `json:"id" binding:"required"`
Object string `json:"object" binding:"required" enums:"agent.automation.deleted"`
Deleted bool `json:"deleted" binding:"required"`
}
AutomationDeleted projects DeletedAutomationResource.
type AutomationEnvironment ¶ added in v0.0.14
type AutomationEnvironment struct {
Type string `json:"type" binding:"required" enums:"none,openai_hosted,self_hosted"`
EnvironmentID *string `json:"environment_id,omitempty" extensions:"x-nullable"`
EnvironmentTemplateID *string `json:"environment_template_id,omitempty" extensions:"x-nullable"`
ContainerSize json.RawMessage `json:"container_size,omitempty" extensions:"x-nullable" swaggertype:"object"`
Packages *EnvironmentPackagesResponse `json:"packages,omitempty" extensions:"x-nullable"`
Network *EnvironmentNetwork `json:"network,omitempty" extensions:"x-nullable"`
Desktop json.RawMessage `json:"desktop,omitempty" extensions:"x-nullable" swaggertype:"object"`
CapabilityDirectories []string `json:"capability_directories,omitempty" extensions:"x-nullable"`
Skills []json.RawMessage `json:"skills,omitempty" extensions:"x-nullable" swaggertype:"array,object"`
Plugins []json.RawMessage `json:"plugins,omitempty" extensions:"x-nullable" swaggertype:"array,object"`
Files []json.RawMessage `json:"files,omitempty" extensions:"x-nullable" swaggertype:"array,object"`
WorkspaceDirectory *string `json:"workspace_directory,omitempty"`
}
AutomationEnvironment projects AutomationEnvironmentResource.
func (AutomationEnvironment) MarshalJSON ¶ added in v0.0.14
func (value AutomationEnvironment) MarshalJSON() ([]byte, error)
type AutomationInvocation ¶ added in v0.0.14
type AutomationInvocation struct {
ID string `json:"id" binding:"required"`
Object string `json:"object" binding:"required" enums:"agent.automation.invocation"`
AutomationID string `json:"automation_id" binding:"required"`
CreatedAt int64 `json:"created_at" binding:"required"`
Source AutomationInvocationSource `json:"source" binding:"required"`
ScheduledAt *int64 `json:"scheduled_at" binding:"required" extensions:"x-nullable"`
SessionID *string `json:"session_id" binding:"required" extensions:"x-nullable"`
Status string `json:"status" binding:"required" enums:"queued,completed,failed,skipped"`
SkipReason *string `json:"skip_reason" binding:"required" extensions:"x-nullable" enums:"pending_delivery"`
Error *AutomationInvocationError `json:"error" binding:"required" extensions:"x-nullable"`
}
AutomationInvocation projects AutomationInvocationResource.
type AutomationInvocationError ¶ added in v0.0.14
type AutomationInvocationError struct {
Code string `json:"code" binding:"required"`
Message string `json:"message" binding:"required"`
}
AutomationInvocationError projects AutomationInvocationErrorResource.
type AutomationInvocationList ¶ added in v0.0.14
type AutomationInvocationList struct {
Object string `json:"object" binding:"required" enums:"list"`
FirstID *string `json:"first_id" binding:"required" extensions:"x-nullable"`
LastID *string `json:"last_id" binding:"required" extensions:"x-nullable"`
Data []AutomationInvocation `json:"data" binding:"required"`
HasMore bool `json:"has_more" binding:"required"`
}
AutomationInvocationList projects schema.
type AutomationInvocationSource ¶ added in v0.0.14
type AutomationInvocationSource struct {
Type string `json:"type" binding:"required" enums:"manual,automation"`
Automation json.RawMessage `json:"automation,omitempty" swaggertype:"object"`
}
AutomationInvocationSource projects AutomationInvocationSourceResource.
func (AutomationInvocationSource) MarshalJSON ¶ added in v0.0.14
func (value AutomationInvocationSource) MarshalJSON() ([]byte, error)
type AutomationList ¶ added in v0.0.14
type AutomationList struct {
Object string `json:"object" binding:"required" enums:"list"`
FirstID *string `json:"first_id" binding:"required" extensions:"x-nullable"`
LastID *string `json:"last_id" binding:"required" extensions:"x-nullable"`
Data []Automation `json:"data" binding:"required"`
HasMore bool `json:"has_more" binding:"required"`
}
AutomationList projects schema.
type AutomationTarget ¶ added in v0.0.14
type AutomationTarget struct {
Type string `json:"type" binding:"required" enums:"new_session,existing_session"`
AgentID *string `json:"agent_id,omitempty" extensions:"x-nullable"`
Agent *AutomationAgentConfig `json:"agent,omitempty" extensions:"x-nullable"`
Environment *AutomationEnvironment `json:"environment,omitempty"`
Input []InputMessage `json:"input,omitempty"`
VaultIDs []string `json:"vault_ids,omitempty"`
Metadata map[string]string `json:"metadata,omitempty"`
SessionID *string `json:"session_id,omitempty"`
Instructions *string `json:"instructions,omitempty"`
}
AutomationTarget projects AutomationTargetResource.
func (AutomationTarget) MarshalJSON ¶ added in v0.0.14
func (value AutomationTarget) MarshalJSON() ([]byte, error)
type CreateAgentRequest ¶
type CreateAgentRequest struct {
XAgentsCore *SavedAgentCoreInput `json:"x_agents_core,omitempty"`
Model *string `json:"model" binding:"required"`
Name *string `json:"name,omitempty" extensions:"x-nullable"`
Instructions *string `json:"instructions,omitempty" extensions:"x-nullable"`
Metadata map[string]*string `json:"metadata,omitempty" extensions:"x-nullable"`
MultiAgent json.RawMessage `json:"multi_agent,omitempty" extensions:"x-nullable" swaggertype:"object"`
Reasoning *Reasoning `json:"reasoning,omitempty" extensions:"x-nullable"`
ServiceTier *string `json:"service_tier,omitempty" extensions:"x-nullable" enums:"auto,default,flex,priority,fast,ultrafast"`
Text *TextConfigInput `json:"text,omitempty" extensions:"x-nullable"`
Tools []json.RawMessage `json:"tools,omitempty" extensions:"x-nullable" swaggertype:"array,object"`
Experimental json.RawMessage `json:"experimental,omitempty" swaggertype:"object"`
Compaction json.RawMessage `json:"compaction,omitempty" extensions:"x-nullable" swaggertype:"object"`
}
CreateAgentRequest projects CreateAgentParams.
type CreateSessionRequest ¶
type CreateSessionRequest struct {
XAgentsCore *SessionExecutionInput `json:"x_agents_core,omitempty"`
Agent *InlineAgent `json:"agent,omitempty"`
AgentID *string `json:"agent_id,omitempty"`
Environment *Environment `json:"environment" binding:"required"`
Input any `json:"input,omitempty" extensions:"x-nullable"`
Metadata map[string]string `json:"metadata,omitempty" extensions:"x-nullable"`
Stream bool `json:"stream,omitempty"`
VaultIDs []string `json:"vault_ids,omitempty" extensions:"x-nullable"`
Review *string `json:"review,omitempty" enums:"none,auto_review"`
}
CreateSessionRequest projects CreateAgentSessionParams.
type CreateSubagentCallItem ¶
type CreateSubagentCallItem struct {
ID string `json:"id" binding:"required"`
TurnID string `json:"turn_id" binding:"required"`
Type string `json:"type" binding:"required" enums:"create_subagent_call"`
Status string `json:"status" binding:"required" enums:"in_progress,completed,failed,incomplete"`
AgentID string `json:"agent_id" binding:"required"`
Content []AgentContent `json:"content" binding:"required"`
Model *string `json:"model" binding:"required" extensions:"x-nullable"`
ReasoningEffort *string `json:"reasoning_effort" binding:"required" extensions:"x-nullable"`
}
CreateSubagentCallItem projects CreateSubagentCallItemResource.
type Credential ¶
type Credential struct {
ID string `json:"id" binding:"required"`
VaultID string `json:"vault_id" binding:"required"`
Name string `json:"name" binding:"required"`
Object string `json:"object" binding:"required" enums:"vault.credential"`
Auth CredentialAuth `json:"auth" binding:"required"`
CreatedAt int64 `json:"created_at" binding:"required"`
UpdatedAt int64 `json:"updated_at" binding:"required"`
Metadata map[string]string `json:"metadata" binding:"required"`
}
Credential projects VaultCredentialResource.
type CredentialAuth ¶
type CredentialAuth struct {
Type string `json:"type" binding:"required" enums:"mcp_oauth,static_bearer,environment_variable"`
MCPServerURL string `json:"mcp_server_url"`
ExpiresAt *string `json:"expires_at" extensions:"x-nullable"`
Refresh *OAuthCredentialRefresh `json:"refresh" extensions:"x-nullable"`
SecretName *string `json:"secret_name,omitempty"`
Networking json.RawMessage `json:"networking,omitempty" swaggertype:"object"`
}
CredentialAuth projects VaultCredentialAuthResource.
func (CredentialAuth) MarshalJSON ¶
func (a CredentialAuth) MarshalJSON() ([]byte, error)
type CredentialAuthInput ¶
type CredentialAuthInput struct {
Type string `json:"type" binding:"required" enums:"mcp_oauth,static_bearer,environment_variable"`
MCPServerURL *string `json:"mcp_server_url,omitempty"`
Token *string `json:"token,omitempty"`
AccessToken *string `json:"access_token,omitempty"`
ExpiresAt *string `json:"expires_at,omitempty" extensions:"x-nullable"`
Refresh *OAuthCredentialRefreshInput `json:"refresh,omitempty" extensions:"x-nullable"`
SecretName *string `json:"secret_name,omitempty"`
SecretValue *string `json:"secret_value,omitempty"`
Networking json.RawMessage `json:"networking,omitempty" swaggertype:"object"`
}
CredentialAuthInput projects CreateVaultCredentialAuthParam.
type CredentialAuthReplacement ¶
type CredentialAuthReplacement struct {
Type string `json:"type" binding:"required" enums:"mcp_oauth,static_bearer,environment_variable"`
Token *string `json:"token,omitempty"`
AccessToken *string `json:"access_token,omitempty" extensions:"x-nullable"`
ExpiresAt json.RawMessage `json:"expires_at,omitempty" extensions:"x-nullable" swaggertype:"object"`
Refresh *OAuthCredentialRefreshReplacement `json:"refresh,omitempty" extensions:"x-nullable"`
SecretValue *string `json:"secret_value,omitempty"`
}
CredentialAuthReplacement projects RotateVaultCredentialAuthParam.
type CredentialDeleted ¶
type CredentialDeleted struct {
ID string `json:"id" binding:"required"`
Deleted bool `json:"deleted" binding:"required"`
Object string `json:"object" binding:"required" enums:"vault.credential.deleted"`
}
CredentialDeleted projects DeletedVaultCredentialResource.
type CredentialList ¶
type CredentialList struct {
Object string `json:"object" binding:"required" enums:"list"`
Data []Credential `json:"data" binding:"required"`
HasMore bool `json:"has_more" binding:"required"`
FirstID *string `json:"first_id" binding:"required" extensions:"x-nullable"`
LastID *string `json:"last_id" binding:"required" extensions:"x-nullable"`
}
CredentialList projects VaultCredentialListResource.
type Environment ¶
type Environment struct {
Plugins []json.RawMessage `json:"plugins,omitempty" extensions:"x-nullable" swaggertype:"array,object"`
Skills []json.RawMessage `json:"skills,omitempty" extensions:"x-nullable" swaggertype:"array,object"`
Env map[string]string `json:"env,omitempty" extensions:"x-nullable"`
SetupCommands []json.RawMessage `json:"setup_commands,omitempty" extensions:"x-nullable" swaggertype:"array,object"`
Packages *EnvironmentPackages `json:"packages,omitempty" extensions:"x-nullable"`
Files []json.RawMessage `json:"files,omitempty" extensions:"x-nullable" swaggertype:"array,object"`
EnvironmentTemplateID string `json:"environment_template_id,omitempty"`
Type string `json:"type" binding:"required" enums:"none,openai_hosted,self_hosted"`
WorkspaceDirectory string `json:"workspace_directory,omitempty"`
CapabilityDirectories []string `json:"capability_directories,omitempty" extensions:"x-nullable"`
Network *EnvironmentNetworkInput `json:"network,omitempty" extensions:"x-nullable"`
Desktop json.RawMessage `json:"desktop,omitempty" extensions:"x-nullable" swaggertype:"object"`
EnvironmentID *string `json:"environment_id,omitempty"`
ContainerSize *string `json:"container_size,omitempty" enums:"small,medium,large"`
}
Environment projects EnvironmentParam.
type EnvironmentConnectionAction ¶
type EnvironmentConnectionAction struct {
EnvironmentID string `json:"environment_id" binding:"required"`
Type string `json:"type" binding:"required" enums:"environment_connection"`
}
EnvironmentConnectionAction projects SessionRequiredActionResourceEnvironmentConnection.
type EnvironmentFile ¶
type EnvironmentFile struct {
EnvironmentID string `json:"environment_id" binding:"required"`
Object string `json:"object" binding:"required" enums:"agent.environment.file"`
Path string `json:"path" binding:"required"`
SizeBytes int64 `json:"size_bytes" binding:"required"`
}
EnvironmentFile projects EnvironmentFileResource.
type EnvironmentFileCreateRequest ¶
type EnvironmentFileCreateRequest struct {
Type string `json:"type" binding:"required" enums:"file_id,inline"`
Data *string `json:"data,omitempty"`
FileID *string `json:"file_id,omitempty"`
Path *string `json:"path" binding:"required"`
}
EnvironmentFileCreateRequest projects HostedEnvironmentFileParam.
type EnvironmentFileList ¶
type EnvironmentFileList struct {
Object string `json:"object" binding:"required" enums:"page"`
Data []EnvironmentFile `json:"data" binding:"required"`
Next *string `json:"next" binding:"required" extensions:"x-nullable"`
HasMore bool `json:"has_more" binding:"required"`
}
EnvironmentFileList projects EnvironmentFileListResource.
type EnvironmentInfo ¶
type EnvironmentInfo struct {
ID string `json:"id" binding:"required"`
Object string `json:"object" binding:"required" enums:"agent.environment"`
Type string `json:"type" binding:"required" enums:"openai_hosted,self_hosted"`
Status string `json:"status" binding:"required" enums:"pending,ready,connected,disconnected,suspended,expired,failed"`
Files []json.RawMessage `json:"files" binding:"required" swaggertype:"array,object"`
Plugins []json.RawMessage `json:"plugins" binding:"required" swaggertype:"array,object"`
Skills []json.RawMessage `json:"skills" binding:"required" swaggertype:"array,object"`
}
EnvironmentInfo projects PublicEnvironmentResource.
type EnvironmentInfoList ¶ added in v0.0.14
type EnvironmentInfoList struct {
Object string `json:"object" binding:"required" enums:"list"`
Data []EnvironmentInfo `json:"data" binding:"required"`
FirstID *string `json:"first_id" binding:"required" extensions:"x-nullable"`
LastID *string `json:"last_id" binding:"required" extensions:"x-nullable"`
HasMore bool `json:"has_more" binding:"required"`
}
EnvironmentInfoList projects AgentEnvironmentListResource.
type EnvironmentInstallation ¶
type EnvironmentInstallation struct {
Status InstallationStatus `json:"status"`
Version string `json:"version"`
ExpiresAt int64 `json:"expires_at,omitempty"`
Commands map[string]string `json:"commands,omitempty"`
Message string `json:"message,omitempty"`
}
EnvironmentInstallation contains short-lived, Environment-scoped commands. Only authenticated creation and detail responses include this authorization.
type EnvironmentNetwork ¶
type EnvironmentNetwork struct {
Access string `json:"access" binding:"required" enums:"enabled,disabled,restricted"`
AllowedDomains []string `json:"allowed_domains" binding:"required"`
}
EnvironmentNetwork projects NetworkPolicyResource.
type EnvironmentNetworkInput ¶
type EnvironmentNetworkInput struct {
Access string `json:"access" binding:"required" enums:"enabled,disabled,restricted"`
AllowedDomains []string `json:"allowed_domains,omitempty" extensions:"x-nullable"`
BlockedDomains []string `json:"blocked_domains,omitempty" extensions:"x-nullable"`
}
EnvironmentNetworkInput projects NetworkPolicyParam.
type EnvironmentPackages ¶
type EnvironmentPackages struct {
NPM []string `json:"npm" extensions:"x-nullable"`
Python []string `json:"python" extensions:"x-nullable"`
}
EnvironmentPackages projects EnvironmentPackagesParam.
type EnvironmentPackagesResponse ¶
type EnvironmentPackagesResponse struct {
NPM []string `json:"npm" binding:"required"`
Python []string `json:"python" binding:"required"`
System []string `json:"system" binding:"required"`
}
EnvironmentPackagesResponse projects EnvironmentPackagesResource.
type EnvironmentTemplate ¶
type EnvironmentTemplate struct {
ID string `json:"id" binding:"required"`
Object string `json:"object" binding:"required" enums:"agent.environment.template"`
Name *string `json:"name" binding:"required" extensions:"x-nullable"`
CreatedAt int64 `json:"created_at" binding:"required"`
UpdatedAt int64 `json:"updated_at" binding:"required"`
CapabilityDirectories []string `json:"capability_directories" binding:"required"`
Network EnvironmentNetwork `json:"network" binding:"required"`
Packages EnvironmentPackagesResponse `json:"packages" binding:"required"`
Files []json.RawMessage `json:"files" binding:"required" swaggertype:"array,object"`
Plugins []json.RawMessage `json:"plugins" binding:"required" swaggertype:"array,object"`
Skills []json.RawMessage `json:"skills" binding:"required" swaggertype:"array,object"`
Desktop json.RawMessage `json:"desktop" binding:"required" swaggertype:"object"`
}
EnvironmentTemplate projects EnvironmentTemplateResource.
type EnvironmentTemplateDeleted ¶
type EnvironmentTemplateDeleted struct {
ID string `json:"id" binding:"required"`
Object string `json:"object" binding:"required" enums:"agent.environment.template.deleted"`
Deleted bool `json:"deleted" binding:"required"`
}
EnvironmentTemplateDeleted projects DeletedEnvironmentTemplateResource.
type EnvironmentTemplateList ¶
type EnvironmentTemplateList struct {
Object string `json:"object" binding:"required" enums:"list"`
Data []EnvironmentTemplate `json:"data" binding:"required"`
HasMore bool `json:"has_more" binding:"required"`
FirstID *string `json:"first_id" binding:"required" extensions:"x-nullable"`
LastID *string `json:"last_id" binding:"required" extensions:"x-nullable"`
}
EnvironmentTemplateList projects EnvironmentTemplateListResource.
type ErrorResponse ¶
type ErrorResponse struct {
Error APIError `json:"error" binding:"required"`
}
ErrorResponse projects ErrorResponse-2.
type ExecutionHarnessConfigSelection ¶
type ExecutionHarnessConfigSelection struct {
Value json.RawMessage `json:"value" swaggertype:"object" binding:"required"`
Source ExecutionSource `json:"source" binding:"required"`
}
ExecutionHarnessConfigSelection records the immutable adapter parameters.
type ExecutionProviderSelection ¶
type ExecutionProviderSelection struct {
Source ExecutionSource `json:"source" binding:"required"`
Status ExecutionProviderStatus `json:"status" binding:"required"`
Configuration *ModelProviderView `json:"configuration" binding:"required" extensions:"x-nullable"`
}
Deployment credentials have no public endpoint projection. Unavailable means no trustworthy safe provider snapshot was recorded, not failed readiness.
type ExecutionProviderStatus ¶ added in v0.0.10
type ExecutionProviderStatus string
const ( ExecutionProviderAvailable ExecutionProviderStatus = "available" ExecutionProviderRedacted ExecutionProviderStatus = "redacted" )
type ExecutionSelection ¶
type ExecutionSelection struct {
Value *string `json:"value" binding:"required" extensions:"x-nullable"`
Source ExecutionSource `json:"source" binding:"required"`
}
type ExecutionSource ¶ added in v0.0.10
type ExecutionSource string
const ( ExecutionSourceSession ExecutionSource = "session" ExecutionSourceAgent ExecutionSource = "agent" ExecutionSourceDeployment ExecutionSource = "deployment" ExecutionSourceUnknown ExecutionSource = "unknown" )
type FunctionCallAction ¶
type FunctionCallAction struct {
Arguments any `json:"arguments" binding:"required"`
CallID string `json:"call_id" binding:"required"`
Name string `json:"name" binding:"required"`
TurnID string `json:"turn_id" binding:"required"`
Type string `json:"type" binding:"required" enums:"function_call"`
}
FunctionCallAction projects SessionRequiredActionResourceFunctionCall.
type FunctionToolInput ¶
type FunctionToolInput struct {
Type string `json:"type" binding:"required" enums:"function"`
Name string `json:"name" binding:"required"`
Description string `json:"description" binding:"required"`
Parameters json.RawMessage `json:"parameters" binding:"required" swaggertype:"object"`
DeferLoading *bool `json:"defer_loading,omitempty"`
}
FunctionToolInput projects AgentToolConfigParamFunction.
type InlineAgent ¶
type InlineAgent struct {
XAgentsCore *AgentsCore `json:"x_agents_core,omitempty"`
Model *string `json:"model,omitempty"`
Instructions *string `json:"instructions,omitempty" extensions:"x-nullable"`
MultiAgent json.RawMessage `json:"multi_agent,omitempty" extensions:"x-nullable" swaggertype:"object"`
Reasoning *Reasoning `json:"reasoning,omitempty" extensions:"x-nullable"`
ServiceTier *string `json:"service_tier,omitempty" extensions:"x-nullable" enums:"auto,default,flex,priority,fast,ultrafast"`
Text *TextConfigInput `json:"text,omitempty" extensions:"x-nullable"`
Tools []json.RawMessage `json:"tools,omitempty" extensions:"x-nullable" swaggertype:"array,object"`
Experimental json.RawMessage `json:"experimental,omitempty" swaggertype:"object"`
Compaction json.RawMessage `json:"compaction,omitempty" extensions:"x-nullable" swaggertype:"object"`
}
InlineAgent projects SessionAgentConfigParam.
type InputContent ¶
type InputContent struct {
Type string `json:"type" binding:"required" enums:"input_text,input_image"`
Text *string `json:"text,omitempty"`
ImageURL *string `json:"image_url,omitempty"`
}
InputContent projects InputContentParam.
type InputMessage ¶
type InputMessage struct {
Type string `json:"type,omitempty" enums:"message"`
Role string `json:"role" binding:"required" enums:"user"`
Content []InputContent `json:"content" binding:"required"`
}
InputMessage projects InputMessageParam.
type InputTokenDetails ¶
type InputTokenDetails struct {
CachedTokens int64 `json:"cached_tokens" binding:"required"`
}
InputTokenDetails projects InputTokensDetailsResource-2.
type InstallationStatus ¶ added in v0.0.10
type InstallationStatus string
const ( InstallationAvailable InstallationStatus = "available" )
type Item ¶
type Item struct {
ID string `json:"id" binding:"required" extensions:"x-nullable"`
TurnID string `json:"turn_id" binding:"required"`
Type string `` /* 368-byte string literal not displayed */
Status string `json:"status" extensions:"x-nullable" enums:"in_progress,completed,incomplete,failed"`
Role string `json:"role,omitempty" enums:"user,assistant"`
Phase string `json:"phase,omitempty" extensions:"x-nullable" enums:"commentary,final_answer"`
Content []ItemContent `json:"content,omitempty"`
Command string `json:"command,omitempty"`
Cwd *string `json:"cwd,omitempty" extensions:"x-nullable"`
DurationMS *int64 `json:"duration_ms,omitempty" extensions:"x-nullable"`
ExitCode *int64 `json:"exit_code,omitempty" extensions:"x-nullable"`
Name string `json:"name,omitempty"`
CallID string `json:"call_id,omitempty"`
ServerLabel string `json:"server_label,omitempty"`
Arguments any `json:"arguments,omitempty"`
Output any `json:"output,omitempty" extensions:"x-nullable"`
Error any `json:"error,omitempty" extensions:"x-nullable"`
Action *WebSearchAction `json:"action,omitempty" extensions:"x-nullable"`
AgentID string `json:"agent_id,omitempty"`
SenderAgentID string `json:"sender_agent_id,omitempty"`
RecipientAgentID string `json:"recipient_agent_id,omitempty"`
RecipientAgentIDs []string `json:"recipient_agent_ids,omitempty"`
Model *string `json:"model,omitempty" extensions:"x-nullable"`
ReasoningEffort *string `json:"reasoning_effort,omitempty" extensions:"x-nullable"`
Summary []SummaryText `json:"summary,omitempty"`
Title *string `json:"title,omitempty" extensions:"x-nullable"`
RequestID *string `json:"request_id,omitempty"`
Request json.RawMessage `json:"request,omitempty" swaggertype:"object"`
Response json.RawMessage `json:"response,omitempty" swaggertype:"object"`
}
Item projects SessionTurnItemResource.
func (Item) MarshalJSON ¶
MarshalJSON renders the wire shape, which is also the stored encoding. Messages always carry content and a nullable phase, function results a nullable output and error, commands a nullable cwd, output, exit code and duration, and web search a nullable action. Coordination and reasoning variants keep their required fields and nulls.
func (*Item) UnmarshalJSON ¶
UnmarshalJSON preserves integer precision in tool arguments and structured results.
type ItemContent ¶
type ItemContent struct {
Type string `json:"type" binding:"required" enums:"input_text,input_image,output_text,encrypted_content,summary_text"`
Text *string `json:"text,omitempty"`
ImageURL string `json:"image_url,omitempty"`
EncryptedContent *string `json:"encrypted_content,omitempty"`
}
ItemContent projects MessageContentResource, EncryptedContentResource, SummaryTextResource.
type ItemList ¶
type ItemList struct {
Object string `json:"object" binding:"required" enums:"list"`
FirstID *string `json:"first_id" binding:"required" extensions:"x-nullable"`
LastID *string `json:"last_id" binding:"required" extensions:"x-nullable"`
Data []Item `json:"data" binding:"required"`
HasMore bool `json:"has_more" binding:"required"`
}
ItemList projects SessionItemListResource.
type MCPTool ¶
type MCPTool struct {
Type string `json:"type" binding:"required" enums:"mcp"`
ServerLabel string `json:"server_label" binding:"required"`
Transport MCPTransport `json:"transport" binding:"required"`
AllowedTools *[]string `json:"allowed_tools" binding:"required" extensions:"x-nullable"`
ConnectionOrigin string `json:"connection_origin" binding:"required" enums:"service,environment"`
CredentialID *string `json:"credential_id" binding:"required" extensions:"x-nullable"`
RequestMetadata map[string]json.RawMessage `json:"request_metadata" binding:"required" swaggertype:"object"`
Required bool `json:"required" binding:"required"`
}
MCPTool projects AgentToolResourceMcp.
type MCPToolInput ¶
type MCPToolInput struct {
Type string `json:"type" binding:"required" enums:"mcp"`
ServerLabel string `json:"server_label" binding:"required"`
CredentialID *string `json:"credential_id,omitempty" extensions:"x-nullable"`
Transport json.RawMessage `json:"transport" binding:"required" swaggertype:"object"`
RequestMetadata map[string]json.RawMessage `json:"request_metadata,omitempty" extensions:"x-nullable" swaggertype:"object"`
AllowedTools []string `json:"allowed_tools,omitempty" extensions:"x-nullable"`
Required *bool `json:"required,omitempty"`
ConnectionOrigin *string `json:"connection_origin,omitempty" extensions:"x-nullable" enums:"service,environment"`
}
MCPToolInput projects AgentToolConfigParamMcp.
type MCPTransport ¶ added in v0.0.12
type MCPTransport struct {
Type string `json:"type" binding:"required" enums:"http,stdio"`
ServerURL string `json:"server_url,omitempty"`
Headers *map[string]string `json:"headers,omitempty" extensions:"x-nullable"`
Command string `json:"command,omitempty"`
Args *[]string `json:"args,omitempty" extensions:"x-nullable"`
Cwd string `json:"cwd,omitempty"`
EnvVars *[]string `json:"env_vars,omitempty" extensions:"x-nullable"`
}
MCPTransport projects PersistedMcpTransportConfigParam.
func (MCPTransport) MarshalJSON ¶ added in v0.0.12
func (value MCPTransport) MarshalJSON() ([]byte, error)
type ModelConfigurationInput ¶
type ModelConfigurationInput struct {
ModelProvider ModelProviderInput `json:"model_provider" binding:"required"`
Model string `json:"model" binding:"required"`
HarnessConfig json.RawMessage `json:"harness_config,omitempty" swaggertype:"object"`
}
ModelConfigurationInput combines the existing provider contract with a model and adapter-owned native model parameters. It is never a model catalog entry.
func (ModelConfigurationInput) SafeView ¶
func (c ModelConfigurationInput) SafeView() ModelConfigurationView
func (ModelConfigurationInput) ValidateHarness ¶
func (c ModelConfigurationInput) ValidateHarness(harness string) error
type ModelConfigurationSupport ¶
type ModelConfigurationSupport struct {
Protocols []string `json:"protocols" binding:"required"`
AcceptsHarnessConfig bool `json:"accepts_harness_config" binding:"required"`
// AcceptsMaxOutputTokens reports that the Harness maps max_output_tokens natively.
AcceptsMaxOutputTokens bool `json:"accepts_max_output_tokens" binding:"required"`
}
ModelConfigurationSupport describes this build, not remote-model availability.
type ModelConfigurationView ¶
type ModelConfigurationView struct {
ModelProvider *ModelProviderView `json:"model_provider" binding:"required"`
Model string `json:"model" binding:"required"`
HarnessConfig json.RawMessage `json:"harness_config" swaggertype:"object" binding:"required"`
}
type ModelProviderError ¶
type ModelProviderError struct {
Code, Param string
// contains filtered or unexported fields
}
ModelProviderError preserves the shared validation message while allowing Core administration to identify a field. It contains no submitted values.
func (*ModelProviderError) Error ¶
func (e *ModelProviderError) Error() string
type ModelProviderInput ¶
type ModelProviderInput struct {
Protocol modelprovider.Protocol `json:"protocol" binding:"required"`
BaseURL string `json:"base_url" binding:"required"`
APIKey string `json:"api_key" binding:"required"`
ContextWindow int32 `json:"context_window,omitempty"`
MaxOutputTokens int32 `json:"max_output_tokens,omitempty"`
}
func (*ModelProviderInput) SafeView ¶
func (p *ModelProviderInput) SafeView() *ModelProviderView
func (*ModelProviderInput) Validate ¶
func (p *ModelProviderInput) Validate() error
func (*ModelProviderInput) ValidateConfiguration ¶
func (p *ModelProviderInput) ValidateConfiguration(harness string, native json.RawMessage) error
func (*ModelProviderInput) ValidateHarness ¶
func (p *ModelProviderInput) ValidateHarness(harness string) error
func (*ModelProviderInput) ValidateHarnessWithRegistry ¶
func (p *ModelProviderInput) ValidateHarnessWithRegistry(harness string, registry harnessconfig.Registry) error
ValidateHarnessWithRegistry validates provider input against adapter-owned rules. It does not enable an execution engine or placement.
type ModelProviderView ¶
type ModelProviderView struct {
Protocol modelprovider.Protocol `json:"protocol" binding:"required"`
BaseURL string `json:"base_url" binding:"required"`
ContextWindow int32 `json:"context_window,omitempty"`
MaxOutputTokens int32 `json:"max_output_tokens,omitempty"`
APIKeyConfigured bool `json:"api_key_configured" binding:"required"`
}
func (*ModelProviderView) ValidateHarness ¶
func (p *ModelProviderView) ValidateHarness(harness string) error
ValidateHarness checks non-confidential protocol and limit compatibility.
func (*ModelProviderView) ValidateHarnessWithRegistry ¶
func (p *ModelProviderView) ValidateHarnessWithRegistry(harness string, registry harnessconfig.Registry) error
type MultiAgentConfig ¶
type MultiAgentConfig struct {
Enabled bool `json:"enabled" binding:"required"`
MaxConcurrentSubagents *int `json:"max_concurrent_subagents" binding:"required" extensions:"x-nullable"`
}
MultiAgentConfig projects MultiAgentConfigResource.
type OAuthCredentialRefresh ¶
type OAuthCredentialRefresh struct {
ClientID string `json:"client_id" binding:"required"`
TokenEndpoint string `json:"token_endpoint" binding:"required"`
TokenEndpointAuth OAuthEndpointAuth `json:"token_endpoint_auth" binding:"required"`
Resource *string `json:"resource" binding:"required" extensions:"x-nullable"`
Scope *string `json:"scope" binding:"required" extensions:"x-nullable"`
}
OAuthCredentialRefresh projects McpOauthRefreshResource.
type OAuthCredentialRefreshInput ¶
type OAuthCredentialRefreshInput struct {
ClientID *string `json:"client_id" binding:"required"`
RefreshToken *string `json:"refresh_token" binding:"required"`
TokenEndpoint *string `json:"token_endpoint" binding:"required"`
TokenEndpointAuth *OAuthEndpointAuthInput `json:"token_endpoint_auth" binding:"required"`
Resource *string `json:"resource,omitempty" extensions:"x-nullable"`
Scope *string `json:"scope,omitempty" extensions:"x-nullable"`
}
OAuthCredentialRefreshInput projects CreateMcpOauthRefreshParam.
type OAuthCredentialRefreshReplacement ¶
type OAuthCredentialRefreshReplacement struct {
RefreshToken *string `json:"refresh_token,omitempty" extensions:"x-nullable"`
Scope json.RawMessage `json:"scope,omitempty" extensions:"x-nullable" swaggertype:"object"`
TokenEndpointAuth *OAuthEndpointAuthReplacement `json:"token_endpoint_auth,omitempty" extensions:"x-nullable"`
}
OAuthCredentialRefreshReplacement projects RotateMcpOauthRefreshParam.
type OAuthEndpointAuth ¶
type OAuthEndpointAuth struct {
Type string `json:"type" binding:"required" enums:"none,client_secret_basic,client_secret_post"`
}
OAuthEndpointAuth projects McpOauthTokenEndpointAuthResource.
type OAuthEndpointAuthInput ¶
type OAuthEndpointAuthInput struct {
Type string `json:"type" binding:"required" enums:"none,client_secret_basic,client_secret_post"`
ClientSecret *string `json:"client_secret,omitempty"`
}
OAuthEndpointAuthInput projects CreateMcpOauthTokenEndpointAuthParam.
type OAuthEndpointAuthReplacement ¶
type OAuthEndpointAuthReplacement struct {
Type string `json:"type" binding:"required" enums:"client_secret_basic,client_secret_post"`
ClientSecret *string `json:"client_secret,omitempty" extensions:"x-nullable"`
}
OAuthEndpointAuthReplacement projects RotateMcpOauthTokenEndpointAuthParam.
type OutputTokenDetails ¶
type OutputTokenDetails struct {
ReasoningTokens int64 `json:"reasoning_tokens" binding:"required"`
}
OutputTokenDetails projects OutputTokensDetailsResource-2.
type Reasoning ¶
type Reasoning struct {
Effort *string `json:"effort,omitempty" extensions:"x-nullable" enums:"none,minimal,low,medium,high,xhigh,max"`
Summary *string `json:"summary,omitempty" extensions:"x-nullable" enums:"concise,detailed,auto"`
}
Reasoning projects ReasoningParam.
type ReasoningItem ¶
type ReasoningItem struct {
ID string `json:"id" binding:"required"`
TurnID string `json:"turn_id" binding:"required"`
Type string `json:"type" binding:"required" enums:"reasoning"`
Status *string `json:"status" binding:"required" extensions:"x-nullable" enums:"in_progress,completed,incomplete"`
Summary []SummaryText `json:"summary" binding:"required"`
}
ReasoningItem projects ReasoningItemResource.
type ReasoningResource ¶ added in v0.0.14
type ReasoningResource struct {
Effort *string `json:"effort" binding:"required" extensions:"x-nullable" enums:"none,minimal,low,medium,high,xhigh,max"`
Summary *string `json:"summary" binding:"required" extensions:"x-nullable" enums:"concise,detailed,auto"`
}
ReasoningResource projects ReasoningResource.
type RequiredAction ¶
type RequiredAction struct {
Type string `json:"type" binding:"required" enums:"computer_use_approval_request,function_call,environment_connection"`
Arguments any `json:"arguments,omitempty"`
CallID string `json:"call_id,omitempty"`
Name string `json:"name,omitempty"`
TurnID string `json:"turn_id,omitempty"`
EnvironmentID string `json:"environment_id,omitempty"`
RequestID *string `json:"request_id,omitempty"`
Request json.RawMessage `json:"request,omitempty" swaggertype:"object"`
}
RequiredAction projects SessionRequiredActionResource.
func (RequiredAction) MarshalJSON ¶
func (a RequiredAction) MarshalJSON() ([]byte, error)
MarshalJSON preserves required null function arguments without exposing function fields on connection actions.
func (*RequiredAction) UnmarshalJSON ¶
func (a *RequiredAction) UnmarshalJSON(raw []byte) error
UnmarshalJSON preserves function argument integer precision.
type RuntimeHistory ¶
type RuntimeHistory struct {
Object string `json:"object" enums:"agent.runtime_history" binding:"required"`
Source string `json:"source" enums:"durable" binding:"required"`
SessionID string `json:"session_id" binding:"required" format:"uuid"`
RequestedRange RuntimeHistoryRange `json:"requested_range" binding:"required"`
ResolutionSeconds int64 `json:"resolution_seconds" binding:"required" minimum:"1" maximum:"9007199254740991"`
GeneratedAt int64 `json:"generated_at" binding:"required" minimum:"0" maximum:"9007199254740991"`
Coverage RuntimeHistoryCoverage `json:"coverage" binding:"required"`
Series []RuntimeHistorySeries `json:"series" binding:"required" validate:"max=1000"`
TokenUsage []RuntimeHistoryTokenUsagePoint `json:"token_usage" binding:"required" validate:"max=10000"`
}
type RuntimeHistoryCPU ¶
type RuntimeHistoryCPU struct {
ContributorCount int `json:"contributor_count" binding:"required" minimum:"1" maximum:"9007199254740991"`
UtilizationRatio *float64 `json:"utilization_ratio" extensions:"x-nullable" binding:"required" minimum:"0"`
CapacityCores *float64 `json:"capacity_cores" extensions:"x-nullable" binding:"required" minimum:"5e-324"`
}
type RuntimeHistoryCoverage ¶
type RuntimeHistoryCoverage struct {
RetainedStart int64 `json:"retained_start" binding:"required" minimum:"0" maximum:"9007199254740991"`
FirstSampleAt *int64 `json:"first_sample_at" extensions:"x-nullable" binding:"required" minimum:"0" maximum:"9007199254740991"`
LastSampleAt *int64 `json:"last_sample_at" extensions:"x-nullable" binding:"required" minimum:"0" maximum:"9007199254740991"`
SampleCount int64 `json:"sample_count" binding:"required" minimum:"0" maximum:"9007199254740991"`
ExpectedSampleCount int64 `json:"expected_sample_count" binding:"required" minimum:"0" maximum:"9007199254740991"`
Buckets []RuntimeHistoryCoveragePoint `json:"buckets" binding:"required" validate:"max=10000"`
}
type RuntimeHistoryCoveragePoint ¶
type RuntimeHistoryCoveragePoint struct {
Start int64 `json:"start" binding:"required" minimum:"0" maximum:"9007199254740991"`
End int64 `json:"end" binding:"required" minimum:"1" maximum:"9007199254740991"`
FirstObservedAt *int64 `json:"first_observed_at" extensions:"x-nullable" binding:"required" minimum:"0" maximum:"9007199254740991"`
LastObservedAt *int64 `json:"last_observed_at" extensions:"x-nullable" binding:"required" minimum:"0" maximum:"9007199254740991"`
ObservationCount int `json:"observation_count" binding:"required" minimum:"0" maximum:"9007199254740991"`
ObservedCount int `json:"observed_count" binding:"required" minimum:"0" maximum:"9007199254740991"`
}
type RuntimeHistoryMemory ¶
type RuntimeHistoryMemory struct {
ContributorCount int `json:"contributor_count" binding:"required" minimum:"1" maximum:"9007199254740991"`
UsageBytes *uint64 `json:"usage_bytes" extensions:"x-nullable" binding:"required" minimum:"0" maximum:"9007199254740991"`
LimitBytes *uint64 `json:"limit_bytes" extensions:"x-nullable" binding:"required" minimum:"1" maximum:"9007199254740991"`
}
type RuntimeHistoryPoint ¶
type RuntimeHistoryPoint struct {
Start int64 `json:"start" binding:"required" minimum:"0" maximum:"9007199254740991"`
End int64 `json:"end" binding:"required" minimum:"1" maximum:"9007199254740991"`
FirstObservedAt *int64 `json:"first_observed_at" extensions:"x-nullable" binding:"required" minimum:"0" maximum:"9007199254740991"`
LastObservedAt *int64 `json:"last_observed_at" extensions:"x-nullable" binding:"required" minimum:"0" maximum:"9007199254740991"`
ObservationCount int `json:"observation_count" binding:"required" minimum:"0" maximum:"9007199254740991"`
ObservedCount int `json:"observed_count" binding:"required" minimum:"0" maximum:"9007199254740991"`
CPU *RuntimeHistoryCPU `json:"cpu" extensions:"x-nullable" binding:"required"`
Memory *RuntimeHistoryMemory `json:"memory" extensions:"x-nullable" binding:"required"`
}
type RuntimeHistoryRange ¶
type RuntimeHistorySeries ¶
type RuntimeHistorySeries struct {
EnvironmentID string `json:"environment_id" binding:"required" format:"uuid"`
AllocationID string `json:"allocation_id" binding:"required" format:"uuid"`
StartedAt RuntimeHistoryTime `json:"started_at" binding:"required"`
ProviderType string `json:"provider_type" binding:"required" pattern:"^[a-z][a-z0-9_]{0,31}$"`
Points []RuntimeHistoryPoint `json:"points" binding:"required" validate:"max=10000"`
}
type RuntimeHistoryTime ¶
type RuntimeHistoryTime struct {
Seconds int64 `json:"seconds" binding:"required" minimum:"0" maximum:"9007199254740991"`
Nanoseconds int `json:"nanoseconds" binding:"required" minimum:"0" maximum:"999999999"`
}
RuntimeHistoryTime preserves the earliest retained provider start estimate. It is not a per-bucket compute start. AllocationID is the series identity.
type RuntimeHistoryTokenUsagePoint ¶
type RuntimeHistoryTokenUsagePoint struct {
Start int64 `json:"start" binding:"required" minimum:"0" maximum:"9007199254740991"`
End int64 `json:"end" binding:"required" minimum:"1" maximum:"9007199254740991"`
SampledAt int64 `json:"sampled_at" binding:"required" minimum:"0" maximum:"9007199254740991"`
InputTokens uint64 `json:"input_tokens" binding:"required" minimum:"0" maximum:"9007199254740991"`
OutputTokens uint64 `json:"output_tokens" binding:"required" minimum:"0" maximum:"9007199254740991"`
}
RuntimeHistoryTokenUsagePoint is the final cumulative measured Session usage observed in one server-selected bucket. It counts every recorded root Turn snapshot, active Turns included, unlike public Session usage.
type RuntimeInstance ¶
type RuntimeInstance struct {
Kind string `json:"kind" enums:"managed_allocation,self_hosted_connection,none" binding:"required"`
AllocationID *string `json:"allocation_id" extensions:"x-nullable" binding:"required" format:"uuid"`
DeviceID *string `json:"device_id" extensions:"x-nullable" binding:"required" format:"uuid"`
ConnectionGeneration *string `json:"connection_generation" extensions:"x-nullable" binding:"required" format:"uuid"`
}
type RuntimeObservation ¶
type RuntimeObservation struct {
ID string `json:"id" binding:"required" format:"uuid"`
Object string `json:"object" enums:"agent.runtime_observation" binding:"required"`
SessionID string `json:"session_id" binding:"required" format:"uuid"`
EnvironmentID *string `json:"environment_id" extensions:"x-nullable" binding:"required" format:"uuid"`
Mode string `json:"mode" enums:"none,self_hosted,openai_hosted" binding:"required"`
ProviderType *string `json:"provider_type" extensions:"x-nullable" binding:"required" pattern:"^[a-z][a-z0-9_]{0,31}$"`
Instance RuntimeInstance `json:"instance" binding:"required"`
LifecycleState *string `json:"lifecycle_state" extensions:"x-nullable" binding:"required" enums:"active,sleeping,transitioning,pending,stopped"`
Status string `json:"status" enums:"observed,unsupported,unavailable" binding:"required"`
Reason *string `` /* 165-byte string literal not displayed */
AllocationCreatedAt *int64 `json:"allocation_created_at" extensions:"x-nullable" binding:"required" minimum:"0"`
ResolvedAt int64 `json:"resolved_at" binding:"required" minimum:"0"`
ObservedAt *int64 `json:"observed_at" extensions:"x-nullable" binding:"required" minimum:"0"`
StartedAt *int64 `json:"started_at" extensions:"x-nullable" binding:"required" minimum:"0"`
Memory *RuntimeMemoryObservation `json:"memory" extensions:"x-nullable" binding:"required"`
}
type SavedAgent ¶
type SavedAgent struct {
SavedAgentConfiguration
ID string `json:"id" binding:"required"`
Object string `json:"object" binding:"required" enums:"agent"`
Metadata map[string]string `json:"metadata" binding:"required"`
CreatedAt int64 `json:"created_at" binding:"required"`
UpdatedAt int64 `json:"updated_at" binding:"required"`
}
SavedAgent projects AgentResource.
func (SavedAgent) MarshalJSON ¶
func (a SavedAgent) MarshalJSON() ([]byte, error)
MarshalJSON renders reasoning with explicit null keys. The stored SavedAgentConfiguration keeps its original encoding.
type SavedAgentConfiguration ¶
type SavedAgentConfiguration struct {
XAgentsCore *SavedAgentCore `json:"x_agents_core,omitempty"`
Model string `json:"model" binding:"required"`
Name *string `json:"name" binding:"required" extensions:"x-nullable"`
Instructions *string `json:"instructions" binding:"required" extensions:"x-nullable"`
MultiAgent MultiAgentConfig `json:"multi_agent" binding:"required"`
Reasoning Reasoning `json:"reasoning" binding:"required"`
ServiceTier string `json:"service_tier" binding:"required" enums:"auto,default,flex,priority,fast,ultrafast"`
Text TextConfig `json:"text" binding:"required"`
Tools []json.RawMessage `json:"tools" binding:"required" swaggertype:"array,object"`
Compaction json.RawMessage `json:"compaction,omitempty" swaggertype:"object"`
Experimental json.RawMessage `json:"experimental,omitempty" swaggertype:"object"`
}
SavedAgentConfiguration projects AgentResource.
type SavedAgentCore ¶
type SavedAgentCore struct {
HarnessConfig json.RawMessage `json:"harness_config,omitempty" swaggertype:"object"`
Harness string `json:"harness,omitempty"`
ModelProvider *ModelProviderView `json:"model_provider,omitempty"`
}
SavedAgentCore is the non-confidential representation of saved defaults.
type SavedAgentCoreInput ¶
type SavedAgentCoreInput struct {
HarnessConfig json.RawMessage `json:"harness_config,omitempty" swaggertype:"object"`
Harness string `json:"harness,omitempty"`
ModelProvider *ModelProviderInput `json:"model_provider,omitempty" extensions:"x-nullable"`
}
SavedAgentCoreInput carries defaults for future Sessions. The provider bundle is replaced as a whole; its API key is write-only.
func (*SavedAgentCoreInput) SafeView ¶
func (x *SavedAgentCoreInput) SafeView() *SavedAgentCore
func (*SavedAgentCoreInput) Validate ¶
func (x *SavedAgentCoreInput) Validate() error
type SavedAgentList ¶
type SavedAgentList struct {
Object string `json:"object" binding:"required" enums:"list"`
Data []SavedAgent `json:"data" binding:"required"`
HasMore bool `json:"has_more" binding:"required"`
FirstID *string `json:"first_id" binding:"required" extensions:"x-nullable"`
LastID *string `json:"last_id" binding:"required" extensions:"x-nullable"`
}
SavedAgentList projects AgentListResource.
type SendSubagentInputCallItem ¶
type SendSubagentInputCallItem struct {
ID string `json:"id" binding:"required"`
TurnID string `json:"turn_id" binding:"required"`
Type string `json:"type" binding:"required" enums:"send_subagent_input_call"`
Status string `json:"status" binding:"required" enums:"in_progress,completed,failed,incomplete"`
SenderAgentID string `json:"sender_agent_id" binding:"required"`
RecipientAgentID string `json:"recipient_agent_id" binding:"required"`
Content []AgentContent `json:"content" binding:"required"`
}
SendSubagentInputCallItem projects SendSubagentInputCallItemResource.
type Session ¶
type Session struct {
XAgentsCore *SessionCore `json:"x_agents_core,omitempty"`
ID string `json:"id" binding:"required"`
Agent Agent `json:"agent" binding:"required"`
CreatedAt int64 `json:"created_at" binding:"required"`
Environment SessionEnvironment `json:"environment" binding:"required"`
Error *string `json:"error" binding:"required" extensions:"x-nullable"`
LastActiveAt int64 `json:"last_active_at" binding:"required"`
Metadata map[string]string `json:"metadata" binding:"required"`
Object string `json:"object" binding:"required" enums:"agent.session"`
RequiredActions []RequiredAction `json:"required_actions" binding:"required"`
Status string `json:"status" binding:"required" enums:"idle,in_progress,requires_action,failed"`
Usage *TokenUsage `json:"usage" binding:"required" extensions:"x-nullable"`
VaultIDs []string `json:"vault_ids" binding:"required"`
Review *string `json:"review,omitempty" enums:"none,auto_review"`
}
Session projects SessionResource.
func (Session) MarshalJSON ¶
MarshalJSON renders the Session Agent's reasoning with explicit null keys. The stored Session configuration keeps its original encoding.
type SessionArtifact ¶
type SessionArtifact struct {
ID string `json:"id" binding:"required"`
CreatedAt int64 `json:"created_at" binding:"required"`
EnvironmentID string `json:"environment_id" binding:"required"`
Object string `json:"object" binding:"required" enums:"agent.session.artifact"`
Path string `json:"path" binding:"required"`
SessionID string `json:"session_id" binding:"required"`
SizeBytes int64 `json:"size_bytes" binding:"required"`
TurnID string `json:"turn_id" binding:"required"`
}
SessionArtifact projects SessionArtifactResource.
type SessionArtifactDeleted ¶
type SessionArtifactDeleted struct {
ID string `json:"id" binding:"required"`
Object string `json:"object" binding:"required" enums:"agent.session.artifact.deleted"`
Deleted bool `json:"deleted" binding:"required"`
}
SessionArtifactDeleted projects DeletedSessionArtifactResource.
type SessionArtifactList ¶
type SessionArtifactList struct {
Object string `json:"object" binding:"required" enums:"list"`
FirstID *string `json:"first_id" binding:"required" extensions:"x-nullable"`
LastID *string `json:"last_id" binding:"required" extensions:"x-nullable"`
Data []SessionArtifact `json:"data" binding:"required"`
HasMore bool `json:"has_more" binding:"required"`
}
SessionArtifactList projects SessionArtifactListResource.
type SessionCore ¶
type SessionCore struct {
Installation *EnvironmentInstallation `json:"installation,omitempty"`
}
SessionCore exposes optional Core additions without changing official fields.
type SessionDeleted ¶
type SessionDeleted struct {
ID string `json:"id" binding:"required"`
Deleted bool `json:"deleted" binding:"required"`
Object string `json:"object" binding:"required" enums:"agent.session.deleted"`
}
SessionDeleted projects DeletedSessionResource.
type SessionEnvironment ¶
type SessionEnvironment struct {
Type string `json:"type" binding:"required" enums:"none,openai_hosted,self_hosted"`
ID string `json:"id,omitempty"`
CapabilityDirectories *[]string `json:"capability_directories,omitempty"`
RemoteURL string `json:"remote_url,omitempty"`
WorkspaceDirectory string `json:"workspace_directory,omitempty"`
Network *EnvironmentNetwork `json:"network,omitempty"`
Packages *EnvironmentPackagesResponse `json:"packages,omitempty"`
Files *[]json.RawMessage `json:"files,omitempty" swaggertype:"array,object"`
Plugins *[]json.RawMessage `json:"plugins,omitempty" swaggertype:"array,object"`
Skills *[]json.RawMessage `json:"skills,omitempty" swaggertype:"array,object"`
ContainerSize json.RawMessage `json:"container_size,omitempty" extensions:"x-nullable" swaggertype:"object"`
Desktop json.RawMessage `json:"desktop,omitempty" swaggertype:"object"`
}
SessionEnvironment projects EnvironmentResource.
type SessionEnvironmentState ¶
type SessionEnvironmentState struct {
ID string `json:"id" binding:"required"`
Type string `json:"type" binding:"required"`
Status string `json:"status" binding:"required" enums:"pending,ready,connected,disconnected,suspended,expired,failed"`
Error *StreamError `json:"error" binding:"required" extensions:"x-nullable"`
}
SessionEnvironmentState projects SessionEnvironmentStateResource.
type SessionEvent ¶
type SessionEvent struct {
Subagent *Subagent `json:"subagent,omitempty"`
Type string `` /* 1112-byte string literal not displayed */
EventID string `json:"event_id" binding:"required"`
SessionID string `json:"session_id,omitempty"`
TurnID string `json:"turn_id,omitempty" extensions:"x-nullable"`
Session *Session `json:"session,omitempty"`
Turn *Turn `json:"turn,omitempty"`
Item *Item `json:"item,omitempty"`
ItemID string `json:"item_id,omitempty"`
OutputIndex *int32 `json:"output_index,omitempty" extensions:"x-nullable"`
ContentIndex *int `json:"content_index,omitempty"`
Part *ItemContent `json:"part,omitempty"`
Delta *string `json:"delta,omitempty"`
Text *string `json:"text,omitempty"`
Error *StreamError `json:"error,omitempty"`
Environment *SessionEnvironmentState `json:"environment,omitempty"`
Usage *TokenUsage `json:"usage,omitempty" extensions:"x-nullable"`
EnvironmentID *string `json:"environment_id,omitempty"`
ResetCount *int64 `json:"reset_count,omitempty"`
SummaryIndex *int64 `json:"summary_index,omitempty"`
Status *string `json:"status,omitempty" extensions:"x-nullable" enums:"incomplete"`
}
SessionEvent projects SessionEvent.
func (SessionEvent) MarshalJSON ¶
func (e SessionEvent) MarshalJSON() ([]byte, error)
MarshalJSON keeps the nullable top-level usage on terminal Turn events only, a nullable output_index on every Item event (EVT-09), a nullable error param on error events, a nullable status on reasoning summary part completions and a nullable turn_id on Environment events. Subagent events carry no session_id; their Subagent names the Session.
type SessionExecutionConfiguration ¶
type SessionExecutionConfiguration struct {
Object string `json:"object" binding:"required" enums:"agent.session.execution_configuration"`
SchemaVersion int `json:"schema_version" binding:"required" enums:"1"`
SessionID string `json:"session_id" binding:"required"`
Model ExecutionSelection `json:"model" binding:"required"`
Harness ExecutionSelection `json:"harness" binding:"required"`
HarnessConfig ExecutionHarnessConfigSelection `json:"harness_config" binding:"required"`
ModelProvider ExecutionProviderSelection `json:"model_provider" binding:"required"`
}
SessionExecutionConfiguration describes committed configuration, not live execution health. Unknown provenance is never reconstructed from defaults.
type SessionExecutionInput ¶
type SessionExecutionInput struct {
// Environment supplies placement-independent preparation through the Core extension.
Environment json.RawMessage `json:"environment,omitempty" swaggertype:"object"`
ModelProvider *ModelProviderInput `json:"model_provider,omitempty"`
HarnessConfig json.RawMessage `json:"harness_config,omitempty" swaggertype:"object"`
}
SessionExecutionInput is a write-only execution extension, not a provider resource.
type SessionInput ¶
type SessionInput struct {
Type string `` /* 182-byte string literal not displayed */
Input []InputMessage `json:"input,omitempty"`
CallID string `json:"call_id,omitempty"`
TurnID string `json:"turn_id,omitempty"`
Success *bool `json:"success,omitempty"`
Error json.RawMessage `json:"error,omitempty" extensions:"x-nullable" swaggertype:"object"`
Output any `json:"output,omitempty" extensions:"x-nullable"`
RequestID *string `json:"request_id,omitempty"`
Response json.RawMessage `json:"response,omitempty" swaggertype:"object"`
}
SessionInput projects SessionInputParam.
type SessionList ¶
type SessionList struct {
Object string `json:"object" binding:"required" enums:"list"`
FirstID *string `json:"first_id" binding:"required" extensions:"x-nullable"`
LastID *string `json:"last_id" binding:"required" extensions:"x-nullable"`
Data []Session `json:"data" binding:"required"`
HasMore bool `json:"has_more" binding:"required"`
}
SessionList projects SessionListResource.
type Skill ¶
type Skill struct {
ID string `json:"id" binding:"required"`
Object string `json:"object" binding:"required" enums:"skill"`
CreatedAt int64 `json:"created_at" binding:"required"`
Name string `json:"name" binding:"required"`
Description string `json:"description" binding:"required"`
DefaultVersion string `json:"default_version" binding:"required"`
LatestVersion string `json:"latest_version" binding:"required"`
}
Skill projects SkillResource.
type SkillDeleted ¶
type SkillDeleted struct {
ID string `json:"id" binding:"required"`
Object string `json:"object" binding:"required" enums:"skill.deleted"`
Deleted bool `json:"deleted" binding:"required"`
}
SkillDeleted projects DeletedSkillResource.
type SkillList ¶
type SkillList struct {
Object string `json:"object" binding:"required" enums:"list"`
Data []Skill `json:"data" binding:"required"`
FirstID *string `json:"first_id" binding:"required" extensions:"x-nullable"`
LastID *string `json:"last_id" binding:"required" extensions:"x-nullable"`
HasMore bool `json:"has_more" binding:"required"`
}
SkillList projects SkillListResource.
type SkillUpdateRequest ¶
type SkillUpdateRequest struct {
DefaultVersion string `json:"default_version" binding:"required"`
}
SkillUpdateRequest projects SetDefaultSkillVersionBody.
type SkillVersion ¶
type SkillVersion struct {
ID string `json:"id" binding:"required"`
Object string `json:"object" binding:"required" enums:"skill.version"`
CreatedAt int64 `json:"created_at" binding:"required"`
SkillID string `json:"skill_id" binding:"required"`
Version string `json:"version" binding:"required"`
Name string `json:"name" binding:"required"`
Description string `json:"description" binding:"required"`
}
SkillVersion projects SkillVersionResource.
type SkillVersionDeleted ¶
type SkillVersionDeleted struct {
ID string `json:"id" binding:"required"`
Object string `json:"object" binding:"required" enums:"skill.version.deleted"`
Version string `json:"version" binding:"required"`
Deleted bool `json:"deleted" binding:"required"`
}
SkillVersionDeleted projects DeletedSkillVersionResource.
type SkillVersionList ¶
type SkillVersionList struct {
Object string `json:"object" binding:"required" enums:"list"`
Data []SkillVersion `json:"data" binding:"required"`
FirstID *string `json:"first_id" binding:"required" extensions:"x-nullable"`
LastID *string `json:"last_id" binding:"required" extensions:"x-nullable"`
HasMore bool `json:"has_more" binding:"required"`
}
SkillVersionList projects SkillVersionListResource.
type SourceFile ¶
type SourceFile struct {
ID string `json:"id" binding:"required"`
Object string `json:"object" binding:"required" enums:"file"`
Bytes *int64 `json:"bytes" binding:"required" extensions:"x-nullable"`
CreatedAt int64 `json:"created_at" binding:"required"`
Filename string `json:"filename" binding:"required"`
Purpose string `` /* 134-byte string literal not displayed */
Status string `json:"status" binding:"required" enums:"uploaded,processed,error"`
ExpiresAt *int64 `json:"expires_at"`
StatusDetails *string `json:"status_details"`
}
SourceFile projects OpenAIFile.
type SourceFileDeleted ¶
type SourceFileDeleted struct {
ID string `json:"id" binding:"required"`
Object string `json:"object" binding:"required" enums:"file"`
Deleted bool `json:"deleted" binding:"required"`
}
SourceFileDeleted projects DeleteFileResponse.
type SourceFileList ¶
type SourceFileList struct {
Object string `json:"object" binding:"required"`
Data []SourceFile `json:"data" binding:"required"`
HasMore bool `json:"has_more" binding:"required"`
FirstID *string `json:"first_id" binding:"required"`
LastID *string `json:"last_id" binding:"required"`
}
SourceFileList projects ListFilesResponse.
type StreamError ¶
type StreamError struct {
Code string `json:"code" binding:"required" extensions:"x-nullable"`
Type string `json:"type" binding:"required"`
Message string `json:"message" binding:"required"`
Param *string `json:"param,omitempty" binding:"required" extensions:"x-nullable"`
}
StreamError projects SessionErrorResource.
type Subagent ¶
type Subagent struct {
ID string `json:"id" binding:"required"`
Object string `json:"object" binding:"required" enums:"agent.session.subagent"`
SessionID string `json:"session_id" binding:"required"`
ParentAgentID string `json:"parent_agent_id" binding:"required"`
OpenedAt int64 `json:"opened_at" binding:"required"`
ClosedAt *int64 `json:"closed_at" binding:"required" extensions:"x-nullable"`
Name *string `json:"name" binding:"required" extensions:"x-nullable"`
Instructions []AgentContent `json:"instructions" binding:"required" extensions:"x-nullable"`
Status string `json:"status" binding:"required" enums:"active,closed"`
}
Subagent projects SubagentResource.
type SubagentControlCallItem ¶
type SubagentControlCallItem struct {
ID string `json:"id" binding:"required"`
TurnID string `json:"turn_id" binding:"required"`
Type string `json:"type" binding:"required" enums:"resume_subagent_call,interrupt_subagent_call,close_subagent_call"`
Status string `json:"status" binding:"required" enums:"in_progress,completed,failed,incomplete"`
SenderAgentID string `json:"sender_agent_id" binding:"required"`
RecipientAgentID string `json:"recipient_agent_id" binding:"required"`
}
SubagentControlCallItem projects ResumeSubagentCallItemResource, InterruptSubagentCallItemResource, CloseSubagentCallItemResource.
type SubagentList ¶
type SubagentList struct {
Object string `json:"object" binding:"required" enums:"list"`
FirstID *string `json:"first_id" binding:"required" extensions:"x-nullable"`
LastID *string `json:"last_id" binding:"required" extensions:"x-nullable"`
Data []Subagent `json:"data" binding:"required"`
HasMore bool `json:"has_more" binding:"required"`
}
SubagentList projects schema.
type SummaryText ¶
type SummaryText struct {
Type string `json:"type" binding:"required" enums:"summary_text"`
Text string `json:"text" binding:"required"`
}
SummaryText projects SummaryTextResource.
type TextConfig ¶
type TextConfig struct {
Format TextFormat `json:"format" binding:"required"`
Verbosity string `json:"verbosity" binding:"required" enums:"low,medium,high"`
}
TextConfig projects TextResource.
type TextConfigInput ¶
type TextConfigInput struct {
Format json.RawMessage `json:"format,omitempty" extensions:"x-nullable" swaggertype:"object"`
Verbosity *string `json:"verbosity,omitempty" extensions:"x-nullable" enums:"low,medium,high"`
}
TextConfigInput projects TextParam.
type TextFormat ¶
type TextFormat struct {
Type string `json:"type" binding:"required" enums:"text,json_schema"`
Schema json.RawMessage `json:"schema,omitempty" swaggertype:"object"`
}
TextFormat projects TextFormatResource.
type TokenUsage ¶
type TokenUsage struct {
InputTokens int64 `json:"input_tokens" binding:"required"`
InputTokensDetails InputTokenDetails `json:"input_tokens_details" binding:"required"`
OutputTokens int64 `json:"output_tokens" binding:"required"`
OutputTokensDetails OutputTokenDetails `json:"output_tokens_details" binding:"required"`
TotalTokens int64 `json:"total_tokens" binding:"required"`
}
TokenUsage projects TokenUsageResource.
type Turn ¶
type Turn struct {
ID string `json:"id" binding:"required"`
AgentID string `json:"agent_id" binding:"required"`
SubagentID *string `json:"subagent_id" binding:"required" extensions:"x-nullable"`
SessionID string `json:"session_id" binding:"required"`
Object string `json:"object" binding:"required" enums:"agent.session.turn"`
Status string `json:"status" binding:"required" enums:"queued,in_progress,waiting,completed,failed,cancelled"`
CreatedAt int64 `json:"created_at" binding:"required"`
StartedAt *int64 `json:"started_at" binding:"required" extensions:"x-nullable"`
CompletedAt *int64 `json:"completed_at" binding:"required" extensions:"x-nullable"`
Error *TurnError `json:"error" binding:"required" extensions:"x-nullable"`
Usage *TokenUsage `json:"usage" binding:"required" extensions:"x-nullable"`
}
Turn projects TurnResource.
type TurnError ¶
type TurnError struct {
Code string `` /* 534-byte string literal not displayed */
Message string `json:"message" binding:"required"`
}
TurnError projects SessionTurnErrorResource.
type TurnList ¶
type TurnList struct {
Object string `json:"object" binding:"required" enums:"list"`
FirstID *string `json:"first_id" binding:"required" extensions:"x-nullable"`
LastID *string `json:"last_id" binding:"required" extensions:"x-nullable"`
Data []Turn `json:"data" binding:"required"`
HasMore bool `json:"has_more" binding:"required"`
}
TurnList projects SessionTurnListResource.
type UpdateAgentRequest ¶
type UpdateAgentRequest struct {
XAgentsCore *SavedAgentCoreInput `json:"x_agents_core,omitempty"`
Model *string `json:"model,omitempty"`
Name *string `json:"name,omitempty" extensions:"x-nullable"`
Instructions *string `json:"instructions,omitempty" extensions:"x-nullable"`
Metadata map[string]*string `json:"metadata,omitempty" extensions:"x-nullable"`
MultiAgent json.RawMessage `json:"multi_agent,omitempty" extensions:"x-nullable" swaggertype:"object"`
Reasoning *Reasoning `json:"reasoning,omitempty" extensions:"x-nullable"`
ServiceTier *string `json:"service_tier,omitempty" extensions:"x-nullable" enums:"auto,default,flex,priority,fast,ultrafast"`
Text *TextConfigInput `json:"text,omitempty" extensions:"x-nullable"`
Tools []json.RawMessage `json:"tools,omitempty" extensions:"x-nullable" swaggertype:"array,object"`
Experimental json.RawMessage `json:"experimental,omitempty" swaggertype:"object"`
Compaction json.RawMessage `json:"compaction,omitempty" extensions:"x-nullable" swaggertype:"object"`
}
UpdateAgentRequest projects UpdateAgentParams.
type Vault ¶
type Vault struct {
ID string `json:"id" binding:"required"`
Object string `json:"object" binding:"required" enums:"vault"`
CreatedAt int64 `json:"created_at" binding:"required"`
Name *string `json:"name" binding:"required" extensions:"x-nullable"`
Metadata map[string]string `json:"metadata" binding:"required"`
}
Vault projects VaultResource.
type VaultDeleted ¶
type VaultDeleted struct {
ID string `json:"id" binding:"required"`
Deleted bool `json:"deleted" binding:"required"`
Object string `json:"object" binding:"required" enums:"vault.deleted"`
}
VaultDeleted projects DeletedVaultResource.
type VaultList ¶
type VaultList struct {
Object string `json:"object" binding:"required" enums:"list"`
Data []Vault `json:"data" binding:"required"`
HasMore bool `json:"has_more" binding:"required"`
FirstID *string `json:"first_id" binding:"required" extensions:"x-nullable"`
LastID *string `json:"last_id" binding:"required" extensions:"x-nullable"`
}
VaultList projects VaultListResource.
type WaitForSubagentsCallItem ¶
type WaitForSubagentsCallItem struct {
ID string `json:"id" binding:"required"`
TurnID string `json:"turn_id" binding:"required"`
Type string `json:"type" binding:"required" enums:"wait_for_subagents_call"`
Status string `json:"status" binding:"required" enums:"in_progress,completed,failed,incomplete"`
SenderAgentID string `json:"sender_agent_id" binding:"required"`
RecipientAgentIDs []string `json:"recipient_agent_ids" binding:"required"`
}
WaitForSubagentsCallItem projects WaitForSubagentsCallItemResource.
type WebSearchAction ¶
type WebSearchAction struct {
Type string `json:"type" binding:"required" enums:"search,open_page,find_in_page,other"`
Query *string `json:"query,omitempty" extensions:"x-nullable"`
Queries []string `json:"queries,omitempty" extensions:"x-nullable"`
URL *string `json:"url,omitempty" extensions:"x-nullable"`
Pattern *string `json:"pattern,omitempty" extensions:"x-nullable"`
}
WebSearchAction projects WebSearchActionResource.
func (WebSearchAction) MarshalJSON ¶ added in v0.0.10
func (value WebSearchAction) MarshalJSON() ([]byte, error)