Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.
// Package teamhubinternal provides primitives to interact with the openapi HTTP API.
//
// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.1 DO NOT EDIT.
package teamhubinternal
import (
"encoding/json"
"errors"
"fmt"
"time"
"github.com/oapi-codegen/runtime"
openapi_types "github.com/oapi-codegen/runtime/types"
)
const (
AgentServiceToTeamHubBearerScopes agentServiceToTeamHubBearerContextKey = "agentServiceToTeamHubBearer.Scopes"
MemoryServiceBearerScopes memoryServiceBearerContextKey = "memoryServiceBearer.Scopes"
ServiceBearerScopes serviceBearerContextKey = "serviceBearer.Scopes"
VoiceRuntimeBearerScopes voiceRuntimeBearerContextKey = "voiceRuntimeBearer.Scopes"
)
// Defines values for AcceptAgentTrustedNotificationResultStatus.
const (
AlreadyAccepted AcceptAgentTrustedNotificationResultStatus = "already_accepted"
Committed AcceptAgentTrustedNotificationResultStatus = "committed"
)
// Valid indicates whether the value is a known member of the AcceptAgentTrustedNotificationResultStatus enum.
func (e AcceptAgentTrustedNotificationResultStatus) Valid() bool {
switch e {
case AlreadyAccepted:
return true
case Committed:
return true
default:
return false
}
}
// Defines values for ActorKind.
const (
ActorKindAgent ActorKind = "agent"
ActorKindHuman ActorKind = "human"
)
// Valid indicates whether the value is a known member of the ActorKind enum.
func (e ActorKind) Valid() bool {
switch e {
case ActorKindAgent:
return true
case ActorKindHuman:
return true
default:
return false
}
}
// Defines values for AgentEffectiveSkillSource.
const (
Default AgentEffectiveSkillSource = "default"
Explicit AgentEffectiveSkillSource = "explicit"
)
// Valid indicates whether the value is a known member of the AgentEffectiveSkillSource enum.
func (e AgentEffectiveSkillSource) Valid() bool {
switch e {
case Default:
return true
case Explicit:
return true
default:
return false
}
}
// Defines values for AgentExecutionContextRoomKind.
const (
Collaboration AgentExecutionContextRoomKind = "collaboration"
Direct AgentExecutionContextRoomKind = "direct"
)
// Valid indicates whether the value is a known member of the AgentExecutionContextRoomKind enum.
func (e AgentExecutionContextRoomKind) Valid() bool {
switch e {
case Collaboration:
return true
case Direct:
return true
default:
return false
}
}
// Defines values for AgentExecutionContextTargetResidency.
const (
AgentExecutionContextTargetResidencyActive AgentExecutionContextTargetResidency = "active"
AgentExecutionContextTargetResidencySuspended AgentExecutionContextTargetResidency = "suspended"
)
// Valid indicates whether the value is a known member of the AgentExecutionContextTargetResidency enum.
func (e AgentExecutionContextTargetResidency) Valid() bool {
switch e {
case AgentExecutionContextTargetResidencyActive:
return true
case AgentExecutionContextTargetResidencySuspended:
return true
default:
return false
}
}
// Defines values for AgentExecutionContextTerminalReason.
const (
ContextDeleted AgentExecutionContextTerminalReason = "context_deleted"
RoomDeleted AgentExecutionContextTerminalReason = "room_deleted"
)
// Valid indicates whether the value is a known member of the AgentExecutionContextTerminalReason enum.
func (e AgentExecutionContextTerminalReason) Valid() bool {
switch e {
case ContextDeleted:
return true
case RoomDeleted:
return true
default:
return false
}
}
// Defines values for AgentLocalRunStatus.
const (
AgentLocalRunStatusCanceled AgentLocalRunStatus = "canceled"
AgentLocalRunStatusFailed AgentLocalRunStatus = "failed"
AgentLocalRunStatusQueued AgentLocalRunStatus = "queued"
AgentLocalRunStatusRunning AgentLocalRunStatus = "running"
AgentLocalRunStatusSucceeded AgentLocalRunStatus = "succeeded"
)
// Valid indicates whether the value is a known member of the AgentLocalRunStatus enum.
func (e AgentLocalRunStatus) Valid() bool {
switch e {
case AgentLocalRunStatusCanceled:
return true
case AgentLocalRunStatusFailed:
return true
case AgentLocalRunStatusQueued:
return true
case AgentLocalRunStatusRunning:
return true
case AgentLocalRunStatusSucceeded:
return true
default:
return false
}
}
// Defines values for AgentMemoryDocumentPendingStage.
const (
Consolidate AgentMemoryDocumentPendingStage = "consolidate"
Extract AgentMemoryDocumentPendingStage = "extract"
)
// Valid indicates whether the value is a known member of the AgentMemoryDocumentPendingStage enum.
func (e AgentMemoryDocumentPendingStage) Valid() bool {
switch e {
case Consolidate:
return true
case Extract:
return true
default:
return false
}
}
// Defines values for AgentReasoningEffort.
const (
AgentReasoningEffortHigh AgentReasoningEffort = "high"
AgentReasoningEffortLow AgentReasoningEffort = "low"
AgentReasoningEffortMax AgentReasoningEffort = "max"
AgentReasoningEffortMedium AgentReasoningEffort = "medium"
AgentReasoningEffortNone AgentReasoningEffort = "none"
AgentReasoningEffortUltra AgentReasoningEffort = "ultra"
AgentReasoningEffortXhigh AgentReasoningEffort = "xhigh"
)
// Valid indicates whether the value is a known member of the AgentReasoningEffort enum.
func (e AgentReasoningEffort) Valid() bool {
switch e {
case AgentReasoningEffortHigh:
return true
case AgentReasoningEffortLow:
return true
case AgentReasoningEffortMax:
return true
case AgentReasoningEffortMedium:
return true
case AgentReasoningEffortNone:
return true
case AgentReasoningEffortUltra:
return true
case AgentReasoningEffortXhigh:
return true
default:
return false
}
}
// Defines values for AgentRuntimeAcceptedContextStateTargetResidency.
const (
AgentRuntimeAcceptedContextStateTargetResidencyActive AgentRuntimeAcceptedContextStateTargetResidency = "active"
AgentRuntimeAcceptedContextStateTargetResidencySuspended AgentRuntimeAcceptedContextStateTargetResidency = "suspended"
)
// Valid indicates whether the value is a known member of the AgentRuntimeAcceptedContextStateTargetResidency enum.
func (e AgentRuntimeAcceptedContextStateTargetResidency) Valid() bool {
switch e {
case AgentRuntimeAcceptedContextStateTargetResidencyActive:
return true
case AgentRuntimeAcceptedContextStateTargetResidencySuspended:
return true
default:
return false
}
}
// Defines values for AgentRuntimeActivityContentBlockFormat.
const (
Code AgentRuntimeActivityContentBlockFormat = "code"
Json AgentRuntimeActivityContentBlockFormat = "json"
Text AgentRuntimeActivityContentBlockFormat = "text"
)
// Valid indicates whether the value is a known member of the AgentRuntimeActivityContentBlockFormat enum.
func (e AgentRuntimeActivityContentBlockFormat) Valid() bool {
switch e {
case Code:
return true
case Json:
return true
case Text:
return true
default:
return false
}
}
// Defines values for AgentRuntimeActivityKind.
const (
AgentRuntimeActivityKindBrowse AgentRuntimeActivityKind = "browse"
AgentRuntimeActivityKindCommand AgentRuntimeActivityKind = "command"
AgentRuntimeActivityKindDelegation AgentRuntimeActivityKind = "delegation"
AgentRuntimeActivityKindFileChange AgentRuntimeActivityKind = "file_change"
AgentRuntimeActivityKindImage AgentRuntimeActivityKind = "image"
AgentRuntimeActivityKindInteraction AgentRuntimeActivityKind = "interaction"
AgentRuntimeActivityKindMessage AgentRuntimeActivityKind = "message"
AgentRuntimeActivityKindMessageRead AgentRuntimeActivityKind = "message_read"
AgentRuntimeActivityKindRead AgentRuntimeActivityKind = "read"
AgentRuntimeActivityKindRecovery AgentRuntimeActivityKind = "recovery"
AgentRuntimeActivityKindResponse AgentRuntimeActivityKind = "response"
AgentRuntimeActivityKindReview AgentRuntimeActivityKind = "review"
AgentRuntimeActivityKindSearch AgentRuntimeActivityKind = "search"
AgentRuntimeActivityKindTool AgentRuntimeActivityKind = "tool"
)
// Valid indicates whether the value is a known member of the AgentRuntimeActivityKind enum.
func (e AgentRuntimeActivityKind) Valid() bool {
switch e {
case AgentRuntimeActivityKindBrowse:
return true
case AgentRuntimeActivityKindCommand:
return true
case AgentRuntimeActivityKindDelegation:
return true
case AgentRuntimeActivityKindFileChange:
return true
case AgentRuntimeActivityKindImage:
return true
case AgentRuntimeActivityKindInteraction:
return true
case AgentRuntimeActivityKindMessage:
return true
case AgentRuntimeActivityKindMessageRead:
return true
case AgentRuntimeActivityKindRead:
return true
case AgentRuntimeActivityKindRecovery:
return true
case AgentRuntimeActivityKindResponse:
return true
case AgentRuntimeActivityKindReview:
return true
case AgentRuntimeActivityKindSearch:
return true
case AgentRuntimeActivityKindTool:
return true
default:
return false
}
}
// Defines values for AgentRuntimeActivityOutcome.
const (
AgentRuntimeActivityOutcomeCanceled AgentRuntimeActivityOutcome = "canceled"
AgentRuntimeActivityOutcomeDeclined AgentRuntimeActivityOutcome = "declined"
AgentRuntimeActivityOutcomeFailed AgentRuntimeActivityOutcome = "failed"
AgentRuntimeActivityOutcomeSucceeded AgentRuntimeActivityOutcome = "succeeded"
)
// Valid indicates whether the value is a known member of the AgentRuntimeActivityOutcome enum.
func (e AgentRuntimeActivityOutcome) Valid() bool {
switch e {
case AgentRuntimeActivityOutcomeCanceled:
return true
case AgentRuntimeActivityOutcomeDeclined:
return true
case AgentRuntimeActivityOutcomeFailed:
return true
case AgentRuntimeActivityOutcomeSucceeded:
return true
default:
return false
}
}
// Defines values for AgentRuntimeExecutionFailureCode.
const (
AuthenticationRequired AgentRuntimeExecutionFailureCode = "authentication_required"
CleanupUnconfirmed AgentRuntimeExecutionFailureCode = "cleanup_unconfirmed"
ComputerUnavailable AgentRuntimeExecutionFailureCode = "computer_unavailable"
ContextTooLong AgentRuntimeExecutionFailureCode = "context_too_long"
ExecutionFailed AgentRuntimeExecutionFailureCode = "execution_failed"
ExecutionOutcomeUnknown AgentRuntimeExecutionFailureCode = "execution_outcome_unknown"
Interrupted AgentRuntimeExecutionFailureCode = "interrupted"
ModelNotOffered AgentRuntimeExecutionFailureCode = "model_not_offered"
ModelServiceError AgentRuntimeExecutionFailureCode = "model_service_error"
ModelUnavailable AgentRuntimeExecutionFailureCode = "model_unavailable"
NetworkError AgentRuntimeExecutionFailureCode = "network_error"
ProtocolIncompatible AgentRuntimeExecutionFailureCode = "protocol_incompatible"
RateLimited AgentRuntimeExecutionFailureCode = "rate_limited"
ReplyNotSent AgentRuntimeExecutionFailureCode = "reply_not_sent"
ReplyUndelivered AgentRuntimeExecutionFailureCode = "reply_undelivered"
ResponseTooLarge AgentRuntimeExecutionFailureCode = "response_too_large"
SessionNotFound AgentRuntimeExecutionFailureCode = "session_not_found"
Timeout AgentRuntimeExecutionFailureCode = "timeout"
Unclassified AgentRuntimeExecutionFailureCode = "unclassified"
)
// Valid indicates whether the value is a known member of the AgentRuntimeExecutionFailureCode enum.
func (e AgentRuntimeExecutionFailureCode) Valid() bool {
switch e {
case AuthenticationRequired:
return true
case CleanupUnconfirmed:
return true
case ComputerUnavailable:
return true
case ContextTooLong:
return true
case ExecutionFailed:
return true
case ExecutionOutcomeUnknown:
return true
case Interrupted:
return true
case ModelNotOffered:
return true
case ModelServiceError:
return true
case ModelUnavailable:
return true
case NetworkError:
return true
case ProtocolIncompatible:
return true
case RateLimited:
return true
case ReplyNotSent:
return true
case ReplyUndelivered:
return true
case ResponseTooLarge:
return true
case SessionNotFound:
return true
case Timeout:
return true
case Unclassified:
return true
default:
return false
}
}
// Defines values for AgentRuntimeInputSourceKind.
const (
AgentRuntimeInputSourceKindInbox AgentRuntimeInputSourceKind = "inbox"
AgentRuntimeInputSourceKindInternal AgentRuntimeInputSourceKind = "internal"
AgentRuntimeInputSourceKindTrustedTurn AgentRuntimeInputSourceKind = "trusted_turn"
)
// Valid indicates whether the value is a known member of the AgentRuntimeInputSourceKind enum.
func (e AgentRuntimeInputSourceKind) Valid() bool {
switch e {
case AgentRuntimeInputSourceKindInbox:
return true
case AgentRuntimeInputSourceKindInternal:
return true
case AgentRuntimeInputSourceKindTrustedTurn:
return true
default:
return false
}
}
// Defines values for AgentRuntimeLocalComputerPlatform.
const (
AgentRuntimeLocalComputerPlatformDarwin AgentRuntimeLocalComputerPlatform = "darwin"
AgentRuntimeLocalComputerPlatformLinux AgentRuntimeLocalComputerPlatform = "linux"
AgentRuntimeLocalComputerPlatformWin32 AgentRuntimeLocalComputerPlatform = "win32"
)
// Valid indicates whether the value is a known member of the AgentRuntimeLocalComputerPlatform enum.
func (e AgentRuntimeLocalComputerPlatform) Valid() bool {
switch e {
case AgentRuntimeLocalComputerPlatformDarwin:
return true
case AgentRuntimeLocalComputerPlatformLinux:
return true
case AgentRuntimeLocalComputerPlatformWin32:
return true
default:
return false
}
}
// Defines values for AgentRuntimeLocalComputerRuntimes.
const (
AgentRuntimeLocalComputerRuntimesAntigravity AgentRuntimeLocalComputerRuntimes = "antigravity"
AgentRuntimeLocalComputerRuntimesClaude AgentRuntimeLocalComputerRuntimes = "claude"
AgentRuntimeLocalComputerRuntimesCodex AgentRuntimeLocalComputerRuntimes = "codex"
AgentRuntimeLocalComputerRuntimesPi AgentRuntimeLocalComputerRuntimes = "pi"
)
// Valid indicates whether the value is a known member of the AgentRuntimeLocalComputerRuntimes enum.
func (e AgentRuntimeLocalComputerRuntimes) Valid() bool {
switch e {
case AgentRuntimeLocalComputerRuntimesAntigravity:
return true
case AgentRuntimeLocalComputerRuntimesClaude:
return true
case AgentRuntimeLocalComputerRuntimesCodex:
return true
case AgentRuntimeLocalComputerRuntimesPi:
return true
default:
return false
}
}
// Defines values for AgentRuntimeLocalComputerStatus.
const (
AgentRuntimeLocalComputerStatusOffline AgentRuntimeLocalComputerStatus = "offline"
AgentRuntimeLocalComputerStatusOnline AgentRuntimeLocalComputerStatus = "online"
AgentRuntimeLocalComputerStatusUpgradeRequired AgentRuntimeLocalComputerStatus = "upgrade_required"
)
// Valid indicates whether the value is a known member of the AgentRuntimeLocalComputerStatus enum.
func (e AgentRuntimeLocalComputerStatus) Valid() bool {
switch e {
case AgentRuntimeLocalComputerStatusOffline:
return true
case AgentRuntimeLocalComputerStatusOnline:
return true
case AgentRuntimeLocalComputerStatusUpgradeRequired:
return true
default:
return false
}
}
// Defines values for AgentRuntimeLocalComputerRemovalResultStatus.
const (
AgentRuntimeLocalComputerRemovalResultStatusAlreadyRemoved AgentRuntimeLocalComputerRemovalResultStatus = "already_removed"
AgentRuntimeLocalComputerRemovalResultStatusHasAgents AgentRuntimeLocalComputerRemovalResultStatus = "has_agents"
AgentRuntimeLocalComputerRemovalResultStatusNotFound AgentRuntimeLocalComputerRemovalResultStatus = "not_found"
AgentRuntimeLocalComputerRemovalResultStatusRemoved AgentRuntimeLocalComputerRemovalResultStatus = "removed"
)
// Valid indicates whether the value is a known member of the AgentRuntimeLocalComputerRemovalResultStatus enum.
func (e AgentRuntimeLocalComputerRemovalResultStatus) Valid() bool {
switch e {
case AgentRuntimeLocalComputerRemovalResultStatusAlreadyRemoved:
return true
case AgentRuntimeLocalComputerRemovalResultStatusHasAgents:
return true
case AgentRuntimeLocalComputerRemovalResultStatusNotFound:
return true
case AgentRuntimeLocalComputerRemovalResultStatusRemoved:
return true
default:
return false
}
}
// Defines values for AgentRuntimePlanStepStatus.
const (
AgentRuntimePlanStepStatusCanceled AgentRuntimePlanStepStatus = "canceled"
AgentRuntimePlanStepStatusCompleted AgentRuntimePlanStepStatus = "completed"
AgentRuntimePlanStepStatusInProgress AgentRuntimePlanStepStatus = "in_progress"
AgentRuntimePlanStepStatusPending AgentRuntimePlanStepStatus = "pending"
)
// Valid indicates whether the value is a known member of the AgentRuntimePlanStepStatus enum.
func (e AgentRuntimePlanStepStatus) Valid() bool {
switch e {
case AgentRuntimePlanStepStatusCanceled:
return true
case AgentRuntimePlanStepStatusCompleted:
return true
case AgentRuntimePlanStepStatusInProgress:
return true
case AgentRuntimePlanStepStatusPending:
return true
default:
return false
}
}
// Defines values for AgentRuntimeSharedTaskScopeRole.
const (
AlterEgo AgentRuntimeSharedTaskScopeRole = "alter_ego"
Meta AgentRuntimeSharedTaskScopeRole = "meta"
)
// Valid indicates whether the value is a known member of the AgentRuntimeSharedTaskScopeRole enum.
func (e AgentRuntimeSharedTaskScopeRole) Valid() bool {
switch e {
case AlterEgo:
return true
case Meta:
return true
default:
return false
}
}
// Defines values for AgentRuntimeSharedTaskScopeVersion.
const (
N1 AgentRuntimeSharedTaskScopeVersion = 1
)
// Valid indicates whether the value is a known member of the AgentRuntimeSharedTaskScopeVersion enum.
func (e AgentRuntimeSharedTaskScopeVersion) Valid() bool {
switch e {
case N1:
return true
default:
return false
}
}
// Defines values for AgentRuntimeWorkingStatusChangedEventStatus.
const (
AgentRuntimeWorkingStatusChangedEventStatusQueued AgentRuntimeWorkingStatusChangedEventStatus = "queued"
AgentRuntimeWorkingStatusChangedEventStatusThinking AgentRuntimeWorkingStatusChangedEventStatus = "thinking"
AgentRuntimeWorkingStatusChangedEventStatusWorking AgentRuntimeWorkingStatusChangedEventStatus = "working"
)
// Valid indicates whether the value is a known member of the AgentRuntimeWorkingStatusChangedEventStatus enum.
func (e AgentRuntimeWorkingStatusChangedEventStatus) Valid() bool {
switch e {
case AgentRuntimeWorkingStatusChangedEventStatusQueued:
return true
case AgentRuntimeWorkingStatusChangedEventStatusThinking:
return true
case AgentRuntimeWorkingStatusChangedEventStatusWorking:
return true
default:
return false
}
}
// Defines values for AgentType.
const (
Anotherme AgentType = "anotherme"
General AgentType = "general"
)
// Valid indicates whether the value is a known member of the AgentType enum.
func (e AgentType) Valid() bool {
switch e {
case Anotherme:
return true
case General:
return true
default:
return false
}
}
// Defines values for AnotherMePlacementStatus.
const (
AnotherMePlacementStatusActive AnotherMePlacementStatus = "active"
AnotherMePlacementStatusUpdating AnotherMePlacementStatus = "updating"
)
// Valid indicates whether the value is a known member of the AnotherMePlacementStatus enum.
func (e AnotherMePlacementStatus) Valid() bool {
switch e {
case AnotherMePlacementStatusActive:
return true
case AnotherMePlacementStatusUpdating:
return true
default:
return false
}
}
// Defines values for CancelAgentLocalRunResultStatus.
const (
CancelAgentLocalRunResultStatusAlreadyTerminal CancelAgentLocalRunResultStatus = "already_terminal"
CancelAgentLocalRunResultStatusCancelRequested CancelAgentLocalRunResultStatus = "cancel_requested"
CancelAgentLocalRunResultStatusCanceled CancelAgentLocalRunResultStatus = "canceled"
CancelAgentLocalRunResultStatusNotFound CancelAgentLocalRunResultStatus = "not_found"
)
// Valid indicates whether the value is a known member of the CancelAgentLocalRunResultStatus enum.
func (e CancelAgentLocalRunResultStatus) Valid() bool {
switch e {
case CancelAgentLocalRunResultStatusAlreadyTerminal:
return true
case CancelAgentLocalRunResultStatusCancelRequested:
return true
case CancelAgentLocalRunResultStatusCanceled:
return true
case CancelAgentLocalRunResultStatusNotFound:
return true
default:
return false
}
}
// Defines values for CompleteAgentSteerRequestOutcome.
const (
CompleteAgentSteerRequestOutcomeApplied CompleteAgentSteerRequestOutcome = "applied"
CompleteAgentSteerRequestOutcomeUncertain CompleteAgentSteerRequestOutcome = "uncertain"
)
// Valid indicates whether the value is a known member of the CompleteAgentSteerRequestOutcome enum.
func (e CompleteAgentSteerRequestOutcome) Valid() bool {
switch e {
case CompleteAgentSteerRequestOutcomeApplied:
return true
case CompleteAgentSteerRequestOutcomeUncertain:
return true
default:
return false
}
}
// Defines values for ConnectAgentRuntimeLocalComputerRequestPlatform.
const (
ConnectAgentRuntimeLocalComputerRequestPlatformDarwin ConnectAgentRuntimeLocalComputerRequestPlatform = "darwin"
ConnectAgentRuntimeLocalComputerRequestPlatformLinux ConnectAgentRuntimeLocalComputerRequestPlatform = "linux"
ConnectAgentRuntimeLocalComputerRequestPlatformWin32 ConnectAgentRuntimeLocalComputerRequestPlatform = "win32"
)
// Valid indicates whether the value is a known member of the ConnectAgentRuntimeLocalComputerRequestPlatform enum.
func (e ConnectAgentRuntimeLocalComputerRequestPlatform) Valid() bool {
switch e {
case ConnectAgentRuntimeLocalComputerRequestPlatformDarwin:
return true
case ConnectAgentRuntimeLocalComputerRequestPlatformLinux:
return true
case ConnectAgentRuntimeLocalComputerRequestPlatformWin32:
return true
default:
return false
}
}
// Defines values for ConnectAgentRuntimeLocalComputerRequestRuntimes.
const (
ConnectAgentRuntimeLocalComputerRequestRuntimesAntigravity ConnectAgentRuntimeLocalComputerRequestRuntimes = "antigravity"
ConnectAgentRuntimeLocalComputerRequestRuntimesClaude ConnectAgentRuntimeLocalComputerRequestRuntimes = "claude"
ConnectAgentRuntimeLocalComputerRequestRuntimesCodex ConnectAgentRuntimeLocalComputerRequestRuntimes = "codex"
ConnectAgentRuntimeLocalComputerRequestRuntimesPi ConnectAgentRuntimeLocalComputerRequestRuntimes = "pi"
)
// Valid indicates whether the value is a known member of the ConnectAgentRuntimeLocalComputerRequestRuntimes enum.
func (e ConnectAgentRuntimeLocalComputerRequestRuntimes) Valid() bool {
switch e {
case ConnectAgentRuntimeLocalComputerRequestRuntimesAntigravity:
return true
case ConnectAgentRuntimeLocalComputerRequestRuntimesClaude:
return true
case ConnectAgentRuntimeLocalComputerRequestRuntimesCodex:
return true
case ConnectAgentRuntimeLocalComputerRequestRuntimesPi:
return true
default:
return false
}
}
// Defines values for ConnectAgentRuntimeLocalComputerRequestStatus.
const (
ConnectAgentRuntimeLocalComputerRequestStatusOffline ConnectAgentRuntimeLocalComputerRequestStatus = "offline"
ConnectAgentRuntimeLocalComputerRequestStatusOnline ConnectAgentRuntimeLocalComputerRequestStatus = "online"
)
// Valid indicates whether the value is a known member of the ConnectAgentRuntimeLocalComputerRequestStatus enum.
func (e ConnectAgentRuntimeLocalComputerRequestStatus) Valid() bool {
switch e {
case ConnectAgentRuntimeLocalComputerRequestStatusOffline:
return true
case ConnectAgentRuntimeLocalComputerRequestStatusOnline:
return true
default:
return false
}
}
// Defines values for EnsureAgentExecutionContextRequestTargetResidency.
const (
EnsureAgentExecutionContextRequestTargetResidencyActive EnsureAgentExecutionContextRequestTargetResidency = "active"
EnsureAgentExecutionContextRequestTargetResidencySuspended EnsureAgentExecutionContextRequestTargetResidency = "suspended"
)
// Valid indicates whether the value is a known member of the EnsureAgentExecutionContextRequestTargetResidency enum.
func (e EnsureAgentExecutionContextRequestTargetResidency) Valid() bool {
switch e {
case EnsureAgentExecutionContextRequestTargetResidencyActive:
return true
case EnsureAgentExecutionContextRequestTargetResidencySuspended:
return true
default:
return false
}
}
// Defines values for FinishAgentLocalRunRequestTerminalType.
const (
FinishAgentLocalRunRequestTerminalTypeCanceled FinishAgentLocalRunRequestTerminalType = "canceled"
FinishAgentLocalRunRequestTerminalTypeFailed FinishAgentLocalRunRequestTerminalType = "failed"
FinishAgentLocalRunRequestTerminalTypeSucceeded FinishAgentLocalRunRequestTerminalType = "succeeded"
)
// Valid indicates whether the value is a known member of the FinishAgentLocalRunRequestTerminalType enum.
func (e FinishAgentLocalRunRequestTerminalType) Valid() bool {
switch e {
case FinishAgentLocalRunRequestTerminalTypeCanceled:
return true
case FinishAgentLocalRunRequestTerminalTypeFailed:
return true
case FinishAgentLocalRunRequestTerminalTypeSucceeded:
return true
default:
return false
}
}
// Defines values for LocalModelArchitecture.
const (
LocalModelArchitectureDense LocalModelArchitecture = "dense"
LocalModelArchitectureMoe LocalModelArchitecture = "moe"
)
// Valid indicates whether the value is a known member of the LocalModelArchitecture enum.
func (e LocalModelArchitecture) Valid() bool {
switch e {
case LocalModelArchitectureDense:
return true
case LocalModelArchitectureMoe:
return true
default:
return false
}
}
// Defines values for LocalModelAvailabilityReasonCode.
const (
LocalModelAvailabilityDiskInsufficient LocalModelAvailabilityReasonCode = "DISK_INSUFFICIENT"
LocalModelAvailabilityMemoryInsufficient LocalModelAvailabilityReasonCode = "MEMORY_INSUFFICIENT"
LocalModelAvailabilityPlatformUnsupported LocalModelAvailabilityReasonCode = "PLATFORM_UNSUPPORTED"
)
// Valid indicates whether the value is a known member of the LocalModelAvailabilityReasonCode enum.
func (e LocalModelAvailabilityReasonCode) Valid() bool {
switch e {
case LocalModelAvailabilityDiskInsufficient:
return true
case LocalModelAvailabilityMemoryInsufficient:
return true
case LocalModelAvailabilityPlatformUnsupported:
return true
default:
return false
}
}
// Defines values for LocalModelCapability.
const (
LocalModelCapabilityCoding LocalModelCapability = "coding"
LocalModelCapabilityMultilingual LocalModelCapability = "multilingual"
LocalModelCapabilityReasoning LocalModelCapability = "reasoning"
LocalModelCapabilityToolUse LocalModelCapability = "tool_use"
LocalModelCapabilityVision LocalModelCapability = "vision"
)
// Valid indicates whether the value is a known member of the LocalModelCapability enum.
func (e LocalModelCapability) Valid() bool {
switch e {
case LocalModelCapabilityCoding:
return true
case LocalModelCapabilityMultilingual:
return true
case LocalModelCapabilityReasoning:
return true
case LocalModelCapabilityToolUse:
return true
case LocalModelCapabilityVision:
return true
default:
return false
}
}
// Defines values for LocalModelDownloadProgressStep.
const (
LocalModelDownloadStepDownload LocalModelDownloadProgressStep = "download"
LocalModelDownloadStepVerify LocalModelDownloadProgressStep = "verify"
)
// Valid indicates whether the value is a known member of the LocalModelDownloadProgressStep enum.
func (e LocalModelDownloadProgressStep) Valid() bool {
switch e {
case LocalModelDownloadStepDownload:
return true
case LocalModelDownloadStepVerify:
return true
default:
return false
}
}
// Defines values for LocalModelErrorCause.
const (
LocalModelErrorCauseGatewayHomeNotPrivate LocalModelErrorCause = "GATEWAY_HOME_NOT_PRIVATE"
)
// Valid indicates whether the value is a known member of the LocalModelErrorCause enum.
func (e LocalModelErrorCause) Valid() bool {
switch e {
case LocalModelErrorCauseGatewayHomeNotPrivate:
return true
default:
return false
}
}
// Defines values for LocalModelErrorCode.
const (
CANCELLED LocalModelErrorCode = "CANCELLED"
CHECKSUMMISMATCH LocalModelErrorCode = "CHECKSUM_MISMATCH"
DISKINSUFFICIENT LocalModelErrorCode = "DISK_INSUFFICIENT"
DOWNLOADFAILED LocalModelErrorCode = "DOWNLOAD_FAILED"
ENGINESTARTFAILED LocalModelErrorCode = "ENGINE_START_FAILED"
GATEWAYREGISTRATIONFAILED LocalModelErrorCode = "GATEWAY_REGISTRATION_FAILED"
HEALTHCHECKFAILED LocalModelErrorCode = "HEALTH_CHECK_FAILED"
INVALIDSTATE LocalModelErrorCode = "INVALID_STATE"
JOBRUNNING LocalModelErrorCode = "JOB_RUNNING"
LOADNOROOM LocalModelErrorCode = "LOAD_NO_ROOM"
MEMORYINSUFFICIENT LocalModelErrorCode = "MEMORY_INSUFFICIENT"
MODELFILESMISSING LocalModelErrorCode = "MODEL_FILES_MISSING"
MODELUNKNOWN LocalModelErrorCode = "MODEL_UNKNOWN"
NETWORKUNAVAILABLE LocalModelErrorCode = "NETWORK_UNAVAILABLE"
OUTOFMEMORY LocalModelErrorCode = "OUT_OF_MEMORY"
PLATFORMUNSUPPORTED LocalModelErrorCode = "PLATFORM_UNSUPPORTED"
)
// Valid indicates whether the value is a known member of the LocalModelErrorCode enum.
func (e LocalModelErrorCode) Valid() bool {
switch e {
case CANCELLED:
return true
case CHECKSUMMISMATCH:
return true
case DISKINSUFFICIENT:
return true
case DOWNLOADFAILED:
return true
case ENGINESTARTFAILED:
return true
case GATEWAYREGISTRATIONFAILED:
return true
case HEALTHCHECKFAILED:
return true
case INVALIDSTATE:
return true
case JOBRUNNING:
return true
case LOADNOROOM:
return true
case MEMORYINSUFFICIENT:
return true
case MODELFILESMISSING:
return true
case MODELUNKNOWN:
return true
case NETWORKUNAVAILABLE:
return true
case OUTOFMEMORY:
return true
case PLATFORMUNSUPPORTED:
return true
default:
return false
}
}
// Defines values for LocalModelFamily.
const (
LocalModelFamilyClaude LocalModelFamily = "claude"
LocalModelFamilyDeepseek LocalModelFamily = "deepseek"
LocalModelFamilyGemma LocalModelFamily = "gemma"
LocalModelFamilyGlm LocalModelFamily = "glm"
LocalModelFamilyGrok LocalModelFamily = "grok"
LocalModelFamilyKimi LocalModelFamily = "kimi"
LocalModelFamilyLlama LocalModelFamily = "llama"
LocalModelFamilyMistral LocalModelFamily = "mistral"
LocalModelFamilyOpenai LocalModelFamily = "openai"
LocalModelFamilyOther LocalModelFamily = "other"
LocalModelFamilyPhi LocalModelFamily = "phi"
LocalModelFamilyQwen LocalModelFamily = "qwen"
)
// Valid indicates whether the value is a known member of the LocalModelFamily enum.
func (e LocalModelFamily) Valid() bool {
switch e {
case LocalModelFamilyClaude:
return true
case LocalModelFamilyDeepseek:
return true
case LocalModelFamilyGemma:
return true
case LocalModelFamilyGlm:
return true
case LocalModelFamilyGrok:
return true
case LocalModelFamilyKimi:
return true
case LocalModelFamilyLlama:
return true
case LocalModelFamilyMistral:
return true
case LocalModelFamilyOpenai:
return true
case LocalModelFamilyOther:
return true
case LocalModelFamilyPhi:
return true
case LocalModelFamilyQwen:
return true
default:
return false
}
}
// Defines values for LocalModelFit.
const (
LocalModelFitGpu LocalModelFit = "gpu"
LocalModelFitNone LocalModelFit = "none"
LocalModelFitSystem LocalModelFit = "system"
LocalModelFitUnified LocalModelFit = "unified"
)
// Valid indicates whether the value is a known member of the LocalModelFit enum.
func (e LocalModelFit) Valid() bool {
switch e {
case LocalModelFitGpu:
return true
case LocalModelFitNone:
return true
case LocalModelFitSystem:
return true
case LocalModelFitUnified:
return true
default:
return false
}
}
// Defines values for LocalModelHostArch.
const (
LocalModelHostArchArm64 LocalModelHostArch = "arm64"
LocalModelHostArchX8664 LocalModelHostArch = "x86_64"
)
// Valid indicates whether the value is a known member of the LocalModelHostArch enum.
func (e LocalModelHostArch) Valid() bool {
switch e {
case LocalModelHostArchArm64:
return true
case LocalModelHostArchX8664:
return true
default:
return false
}
}
// Defines values for LocalModelHostPlatform.
const (
LocalModelHostPlatformDarwin LocalModelHostPlatform = "darwin"
LocalModelHostPlatformLinux LocalModelHostPlatform = "linux"
LocalModelHostPlatformWindows LocalModelHostPlatform = "windows"
)
// Valid indicates whether the value is a known member of the LocalModelHostPlatform enum.
func (e LocalModelHostPlatform) Valid() bool {
switch e {
case LocalModelHostPlatformDarwin:
return true
case LocalModelHostPlatformLinux:
return true
case LocalModelHostPlatformWindows:
return true
default:
return false
}
}
// Defines values for LocalModelNoteCode.
const (
LocalModelNoteNoRoomToLoad LocalModelNoteCode = "NO_ROOM_TO_LOAD"
)
// Valid indicates whether the value is a known member of the LocalModelNoteCode enum.
func (e LocalModelNoteCode) Valid() bool {
switch e {
case LocalModelNoteNoRoomToLoad:
return true
default:
return false
}
}
// Defines values for LocalModelPoolKind.
const (
LocalModelPoolKindGpu LocalModelPoolKind = "gpu"
LocalModelPoolKindSystem LocalModelPoolKind = "system"
LocalModelPoolKindUnified LocalModelPoolKind = "unified"
)
// Valid indicates whether the value is a known member of the LocalModelPoolKind enum.
func (e LocalModelPoolKind) Valid() bool {
switch e {
case LocalModelPoolKindGpu:
return true
case LocalModelPoolKindSystem:
return true
case LocalModelPoolKindUnified:
return true
default:
return false
}
}
// Defines values for LocalModelPoolHolderKind.
const (
LocalModelPoolHolderKindComponent LocalModelPoolHolderKind = "component"
LocalModelPoolHolderKindModel LocalModelPoolHolderKind = "model"
)
// Valid indicates whether the value is a known member of the LocalModelPoolHolderKind enum.
func (e LocalModelPoolHolderKind) Valid() bool {
switch e {
case LocalModelPoolHolderKindComponent:
return true
case LocalModelPoolHolderKindModel:
return true
default:
return false
}
}
// Defines values for LocalModelState.
const (
LocalModelStateAbsent LocalModelState = "absent"
LocalModelStateDownloading LocalModelState = "downloading"
LocalModelStateFailed LocalModelState = "failed"
LocalModelStateIdle LocalModelState = "idle"
LocalModelStateLoaded LocalModelState = "loaded"
LocalModelStateLoading LocalModelState = "loading"
)
// Valid indicates whether the value is a known member of the LocalModelState enum.
func (e LocalModelState) Valid() bool {
switch e {
case LocalModelStateAbsent:
return true
case LocalModelStateDownloading:
return true
case LocalModelStateFailed:
return true
case LocalModelStateIdle:
return true
case LocalModelStateLoaded:
return true
case LocalModelStateLoading:
return true
default:
return false
}
}
// Defines values for LocalModelsUnavailableCode.
const (
TOOLFAILED LocalModelsUnavailableCode = "TOOL_FAILED"
TOOLNOTINSTALLED LocalModelsUnavailableCode = "TOOL_NOT_INSTALLED"
)
// Valid indicates whether the value is a known member of the LocalModelsUnavailableCode enum.
func (e LocalModelsUnavailableCode) Valid() bool {
switch e {
case TOOLFAILED:
return true
case TOOLNOTINSTALLED:
return true
default:
return false
}
}
// Defines values for LocalRuntimeType.
const (
LocalRuntimeTypeAntigravity LocalRuntimeType = "antigravity"
LocalRuntimeTypeClaude LocalRuntimeType = "claude"
LocalRuntimeTypeCodex LocalRuntimeType = "codex"
LocalRuntimeTypePi LocalRuntimeType = "pi"
)
// Valid indicates whether the value is a known member of the LocalRuntimeType enum.
func (e LocalRuntimeType) Valid() bool {
switch e {
case LocalRuntimeTypeAntigravity:
return true
case LocalRuntimeTypeClaude:
return true
case LocalRuntimeTypeCodex:
return true
case LocalRuntimeTypePi:
return true
default:
return false
}
}
// Defines values for McpContextErrorCode.
const (
McpContextErrorCodeContextIdentityInvalid McpContextErrorCode = "context_identity_invalid"
McpContextErrorCodeDependencyUnavailable McpContextErrorCode = "dependency_unavailable"
McpContextErrorCodeInternalError McpContextErrorCode = "internal_error"
McpContextErrorCodeInvalidRequest McpContextErrorCode = "invalid_request"
McpContextErrorCodeUnauthenticated McpContextErrorCode = "unauthenticated"
)
// Valid indicates whether the value is a known member of the McpContextErrorCode enum.
func (e McpContextErrorCode) Valid() bool {
switch e {
case McpContextErrorCodeContextIdentityInvalid:
return true
case McpContextErrorCodeDependencyUnavailable:
return true
case McpContextErrorCodeInternalError:
return true
case McpContextErrorCodeInvalidRequest:
return true
case McpContextErrorCodeUnauthenticated:
return true
default:
return false
}
}
// Defines values for MemoryWikiRefreshResponseRefreshStatus.
const (
MemoryWikiRefreshResponseRefreshStatusAccepted MemoryWikiRefreshResponseRefreshStatus = "accepted"
MemoryWikiRefreshResponseRefreshStatusAlreadyLatest MemoryWikiRefreshResponseRefreshStatus = "already_latest"
MemoryWikiRefreshResponseRefreshStatusInProgress MemoryWikiRefreshResponseRefreshStatus = "in_progress"
MemoryWikiRefreshResponseRefreshStatusNoSources MemoryWikiRefreshResponseRefreshStatus = "no_sources"
)
// Valid indicates whether the value is a known member of the MemoryWikiRefreshResponseRefreshStatus enum.
func (e MemoryWikiRefreshResponseRefreshStatus) Valid() bool {
switch e {
case MemoryWikiRefreshResponseRefreshStatusAccepted:
return true
case MemoryWikiRefreshResponseRefreshStatusAlreadyLatest:
return true
case MemoryWikiRefreshResponseRefreshStatusInProgress:
return true
case MemoryWikiRefreshResponseRefreshStatusNoSources:
return true
default:
return false
}
}
// Defines values for ObservationKind.
const (
Final ObservationKind = "final"
InputEnded ObservationKind = "input_ended"
InputGap ObservationKind = "input_gap"
Partial ObservationKind = "partial"
Progress ObservationKind = "progress"
PublisherAbsent ObservationKind = "publisher_absent"
TrackEnded ObservationKind = "track_ended"
TrackStarted ObservationKind = "track_started"
TurnFinalized ObservationKind = "turn_finalized"
)
// Valid indicates whether the value is a known member of the ObservationKind enum.
func (e ObservationKind) Valid() bool {
switch e {
case Final:
return true
case InputEnded:
return true
case InputGap:
return true
case Partial:
return true
case Progress:
return true
case PublisherAbsent:
return true
case TrackEnded:
return true
case TrackStarted:
return true
case TurnFinalized:
return true
default:
return false
}
}
// Defines values for ObservationLane.
const (
ObservationLaneLive ObservationLane = "live"
ObservationLaneRecovery ObservationLane = "recovery"
)
// Valid indicates whether the value is a known member of the ObservationLane enum.
func (e ObservationLane) Valid() bool {
switch e {
case ObservationLaneLive:
return true
case ObservationLaneRecovery:
return true
default:
return false
}
}
// Defines values for PersonalWikiDocumentRevisionWikiState.
const (
PersonalWikiDocumentRevisionWikiStateFailed PersonalWikiDocumentRevisionWikiState = "failed"
PersonalWikiDocumentRevisionWikiStateIdle PersonalWikiDocumentRevisionWikiState = "idle"
PersonalWikiDocumentRevisionWikiStateRefreshing PersonalWikiDocumentRevisionWikiState = "refreshing"
)
// Valid indicates whether the value is a known member of the PersonalWikiDocumentRevisionWikiState enum.
func (e PersonalWikiDocumentRevisionWikiState) Valid() bool {
switch e {
case PersonalWikiDocumentRevisionWikiStateFailed:
return true
case PersonalWikiDocumentRevisionWikiStateIdle:
return true
case PersonalWikiDocumentRevisionWikiStateRefreshing:
return true
default:
return false
}
}
// Defines values for ProactiveWindowMessageAuthor.
const (
ProactiveWindowMessageAuthorAgent ProactiveWindowMessageAuthor = "agent"
ProactiveWindowMessageAuthorHuman ProactiveWindowMessageAuthor = "human"
)
// Valid indicates whether the value is a known member of the ProactiveWindowMessageAuthor enum.
func (e ProactiveWindowMessageAuthor) Valid() bool {
switch e {
case ProactiveWindowMessageAuthorAgent:
return true
case ProactiveWindowMessageAuthorHuman:
return true
default:
return false
}
}
// Defines values for RuntimeHumanInteractionCreatedStatus.
const (
Pending RuntimeHumanInteractionCreatedStatus = "pending"
)
// Valid indicates whether the value is a known member of the RuntimeHumanInteractionCreatedStatus enum.
func (e RuntimeHumanInteractionCreatedStatus) Valid() bool {
switch e {
case Pending:
return true
default:
return false
}
}
// Defines values for RuntimePermissionActionRuntime.
const (
RuntimePermissionActionRuntimeAntigravity RuntimePermissionActionRuntime = "antigravity"
RuntimePermissionActionRuntimeClaude RuntimePermissionActionRuntime = "claude"
RuntimePermissionActionRuntimeCodex RuntimePermissionActionRuntime = "codex"
RuntimePermissionActionRuntimePi RuntimePermissionActionRuntime = "pi"
)
// Valid indicates whether the value is a known member of the RuntimePermissionActionRuntime enum.
func (e RuntimePermissionActionRuntime) Valid() bool {
switch e {
case RuntimePermissionActionRuntimeAntigravity:
return true
case RuntimePermissionActionRuntimeClaude:
return true
case RuntimePermissionActionRuntimeCodex:
return true
case RuntimePermissionActionRuntimePi:
return true
default:
return false
}
}
// Defines values for RuntimePermissionActionSurface.
const (
RuntimePermissionActionSurfaceBrowser RuntimePermissionActionSurface = "browser"
RuntimePermissionActionSurfaceComputer RuntimePermissionActionSurface = "computer"
RuntimePermissionActionSurfaceConnectedApp RuntimePermissionActionSurface = "connected_app"
RuntimePermissionActionSurfaceFileEdit RuntimePermissionActionSurface = "file_edit"
RuntimePermissionActionSurfaceOther RuntimePermissionActionSurface = "other"
RuntimePermissionActionSurfaceShell RuntimePermissionActionSurface = "shell"
RuntimePermissionActionSurfaceWeb RuntimePermissionActionSurface = "web"
)
// Valid indicates whether the value is a known member of the RuntimePermissionActionSurface enum.
func (e RuntimePermissionActionSurface) Valid() bool {
switch e {
case RuntimePermissionActionSurfaceBrowser:
return true
case RuntimePermissionActionSurfaceComputer:
return true
case RuntimePermissionActionSurfaceConnectedApp:
return true
case RuntimePermissionActionSurfaceFileEdit:
return true
case RuntimePermissionActionSurfaceOther:
return true
case RuntimePermissionActionSurfaceShell:
return true
case RuntimePermissionActionSurfaceWeb:
return true
default:
return false
}
}
// Defines values for RuntimePermissionEvidenceScreenshotMediaType.
const (
Imagejpeg RuntimePermissionEvidenceScreenshotMediaType = "image/jpeg"
Imagepng RuntimePermissionEvidenceScreenshotMediaType = "image/png"
)
// Valid indicates whether the value is a known member of the RuntimePermissionEvidenceScreenshotMediaType enum.
func (e RuntimePermissionEvidenceScreenshotMediaType) Valid() bool {
switch e {
case Imagejpeg:
return true
case Imagepng:
return true
default:
return false
}
}
// Defines values for RuntimePermissionReviewResultDecision.
const (
Allow RuntimePermissionReviewResultDecision = "allow"
Deny RuntimePermissionReviewResultDecision = "deny"
NeedsApproval RuntimePermissionReviewResultDecision = "needs_approval"
Unavailable RuntimePermissionReviewResultDecision = "unavailable"
)
// Valid indicates whether the value is a known member of the RuntimePermissionReviewResultDecision enum.
func (e RuntimePermissionReviewResultDecision) Valid() bool {
switch e {
case Allow:
return true
case Deny:
return true
case NeedsApproval:
return true
case Unavailable:
return true
default:
return false
}
}
// Defines values for RuntimePermissionTranscriptEntryKind.
const (
RuntimePermissionTranscriptEntryKindAssistant RuntimePermissionTranscriptEntryKind = "assistant"
RuntimePermissionTranscriptEntryKindToolCall RuntimePermissionTranscriptEntryKind = "tool_call"
RuntimePermissionTranscriptEntryKindToolResult RuntimePermissionTranscriptEntryKind = "tool_result"
)
// Valid indicates whether the value is a known member of the RuntimePermissionTranscriptEntryKind enum.
func (e RuntimePermissionTranscriptEntryKind) Valid() bool {
switch e {
case RuntimePermissionTranscriptEntryKindAssistant:
return true
case RuntimePermissionTranscriptEntryKindToolCall:
return true
case RuntimePermissionTranscriptEntryKindToolResult:
return true
default:
return false
}
}
// Defines values for SetAgentExecutionContextResidencyRequestTargetResidency.
const (
SetAgentExecutionContextResidencyRequestTargetResidencyActive SetAgentExecutionContextResidencyRequestTargetResidency = "active"
SetAgentExecutionContextResidencyRequestTargetResidencySuspended SetAgentExecutionContextResidencyRequestTargetResidency = "suspended"
)
// Valid indicates whether the value is a known member of the SetAgentExecutionContextResidencyRequestTargetResidency enum.
func (e SetAgentExecutionContextResidencyRequestTargetResidency) Valid() bool {
switch e {
case SetAgentExecutionContextResidencyRequestTargetResidencyActive:
return true
case SetAgentExecutionContextResidencyRequestTargetResidencySuspended:
return true
default:
return false
}
}
// Defines values for StoredAgentRuntimeInputSourceKind.
const (
StoredAgentRuntimeInputSourceKindInbox StoredAgentRuntimeInputSourceKind = "inbox"
StoredAgentRuntimeInputSourceKindInternal StoredAgentRuntimeInputSourceKind = "internal"
StoredAgentRuntimeInputSourceKindTrustedTurn StoredAgentRuntimeInputSourceKind = "trusted_turn"
)
// Valid indicates whether the value is a known member of the StoredAgentRuntimeInputSourceKind enum.
func (e StoredAgentRuntimeInputSourceKind) Valid() bool {
switch e {
case StoredAgentRuntimeInputSourceKindInbox:
return true
case StoredAgentRuntimeInputSourceKindInternal:
return true
case StoredAgentRuntimeInputSourceKindTrustedTurn:
return true
default:
return false
}
}
// Defines values for StoredAgentRuntimeInputStatus.
const (
Handled StoredAgentRuntimeInputStatus = "handled"
Steering StoredAgentRuntimeInputStatus = "steering"
)
// Valid indicates whether the value is a known member of the StoredAgentRuntimeInputStatus enum.
func (e StoredAgentRuntimeInputStatus) Valid() bool {
switch e {
case Handled:
return true
case Steering:
return true
default:
return false
}
}
// Defines values for StoredAgentRuntimeInputSteerOutcome.
const (
StoredAgentRuntimeInputSteerOutcomeApplied StoredAgentRuntimeInputSteerOutcome = "applied"
StoredAgentRuntimeInputSteerOutcomeUncertain StoredAgentRuntimeInputSteerOutcome = "uncertain"
)
// Valid indicates whether the value is a known member of the StoredAgentRuntimeInputSteerOutcome enum.
func (e StoredAgentRuntimeInputSteerOutcome) Valid() bool {
switch e {
case StoredAgentRuntimeInputSteerOutcomeApplied:
return true
case StoredAgentRuntimeInputSteerOutcomeUncertain:
return true
default:
return false
}
}
// Defines values for TaskAttemptSummaryStatus.
const (
TaskAttemptSummaryStatusPassed TaskAttemptSummaryStatus = "passed"
TaskAttemptSummaryStatusRunning TaskAttemptSummaryStatus = "running"
TaskAttemptSummaryStatusStopped TaskAttemptSummaryStatus = "stopped"
)
// Valid indicates whether the value is a known member of the TaskAttemptSummaryStatus enum.
func (e TaskAttemptSummaryStatus) Valid() bool {
switch e {
case TaskAttemptSummaryStatusPassed:
return true
case TaskAttemptSummaryStatusRunning:
return true
case TaskAttemptSummaryStatusStopped:
return true
default:
return false
}
}
// Defines values for TaskEffectOperation.
const (
CleanupRuntime TaskEffectOperation = "cleanup_runtime"
SubmitAgentTurn TaskEffectOperation = "submit_agent_turn"
)
// Valid indicates whether the value is a known member of the TaskEffectOperation enum.
func (e TaskEffectOperation) Valid() bool {
switch e {
case CleanupRuntime:
return true
case SubmitAgentTurn:
return true
default:
return false
}
}
// Defines values for TaskEffectStatus.
const (
TaskEffectStatusCanceled TaskEffectStatus = "canceled"
TaskEffectStatusDispatching TaskEffectStatus = "dispatching"
TaskEffectStatusFailed TaskEffectStatus = "failed"
TaskEffectStatusPending TaskEffectStatus = "pending"
TaskEffectStatusSucceeded TaskEffectStatus = "succeeded"
TaskEffectStatusUncertain TaskEffectStatus = "uncertain"
)
// Valid indicates whether the value is a known member of the TaskEffectStatus enum.
func (e TaskEffectStatus) Valid() bool {
switch e {
case TaskEffectStatusCanceled:
return true
case TaskEffectStatusDispatching:
return true
case TaskEffectStatusFailed:
return true
case TaskEffectStatusPending:
return true
case TaskEffectStatusSucceeded:
return true
case TaskEffectStatusUncertain:
return true
default:
return false
}
}
// Defines values for TaskExecutionDesiredControl.
const (
Run TaskExecutionDesiredControl = "run"
)
// Valid indicates whether the value is a known member of the TaskExecutionDesiredControl enum.
func (e TaskExecutionDesiredControl) Valid() bool {
switch e {
case Run:
return true
default:
return false
}
}
// Defines values for TaskExecutionFactFactKind.
const (
TASKEXECUTIONCHANGED TaskExecutionFactFactKind = "TASK_EXECUTION_CHANGED"
)
// Valid indicates whether the value is a known member of the TaskExecutionFactFactKind enum.
func (e TaskExecutionFactFactKind) Valid() bool {
switch e {
case TASKEXECUTIONCHANGED:
return true
default:
return false
}
}
// Defines values for TaskExecutionStatus.
const (
TaskExecutionStatusCanceled TaskExecutionStatus = "canceled"
TaskExecutionStatusFailed TaskExecutionStatus = "failed"
TaskExecutionStatusIdle TaskExecutionStatus = "idle"
TaskExecutionStatusRunning TaskExecutionStatus = "running"
TaskExecutionStatusWaitingForApproval TaskExecutionStatus = "waiting_for_approval"
)
// Valid indicates whether the value is a known member of the TaskExecutionStatus enum.
func (e TaskExecutionStatus) Valid() bool {
switch e {
case TaskExecutionStatusCanceled:
return true
case TaskExecutionStatusFailed:
return true
case TaskExecutionStatusIdle:
return true
case TaskExecutionStatusRunning:
return true
case TaskExecutionStatusWaitingForApproval:
return true
default:
return false
}
}
// Defines values for TaskProgressTaskStatus.
const (
TaskProgressRunning TaskProgressTaskStatus = "running"
TaskProgressWaitingForApproval TaskProgressTaskStatus = "waiting_for_approval"
)
// Valid indicates whether the value is a known member of the TaskProgressTaskStatus enum.
func (e TaskProgressTaskStatus) Valid() bool {
switch e {
case TaskProgressRunning:
return true
case TaskProgressWaitingForApproval:
return true
default:
return false
}
}
// Defines values for TaskWorkerTransitionRequestTransition.
const (
Advance TaskWorkerTransitionRequestTransition = "advance"
BeginEffectDispatch TaskWorkerTransitionRequestTransition = "begin_effect_dispatch"
CompleteRuntimeCleanup TaskWorkerTransitionRequestTransition = "complete_runtime_cleanup"
RecordAgentTerminal TaskWorkerTransitionRequestTransition = "record_agent_terminal"
RecordAgentTurn TaskWorkerTransitionRequestTransition = "record_agent_turn"
RecordAgentTurnFailure TaskWorkerTransitionRequestTransition = "record_agent_turn_failure"
ScheduleReconcile TaskWorkerTransitionRequestTransition = "schedule_reconcile"
)
// Valid indicates whether the value is a known member of the TaskWorkerTransitionRequestTransition enum.
func (e TaskWorkerTransitionRequestTransition) Valid() bool {
switch e {
case Advance:
return true
case BeginEffectDispatch:
return true
case CompleteRuntimeCleanup:
return true
case RecordAgentTerminal:
return true
case RecordAgentTurn:
return true
case RecordAgentTurnFailure:
return true
case ScheduleReconcile:
return true
default:
return false
}
}
// Defines values for TouchAgentRuntimeLocalComputerRequestRuntimes.
const (
TouchAgentRuntimeLocalComputerRequestRuntimesAntigravity TouchAgentRuntimeLocalComputerRequestRuntimes = "antigravity"
TouchAgentRuntimeLocalComputerRequestRuntimesClaude TouchAgentRuntimeLocalComputerRequestRuntimes = "claude"
TouchAgentRuntimeLocalComputerRequestRuntimesCodex TouchAgentRuntimeLocalComputerRequestRuntimes = "codex"
TouchAgentRuntimeLocalComputerRequestRuntimesPi TouchAgentRuntimeLocalComputerRequestRuntimes = "pi"
)
// Valid indicates whether the value is a known member of the TouchAgentRuntimeLocalComputerRequestRuntimes enum.
func (e TouchAgentRuntimeLocalComputerRequestRuntimes) Valid() bool {
switch e {
case TouchAgentRuntimeLocalComputerRequestRuntimesAntigravity:
return true
case TouchAgentRuntimeLocalComputerRequestRuntimesClaude:
return true
case TouchAgentRuntimeLocalComputerRequestRuntimesCodex:
return true
case TouchAgentRuntimeLocalComputerRequestRuntimesPi:
return true
default:
return false
}
}
// Defines values for TouchAgentRuntimeLocalComputerRequestStatus.
const (
Offline TouchAgentRuntimeLocalComputerRequestStatus = "offline"
Online TouchAgentRuntimeLocalComputerRequestStatus = "online"
UpgradeRequired TouchAgentRuntimeLocalComputerRequestStatus = "upgrade_required"
)
// Valid indicates whether the value is a known member of the TouchAgentRuntimeLocalComputerRequestStatus enum.
func (e TouchAgentRuntimeLocalComputerRequestStatus) Valid() bool {
switch e {
case Offline:
return true
case Online:
return true
case UpgradeRequired:
return true
default:
return false
}
}
// Defines values for TrackingItemKind.
const (
TrackingItemKindMeeting TrackingItemKind = "meeting"
TrackingItemKindQuestion TrackingItemKind = "question"
TrackingItemKindTodo TrackingItemKind = "todo"
)
// Valid indicates whether the value is a known member of the TrackingItemKind enum.
func (e TrackingItemKind) Valid() bool {
switch e {
case TrackingItemKindMeeting:
return true
case TrackingItemKindQuestion:
return true
case TrackingItemKindTodo:
return true
default:
return false
}
}
// Defines values for TrackingItemStatus.
const (
TrackingItemStatusDone TrackingItemStatus = "done"
TrackingItemStatusOpen TrackingItemStatus = "open"
)
// Valid indicates whether the value is a known member of the TrackingItemStatus enum.
func (e TrackingItemStatus) Valid() bool {
switch e {
case TrackingItemStatusDone:
return true
case TrackingItemStatusOpen:
return true
default:
return false
}
}
// Defines values for TrackingItemCreateKind.
const (
TrackingItemCreateKindMeeting TrackingItemCreateKind = "meeting"
TrackingItemCreateKindQuestion TrackingItemCreateKind = "question"
TrackingItemCreateKindTodo TrackingItemCreateKind = "todo"
)
// Valid indicates whether the value is a known member of the TrackingItemCreateKind enum.
func (e TrackingItemCreateKind) Valid() bool {
switch e {
case TrackingItemCreateKindMeeting:
return true
case TrackingItemCreateKindQuestion:
return true
case TrackingItemCreateKindTodo:
return true
default:
return false
}
}
// Defines values for TrackingItemFieldsKind.
const (
TrackingItemFieldsKindMeeting TrackingItemFieldsKind = "meeting"
TrackingItemFieldsKindQuestion TrackingItemFieldsKind = "question"
TrackingItemFieldsKindTodo TrackingItemFieldsKind = "todo"
)
// Valid indicates whether the value is a known member of the TrackingItemFieldsKind enum.
func (e TrackingItemFieldsKind) Valid() bool {
switch e {
case TrackingItemFieldsKindMeeting:
return true
case TrackingItemFieldsKindQuestion:
return true
case TrackingItemFieldsKindTodo:
return true
default:
return false
}
}
// Defines values for TrackingItemUpdateKind.
const (
TrackingItemUpdateKindMeeting TrackingItemUpdateKind = "meeting"
TrackingItemUpdateKindQuestion TrackingItemUpdateKind = "question"
TrackingItemUpdateKindTodo TrackingItemUpdateKind = "todo"
)
// Valid indicates whether the value is a known member of the TrackingItemUpdateKind enum.
func (e TrackingItemUpdateKind) Valid() bool {
switch e {
case TrackingItemUpdateKindMeeting:
return true
case TrackingItemUpdateKindQuestion:
return true
case TrackingItemUpdateKindTodo:
return true
default:
return false
}
}
// Defines values for TrackingItemUpdateStatus.
const (
TrackingItemUpdateStatusDone TrackingItemUpdateStatus = "done"
TrackingItemUpdateStatusOpen TrackingItemUpdateStatus = "open"
)
// Valid indicates whether the value is a known member of the TrackingItemUpdateStatus enum.
func (e TrackingItemUpdateStatus) Valid() bool {
switch e {
case TrackingItemUpdateStatusDone:
return true
case TrackingItemUpdateStatusOpen:
return true
default:
return false
}
}
// Defines values for VoiceLiveContextMessageRole.
const (
VoiceLiveContextMessageRoleAssistant VoiceLiveContextMessageRole = "assistant"
VoiceLiveContextMessageRoleUser VoiceLiveContextMessageRole = "user"
)
// Valid indicates whether the value is a known member of the VoiceLiveContextMessageRole enum.
func (e VoiceLiveContextMessageRole) Valid() bool {
switch e {
case VoiceLiveContextMessageRoleAssistant:
return true
case VoiceLiveContextMessageRoleUser:
return true
default:
return false
}
}
// Defines values for VoiceLiveReplyReceiptStatus.
const (
VoiceLiveReplyReceiptStatusAccepted VoiceLiveReplyReceiptStatus = "accepted"
VoiceLiveReplyReceiptStatusReplayed VoiceLiveReplyReceiptStatus = "replayed"
)
// Valid indicates whether the value is a known member of the VoiceLiveReplyReceiptStatus enum.
func (e VoiceLiveReplyReceiptStatus) Valid() bool {
switch e {
case VoiceLiveReplyReceiptStatusAccepted:
return true
case VoiceLiveReplyReceiptStatusReplayed:
return true
default:
return false
}
}
// Defines values for VoiceLiveTaskState.
const (
VoiceLiveTaskStateCanceled VoiceLiveTaskState = "canceled"
VoiceLiveTaskStateFailed VoiceLiveTaskState = "failed"
VoiceLiveTaskStatePending VoiceLiveTaskState = "pending"
VoiceLiveTaskStateReported VoiceLiveTaskState = "reported"
VoiceLiveTaskStateWaitingForApproval VoiceLiveTaskState = "waiting_for_approval"
VoiceLiveTaskStateWorking VoiceLiveTaskState = "working"
)
// Valid indicates whether the value is a known member of the VoiceLiveTaskState enum.
func (e VoiceLiveTaskState) Valid() bool {
switch e {
case VoiceLiveTaskStateCanceled:
return true
case VoiceLiveTaskStateFailed:
return true
case VoiceLiveTaskStatePending:
return true
case VoiceLiveTaskStateReported:
return true
case VoiceLiveTaskStateWaitingForApproval:
return true
case VoiceLiveTaskStateWorking:
return true
default:
return false
}
}
// Defines values for VoiceLiveTaskSurface.
const (
VoiceLiveTaskSurfaceApps VoiceLiveTaskSurface = "apps"
VoiceLiveTaskSurfaceDesktop VoiceLiveTaskSurface = "desktop"
VoiceLiveTaskSurfaceWeb VoiceLiveTaskSurface = "web"
VoiceLiveTaskSurfaceWorkspace VoiceLiveTaskSurface = "workspace"
)
// Valid indicates whether the value is a known member of the VoiceLiveTaskSurface enum.
func (e VoiceLiveTaskSurface) Valid() bool {
switch e {
case VoiceLiveTaskSurfaceApps:
return true
case VoiceLiveTaskSurfaceDesktop:
return true
case VoiceLiveTaskSurfaceWeb:
return true
case VoiceLiveTaskSurfaceWorkspace:
return true
default:
return false
}
}
// Defines values for VoiceObservationReceiptStatus.
const (
VoiceObservationReceiptStatusAccepted VoiceObservationReceiptStatus = "accepted"
VoiceObservationReceiptStatusIgnored VoiceObservationReceiptStatus = "ignored"
)
// Valid indicates whether the value is a known member of the VoiceObservationReceiptStatus enum.
func (e VoiceObservationReceiptStatus) Valid() bool {
switch e {
case VoiceObservationReceiptStatusAccepted:
return true
case VoiceObservationReceiptStatusIgnored:
return true
default:
return false
}
}
// Defines values for VoiceRecordingReportState.
const (
VoiceRecordingReportStateActive VoiceRecordingReportState = "active"
VoiceRecordingReportStateAvailable VoiceRecordingReportState = "available"
VoiceRecordingReportStateFailed VoiceRecordingReportState = "failed"
)
// Valid indicates whether the value is a known member of the VoiceRecordingReportState enum.
func (e VoiceRecordingReportState) Valid() bool {
switch e {
case VoiceRecordingReportStateActive:
return true
case VoiceRecordingReportStateAvailable:
return true
case VoiceRecordingReportStateFailed:
return true
default:
return false
}
}
// Defines values for WorkItemKind.
const (
Issue WorkItemKind = "issue"
Task WorkItemKind = "task"
)
// Valid indicates whether the value is a known member of the WorkItemKind enum.
func (e WorkItemKind) Valid() bool {
switch e {
case Issue:
return true
case Task:
return true
default:
return false
}
}
// Defines values for WorkItemPriority.
const (
WorkItemPriorityHigh WorkItemPriority = "high"
WorkItemPriorityLow WorkItemPriority = "low"
WorkItemPriorityMedium WorkItemPriority = "medium"
WorkItemPriorityUrgent WorkItemPriority = "urgent"
)
// Valid indicates whether the value is a known member of the WorkItemPriority enum.
func (e WorkItemPriority) Valid() bool {
switch e {
case WorkItemPriorityHigh:
return true
case WorkItemPriorityLow:
return true
case WorkItemPriorityMedium:
return true
case WorkItemPriorityUrgent:
return true
default:
return false
}
}
// Defines values for WorkItemResolution.
const (
Completed WorkItemResolution = "completed"
Duplicate WorkItemResolution = "duplicate"
Failed WorkItemResolution = "failed"
NotPlanned WorkItemResolution = "not_planned"
)
// Valid indicates whether the value is a known member of the WorkItemResolution enum.
func (e WorkItemResolution) Valid() bool {
switch e {
case Completed:
return true
case Duplicate:
return true
case Failed:
return true
case NotPlanned:
return true
default:
return false
}
}
// Defines values for WorkItemState.
const (
WorkItemStateInProgress WorkItemState = "in_progress"
WorkItemStateOpen WorkItemState = "open"
WorkItemStateResolved WorkItemState = "resolved"
)
// Valid indicates whether the value is a known member of the WorkItemState enum.
func (e WorkItemState) Valid() bool {
switch e {
case WorkItemStateInProgress:
return true
case WorkItemStateOpen:
return true
case WorkItemStateResolved:
return true
default:
return false
}
}
// AcceptAgentTrustedNotificationRequest defines model for AcceptAgentTrustedNotificationRequest.
type AcceptAgentTrustedNotificationRequest struct {
ContextKey AgentRuntimeContextKey `json:"context_key"`
// Epoch The epoch a starting Agent Service process opened. Every Runtime write names it; a write naming an earlier epoch is rejected with CONTEXT_FENCED.
Epoch AgentServiceEpoch `json:"epoch"`
ExecutionRunRef string `json:"execution_run_ref"`
Input AgentRuntimeInput `json:"input"`
}
// AcceptAgentTrustedNotificationResult defines model for AcceptAgentTrustedNotificationResult.
type AcceptAgentTrustedNotificationResult struct {
Status AcceptAgentTrustedNotificationResultStatus `json:"status"`
SteerGroupId *string `json:"steer_group_id,omitempty"`
}
// AcceptAgentTrustedNotificationResultStatus defines model for AcceptAgentTrustedNotificationResult.Status.
type AcceptAgentTrustedNotificationResultStatus string
// ActorKind defines model for ActorKind.
type ActorKind string
// AgentAccessCredential defines model for AgentAccessCredential.
type AgentAccessCredential struct {
// AccessToken Returned once. Store privately; never include in logs or model prompts.
AccessToken string `json:"access_token"`
AgentId string `json:"agent_id"`
CredentialId string `json:"credential_id"`
TenantId string `json:"tenant_id"`
}
// AgentActorRef Agent-visible collaboration identity. TeamHub retains and validates Tenant scope internally.
type AgentActorRef struct {
DisplayName string `json:"display_name"`
// Id Opaque, case-sensitive identifier. Clients must not infer type or time from it.
Id Id `json:"id"`
Kind ActorKind `json:"kind"`
}
// AgentEffectiveResources defines model for AgentEffectiveResources.
type AgentEffectiveResources struct {
// ConnectableAppKeys Sorted keys of every catalog app a Human can connect for Agents, such as linear, with or without a Composio key, so the Agent asks for authorization with teamhub apps connect instead of reaching the app another way. A fixed catalog, so the digest leaves it out; Agent Service renders it again on every Run.
ConnectableAppKeys []string `json:"connectable_app_keys"`
// ConnectedAppKeys Sorted keys of the apps with an account granted to this Agent, such as gmail or google_calendar, so its instructions name only sources it can query. Empty without connected_apps. Agent Service requires this field, so TeamHub ships before Agent Service.
ConnectedAppKeys []string `json:"connected_app_keys"`
// ConnectedApps TeamHub currently has a Composio API key, from the environment or saved on the Apps page, so the Agent is taught and allowed the connected app commands.
ConnectedApps bool `json:"connected_apps"`
// EffectiveSha256 Deterministic digest of the effective Skill set, connected_apps and connected_app_keys; Agent Service compares it at Run boundaries.
EffectiveSha256 string `json:"effective_sha256"`
Skills []AgentEffectiveSkill `json:"skills"`
}
// AgentEffectiveSkill defines model for AgentEffectiveSkill.
type AgentEffectiveSkill struct {
Config map[string]interface{} `json:"config"`
// ManifestId Immutable, case-sensitive Skill Manifest identifier.
ManifestId SkillManifestIdentifier `json:"manifest_id"`
// ManifestVersion Immutable strict Semantic Version for a Skill Manifest.
ManifestVersion ManifestVersion `json:"manifest_version"`
Name string `json:"name"`
PackageSha256 string `json:"package_sha256"`
// SkillId Stable, case-sensitive logical Skill identifier.
SkillId SkillIdentifier `json:"skill_id"`
Source AgentEffectiveSkillSource `json:"source"`
}
// AgentEffectiveSkillSource defines model for AgentEffectiveSkill.Source.
type AgentEffectiveSkillSource string
// AgentExecutionContext defines model for AgentExecutionContext.
type AgentExecutionContext struct {
// AgentActorId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
AgentActorId Id `json:"agent_actor_id"`
ContextKey AgentRuntimeContextKey `json:"context_key"`
// MembershipEpochId The Room membership a Room-bound Meta Context is bound to. A new membership rebinds the Context; the Agent Service restarts what it prepared under the previous one.
MembershipEpochId *string `json:"membership_epoch_id,omitempty"`
NextInputSequence AgentRuntimeInt64 `json:"next_input_sequence"`
Ref AgentRuntimeContextRef `json:"ref"`
// RoomKind Trusted TeamHub Room shape. Present only for a Room-bound Meta Context and derived from TeamHub Room authority.
RoomKind *AgentExecutionContextRoomKind `json:"room_kind,omitempty"`
// SharedTaskScope Trusted identity of the shared Task directory this Context reads or writes. Present for a Room-bound Meta Context (role meta, no task_id) and for an alter_ego Context whose current Task generation is coordinated by a Room-bound Meta Context of the same Agent (role alter_ego, task_id required). The origin Room is that frozen coordinator's Room, never the Task Room.
SharedTaskScope *AgentRuntimeSharedTaskScope `json:"shared_task_scope,omitempty"`
StateRevision AgentRuntimePositiveInt64 `json:"state_revision"`
TargetResidency AgentExecutionContextTargetResidency `json:"target_residency"`
// TenantId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
TenantId Id `json:"tenant_id"`
TerminalReason *AgentExecutionContextTerminalReason `json:"terminal_reason,omitempty"`
TerminatedAt *time.Time `json:"terminated_at,omitempty"`
}
// AgentExecutionContextRoomKind Trusted TeamHub Room shape. Present only for a Room-bound Meta Context and derived from TeamHub Room authority.
type AgentExecutionContextRoomKind string
// AgentExecutionContextTargetResidency defines model for AgentExecutionContext.TargetResidency.
type AgentExecutionContextTargetResidency string
// AgentExecutionContextTerminalReason defines model for AgentExecutionContext.TerminalReason.
type AgentExecutionContextTerminalReason string
// AgentExecutionContextList defines model for AgentExecutionContextList.
type AgentExecutionContextList struct {
Contexts []AgentExecutionContext `json:"contexts"`
}
// AgentIdentity defines model for AgentIdentity.
type AgentIdentity struct {
// Actor Agent-visible collaboration identity. TeamHub retains and validates Tenant scope internally.
Actor AgentActorRef `json:"actor"`
// AgentId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
AgentId Id `json:"agent_id"`
// AgentType Persisted Agent runtime type.
AgentType AgentType `json:"agent_type"`
// RepresentedHuman Human represented by this AnotherMe. Present only for an authorized active AnotherMe identity.
RepresentedHuman *AgentRepresentedHumanRef `json:"represented_human,omitempty"`
// Sponsor Trusted Human sponsor identity derived from the active Agent registration.
Sponsor AgentSponsorRef `json:"sponsor"`
}
// AgentLocalRun defines model for AgentLocalRun.
type AgentLocalRun struct {
AttemptCount int `json:"attempt_count"`
CancellationRequested *bool `json:"cancellation_requested,omitempty"`
ContextKey AgentRuntimeContextKey `json:"context_key"`
InitialInputIds []string `json:"initial_input_ids"`
RunId string `json:"run_id"`
Status AgentLocalRunStatus `json:"status"`
SteerInputIds []string `json:"steer_input_ids"`
Terminal *map[string]interface{} `json:"terminal,omitempty"`
}
// AgentLocalRunStatus defines model for AgentLocalRun.Status.
type AgentLocalRunStatus string
// AgentLocalRunReplyStatus defines model for AgentLocalRunReplyStatus.
type AgentLocalRunReplyStatus struct {
// Replied Whether TeamHub persisted a visible reply from this Local Run: a conversation Message or decision card attributed to the Run, a queued presentation sequence attributed to the Run, or an unattributed conversation Message, presentation sequence, or emoji Reaction written by the Context's Agent in the Room or its Threads since the Run started.
Replied bool `json:"replied"`
}
// AgentMemoryDocument defines model for AgentMemoryDocument.
type AgentMemoryDocument struct {
Cursors map[string]struct {
ThreadId string `json:"thread_id"`
Through int `json:"through"`
} `json:"cursors"`
Memory string `json:"memory"`
// Pending An extract stage names its source session; a consolidate stage merges every waiting candidate.
Pending *struct {
// Attempt Invalid or timed-out outputs produced for this stage; 3 stops maintenance for this Agent.
Attempt *int `json:"attempt,omitempty"`
Prompt string `json:"prompt"`
SourceKey *string `json:"source_key,omitempty"`
Stage AgentMemoryDocumentPendingStage `json:"stage"`
ThreadId *string `json:"thread_id,omitempty"`
Through *int `json:"through,omitempty"`
} `json:"pending,omitempty"`
Revision int `json:"revision"`
Sessions map[string]struct {
ContextKey string `json:"context_key"`
// RawMemory Candidates extracted since the last consolidation; empty once consolidated.
RawMemory string `json:"raw_memory"`
Summary string `json:"summary"`
ThreadId string `json:"thread_id"`
Through int `json:"through"`
UpdatedRevision int `json:"updated_revision"`
} `json:"sessions"`
Summary string `json:"summary"`
}
// AgentMemoryDocumentPendingStage defines model for AgentMemoryDocument.Pending.Stage.
type AgentMemoryDocumentPendingStage string
// AgentParticipantTaskResolution Managed Task identity derived from the current frozen participant snapshot. It is not a projection of mutable Work Item Assignment or access relations.
type AgentParticipantTaskResolution struct {
ExecutionGeneration int64 `json:"execution_generation"`
// TaskId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
TaskId Id `json:"task_id"`
// WorkRoomId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
WorkRoomId Id `json:"work_room_id"`
}
// AgentProfileUpdate The Agent's current profile, present when this Context's Runtime Session was started under an older profile. Agent Service puts it before the Run's inputs as one hidden update; TeamHub returns each profile revision to a Session once.
type AgentProfileUpdate struct {
ConfigurationRevision int64 `json:"configuration_revision"`
Instructions string `json:"instructions"`
Name string `json:"name"`
}
// AgentReasoningEffort defines model for AgentReasoningEffort.
type AgentReasoningEffort string
// AgentRepresentedHumanRef Human represented by this AnotherMe. Present only for an authorized active AnotherMe identity.
type AgentRepresentedHumanRef struct {
DisplayName string `json:"display_name"`
// Id Opaque, case-sensitive identifier. Clients must not infer type or time from it.
Id Id `json:"id"`
// Memory The represented Human's current memory.md, maintained by Memory from the Profile and nightly dreaming. Standing preferences and reference data; the current conversation's explicit requests take precedence.
Memory *UserMemoryRevision `json:"memory,omitempty"`
}
// AgentRunInputOrigin defines model for AgentRunInputOrigin.
type AgentRunInputOrigin struct {
AuthorType string `json:"author_type"`
FiredRoutine bool `json:"fired_routine"`
MessageKind string `json:"message_kind"`
Notification bool `json:"notification"`
TaskInbox bool `json:"task_inbox"`
}
// AgentRuntimeAcceptedContextState The Context state the accepting transaction committed. The Agent Service applies it to its Context record instead of reading the Context again.
type AgentRuntimeAcceptedContextState struct {
NextInputSequence AgentRuntimeInt64 `json:"next_input_sequence"`
StateRevision AgentRuntimePositiveInt64 `json:"state_revision"`
TargetResidency AgentRuntimeAcceptedContextStateTargetResidency `json:"target_residency"`
}
// AgentRuntimeAcceptedContextStateTargetResidency defines model for AgentRuntimeAcceptedContextState.TargetResidency.
type AgentRuntimeAcceptedContextStateTargetResidency string
// AgentRuntimeActivityContentBlock One explicitly projected, bounded public detail block. Provider-native payloads must be redacted and normalized before entering this field.
type AgentRuntimeActivityContentBlock struct {
Content string `json:"content"`
Format AgentRuntimeActivityContentBlockFormat `json:"format"`
Label *string `json:"label,omitempty"`
}
// AgentRuntimeActivityContentBlockFormat defines model for AgentRuntimeActivityContentBlock.Format.
type AgentRuntimeActivityContentBlockFormat string
// AgentRuntimeActivityFinishedEvent defines model for AgentRuntimeActivityFinishedEvent.
type AgentRuntimeActivityFinishedEvent struct {
// ActivityId Opaque identity of one logical activity within a local Run. Provider-native item identifiers must not cross the Runtime adapter boundary.
ActivityId AgentRuntimeActivityId `json:"activity_id"`
Content *[]AgentRuntimeActivityContentBlock `json:"content,omitempty"`
Outcome AgentRuntimeActivityOutcome `json:"outcome"`
Type string `json:"type"`
}
// AgentRuntimeActivityId Opaque identity of one logical activity within a local Run. Provider-native item identifiers must not cross the Runtime adapter boundary.
type AgentRuntimeActivityId = string
// AgentRuntimeActivityKind Runtime-neutral kind of an activity. Each Runtime adapter classifies its own tools; a single shell command gets the kind its program shows. Clients present an activity by kind, not by tool name.
type AgentRuntimeActivityKind string
// AgentRuntimeActivityOutcome defines model for AgentRuntimeActivityOutcome.
type AgentRuntimeActivityOutcome string
// AgentRuntimeActivityStartedEvent defines model for AgentRuntimeActivityStartedEvent.
type AgentRuntimeActivityStartedEvent struct {
// ActivityId Opaque identity of one logical activity within a local Run. Provider-native item identifiers must not cross the Runtime adapter boundary.
ActivityId AgentRuntimeActivityId `json:"activity_id"`
Content *[]AgentRuntimeActivityContentBlock `json:"content,omitempty"`
// Kind Runtime-neutral kind of an activity. Each Runtime adapter classifies its own tools; a single shell command gets the kind its program shows. Clients present an activity by kind, not by tool name.
Kind AgentRuntimeActivityKind `json:"kind"`
Title string `json:"title"`
Type string `json:"type"`
}
// AgentRuntimeActivityUpdatedEvent defines model for AgentRuntimeActivityUpdatedEvent.
type AgentRuntimeActivityUpdatedEvent struct {
// ActivityId Opaque identity of one logical activity within a local Run. Provider-native item identifiers must not cross the Runtime adapter boundary.
ActivityId AgentRuntimeActivityId `json:"activity_id"`
Detail string `json:"detail"`
Type string `json:"type"`
}
// AgentRuntimeCommandId defines model for AgentRuntimeCommandId.
type AgentRuntimeCommandId = string
// AgentRuntimeComputerDaemonId defines model for AgentRuntimeComputerDaemonId.
type AgentRuntimeComputerDaemonId = string
// AgentRuntimeConfigSnapshot defines model for AgentRuntimeConfigSnapshot.
type AgentRuntimeConfigSnapshot struct {
// ActorId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
ActorId Id `json:"actor_id"`
Agent struct {
Instructions string `json:"instructions"`
Name string `json:"name"`
} `json:"agent"`
// AgentId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
AgentId Id `json:"agent_id"`
ConfigurationRevision AgentRuntimePositiveInt64 `json:"configuration_revision"`
ContentHash string `json:"content_hash"`
// PermissionReview TeamHub has a Runtime permission judge, so Runs declare permission review and the Agent is taught the tool approval protocol. A deployment fact, excluded from content_hash.
PermissionReview bool `json:"permission_review"`
Resources AgentRuntimeResourceSnapshot `json:"resources"`
Runtime AgentRuntimeSettingsSnapshot `json:"runtime"`
// RuntimeConfigurationRevision The configuration revision of the last Runtime or placement change. Later revisions changed only the profile, which a running Runtime adopts in place from its next claim.
RuntimeConfigurationRevision AgentRuntimePositiveInt64 `json:"runtime_configuration_revision"`
// TenantId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
TenantId Id `json:"tenant_id"`
}
// AgentRuntimeContextKey defines model for AgentRuntimeContextKey.
type AgentRuntimeContextKey = string
// AgentRuntimeContextRef defines model for AgentRuntimeContextRef.
type AgentRuntimeContextRef struct {
union json.RawMessage
}
// AgentRuntimeContextRef0 defines model for .
type AgentRuntimeContextRef0 struct {
// AgentId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
AgentId Id `json:"agent_id"`
Kind string `json:"kind"`
// RoomId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
RoomId Id `json:"room_id"`
}
// AgentRuntimeContextRef1 defines model for .
type AgentRuntimeContextRef1 struct {
// AgentId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
AgentId Id `json:"agent_id"`
Kind string `json:"kind"`
// TaskId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
TaskId Id `json:"task_id"`
}
// AgentRuntimeContextRef2 defines model for .
type AgentRuntimeContextRef2 struct {
// AgentId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
AgentId Id `json:"agent_id"`
// DocumentId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
DocumentId Id `json:"document_id"`
Kind string `json:"kind"`
}
// AgentRuntimeDeletedResult defines model for AgentRuntimeDeletedResult.
type AgentRuntimeDeletedResult struct {
Deleted bool `json:"deleted"`
}
// AgentRuntimeDeletionSnapshot defines model for AgentRuntimeDeletionSnapshot.
type AgentRuntimeDeletionSnapshot struct {
// ActorId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
ActorId Id `json:"actor_id"`
// AgentId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
AgentId Id `json:"agent_id"`
ConfigurationRevision AgentRuntimePositiveInt64 `json:"configuration_revision"`
Contexts []AgentExecutionContext `json:"contexts"`
Runtime AgentRuntimeSettingsSnapshot `json:"runtime"`
// TenantId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
TenantId Id `json:"tenant_id"`
}
// AgentRuntimeExecutionFailure Public classified failure; contains no native error text, paths, credentials, or task input. Each code is set where the failure is observed, from structured signals only. model_unavailable means the model service refused the selected model for the Runtime's account, so the Agent needs another model or another sign-in. model_not_offered means the Agent's Computer does not offer the selected model for its Runtime, or the model does not support the selected reasoning effort, so the Runtime could not start; the Agent needs a model and reasoning effort that Computer offers. context_too_long means the conversation no longer fits the model's context window. model_service_error means the model service reported a server-side error. timeout means the Runtime hit its local execution deadline. execution_outcome_unknown means a command was dispatched but no validated exit was observed before unexpected transport or Runtime failure. Intentional cancellation, authorization loss or unavailability, and normal retirement do not create this classification. Authorization loss or unavailability includes explicit revocation, authorization checks that fail or time out, and authorization expiry. This code does not currently cover unknown effects caused by control-plane disconnection. It remains a failed Run and must not be automatically replayed; verify its effects before starting another Run. reply_undelivered means a Room Run finished, but every message the Agent tried to post failed, so the Room received no reply from it. reply_not_sent means a Room Run finished without trying to post anything while a Human who mentioned the Agent waited for its reply; the Runtime ended the turn in text nobody sees, which is not posted for it. interrupted means the Run stopped before it finished for a reason other than a user cancellation, such as a restart or a Runner stopped on its Computer; part of its work may have taken effect and it is not replayed. computer_unavailable means the Agent's Computer could not run it: the Computer is unreachable, the Agent's Runner is stopped there, or the Runtime is not enabled. cleanup_unconfirmed means the Runtime process could not be confirmed stopped. response_too_large means the reply exceeded the Room's size limit. unclassified means no structured signal identified the cause. runtime_type is present when the failure belongs to a selected Runtime; it is absent for failures the Agent Service or TeamHub observes without one.
type AgentRuntimeExecutionFailure struct {
Code AgentRuntimeExecutionFailureCode `json:"code"`
RuntimeType *LocalRuntimeType `json:"runtime_type,omitempty"`
RuntimeVersion *string `json:"runtime_version,omitempty"`
}
// AgentRuntimeExecutionFailureCode defines model for AgentRuntimeExecutionFailure.Code.
type AgentRuntimeExecutionFailureCode string
// AgentRuntimeInput defines model for AgentRuntimeInput.
type AgentRuntimeInput struct {
InputId string `json:"input_id"`
Payload map[string]interface{} `json:"payload"`
SourceInboxId *string `json:"source_inbox_id,omitempty"`
SourceKind AgentRuntimeInputSourceKind `json:"source_kind"`
SourceMessageId *string `json:"source_message_id,omitempty"`
}
// AgentRuntimeInputSourceKind defines model for AgentRuntimeInput.SourceKind.
type AgentRuntimeInputSourceKind string
// AgentRuntimeInt64 defines model for AgentRuntimeInt64.
type AgentRuntimeInt64 = string
// AgentRuntimeLocalComputer defines model for AgentRuntimeLocalComputer.
type AgentRuntimeLocalComputer struct {
Capacity *int `json:"capacity,omitempty"`
// ComputerId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
ComputerId Id `json:"computer_id"`
CredentialGeneration AgentRuntimeInt64 `json:"credential_generation"`
DisplayName string `json:"display_name"`
LastSeenAt *time.Time `json:"last_seen_at,omitempty"`
Owner AgentRuntimeLocalComputerOwner `json:"owner"`
// Platform Last native host platform reported by this Computer. Omission preserves an existing observation; unknown legacy Computers omit this field.
Platform *AgentRuntimeLocalComputerPlatform `json:"platform,omitempty"`
RuntimeDiagnostics []map[string]interface{} `json:"runtime_diagnostics"`
Runtimes []AgentRuntimeLocalComputerRuntimes `json:"runtimes"`
Status AgentRuntimeLocalComputerStatus `json:"status"`
WorkspaceGrants []map[string]interface{} `json:"workspace_grants"`
}
// AgentRuntimeLocalComputerPlatform Last native host platform reported by this Computer. Omission preserves an existing observation; unknown legacy Computers omit this field.
type AgentRuntimeLocalComputerPlatform string
// AgentRuntimeLocalComputerRuntimes defines model for AgentRuntimeLocalComputer.Runtimes.
type AgentRuntimeLocalComputerRuntimes string
// AgentRuntimeLocalComputerStatus defines model for AgentRuntimeLocalComputer.Status.
type AgentRuntimeLocalComputerStatus string
// AgentRuntimeLocalComputerCredentialRequest defines model for AgentRuntimeLocalComputerCredentialRequest.
type AgentRuntimeLocalComputerCredentialRequest struct {
// ComputerId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
ComputerId Id `json:"computer_id"`
Owner AgentRuntimeLocalComputerOwner `json:"owner"`
}
// AgentRuntimeLocalComputerOwner defines model for AgentRuntimeLocalComputerOwner.
type AgentRuntimeLocalComputerOwner struct {
// OwnerActorId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
OwnerActorId Id `json:"owner_actor_id"`
// TenantId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
TenantId Id `json:"tenant_id"`
}
// AgentRuntimeLocalComputerRemovalResult defines model for AgentRuntimeLocalComputerRemovalResult.
type AgentRuntimeLocalComputerRemovalResult struct {
Status AgentRuntimeLocalComputerRemovalResultStatus `json:"status"`
}
// AgentRuntimeLocalComputerRemovalResultStatus defines model for AgentRuntimeLocalComputerRemovalResult.Status.
type AgentRuntimeLocalComputerRemovalResultStatus string
// AgentRuntimeOfferedPresentationEvent defines model for AgentRuntimeOfferedPresentationEvent.
type AgentRuntimeOfferedPresentationEvent struct {
union json.RawMessage
}
// AgentRuntimeOfferedPresentationEventItem defines model for AgentRuntimeOfferedPresentationEventItem.
type AgentRuntimeOfferedPresentationEventItem struct {
CommandId AgentRuntimeCommandId `json:"command_id"`
Event AgentRuntimeOfferedPresentationEvent `json:"event"`
}
// AgentRuntimePlanStep defines model for AgentRuntimePlanStep.
type AgentRuntimePlanStep struct {
Content string `json:"content"`
Status AgentRuntimePlanStepStatus `json:"status"`
}
// AgentRuntimePlanStepStatus defines model for AgentRuntimePlanStep.Status.
type AgentRuntimePlanStepStatus string
// AgentRuntimePlanUpdatedEvent defines model for AgentRuntimePlanUpdatedEvent.
type AgentRuntimePlanUpdatedEvent struct {
Explanation *string `json:"explanation,omitempty"`
Steps []AgentRuntimePlanStep `json:"steps"`
Type string `json:"type"`
}
// AgentRuntimePositiveInt64 defines model for AgentRuntimePositiveInt64.
type AgentRuntimePositiveInt64 = string
// AgentRuntimeResourceSnapshot defines model for AgentRuntimeResourceSnapshot.
type AgentRuntimeResourceSnapshot struct {
McpServers []struct {
AllowedTools []string `json:"allowed_tools"`
ManifestVersion string `json:"manifest_version"`
// McpId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
McpId Id `json:"mcp_id"`
Name string `json:"name"`
Transport string `json:"transport"`
Url string `json:"url"`
} `json:"mcp_servers"`
Skills []struct {
Config map[string]interface{} `json:"config"`
ManifestVersion string `json:"manifest_version"`
Name string `json:"name"`
PackageName string `json:"package_name"`
PackageSha256 string `json:"package_sha256"`
// SkillId Stable, case-sensitive logical Skill identifier.
SkillId SkillIdentifier `json:"skill_id"`
} `json:"skills"`
}
// AgentRuntimeRunnerPlacement An active Agent placed on the Computer; its Agent Runner should be ready there.
type AgentRuntimeRunnerPlacement struct {
// ActorId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
ActorId Id `json:"actor_id"`
// AgentId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
AgentId Id `json:"agent_id"`
AssignmentRevision AgentRuntimePositiveInt64 `json:"assignment_revision"`
Model string `json:"model"`
// OwnerActorId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
OwnerActorId Id `json:"owner_actor_id"`
ReasoningEffort *AgentReasoningEffort `json:"reasoning_effort,omitempty"`
RuntimeType LocalRuntimeType `json:"runtime_type"`
// TenantId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
TenantId Id `json:"tenant_id"`
// WorkspaceGrantId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
WorkspaceGrantId Id `json:"workspace_grant_id"`
}
// AgentRuntimeSession defines model for AgentRuntimeSession.
type AgentRuntimeSession struct {
// CompatibleConfigurationRevision Read-only server proof that the current registration is exactly one revision newer due to this Agent's successful profile initialization. Returned by a fresh Session read, never trusted from provider JSON or checkpoint requests. Does not grant execution authority or alter the stored checkpoint.
CompatibleConfigurationRevision *AgentRuntimePositiveInt64 `json:"compatible_configuration_revision,omitempty"`
ConfigurationRevision AgentRuntimePositiveInt64 `json:"configuration_revision"`
ExpectedRevision AgentRuntimeInt64 `json:"expected_revision"`
ProviderKind string `json:"provider_kind"`
Revision AgentRuntimePositiveInt64 `json:"revision"`
SchemaVersion AgentRuntimePositiveInt64 `json:"schema_version"`
// Session Schema 1 stores the provider session directly. Schema 2 strictly stores {nativeSession, executionResources}; nativeSession is the provider object or null before its first thread exists. executionResources contains version=1, optional userProfile, effectiveSha256 and up to 100 exact Skill descriptors (skillId, manifestId, manifestVersion, name, packageName, packageSha256, config, source). No credentials or snapshot tokens. A null nativeSession requires no thread_id; otherwise its threadId matches thread_id. These are loaded version references for execution recovery, never an authorization snapshot.
Session map[string]interface{} `json:"session"`
ThreadId *string `json:"thread_id,omitempty"`
UpdatedAt time.Time `json:"updated_at"`
}
// AgentRuntimeSessionCheckpoint defines model for AgentRuntimeSessionCheckpoint.
type AgentRuntimeSessionCheckpoint struct {
ConfigurationRevision AgentRuntimePositiveInt64 `json:"configuration_revision"`
ExpectedRevision AgentRuntimeInt64 `json:"expected_revision"`
ProviderKind string `json:"provider_kind"`
SchemaVersion AgentRuntimePositiveInt64 `json:"schema_version"`
// Session Schema 1 stores the provider session directly. Schema 2 strictly stores {nativeSession, executionResources}; nativeSession is the provider object or null before its first thread exists. executionResources contains version=1, optional userProfile, effectiveSha256 and up to 100 exact Skill descriptors (skillId, manifestId, manifestVersion, name, packageName, packageSha256, config, source). No credentials or snapshot tokens. A null nativeSession requires no thread_id; otherwise its threadId matches thread_id. These are loaded version references for execution recovery, never an authorization snapshot.
Session map[string]interface{} `json:"session"`
ThreadId *string `json:"thread_id,omitempty"`
}
// AgentRuntimeSettingsSnapshot defines model for AgentRuntimeSettingsSnapshot.
type AgentRuntimeSettingsSnapshot struct {
Model string `json:"model"`
Placement struct {
AssignmentRevision AgentRuntimePositiveInt64 `json:"assignment_revision"`
// ComputerId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
ComputerId Id `json:"computer_id"`
// OwnerActorId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
OwnerActorId Id `json:"owner_actor_id"`
RuntimeType LocalRuntimeType `json:"runtime_type"`
// TenantId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
TenantId Id `json:"tenant_id"`
// WorkspaceGrantId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
WorkspaceGrantId Id `json:"workspace_grant_id"`
} `json:"placement"`
ReasoningEffort *AgentReasoningEffort `json:"reasoning_effort,omitempty"`
Type string `json:"type"`
}
// AgentRuntimeSharedTaskScope Trusted identity of the shared Task directory this Context reads or writes. Present for a Room-bound Meta Context (role meta, no task_id) and for an alter_ego Context whose current Task generation is coordinated by a Room-bound Meta Context of the same Agent (role alter_ego, task_id required). The origin Room is that frozen coordinator's Room, never the Task Room.
type AgentRuntimeSharedTaskScope struct {
// AgentId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
AgentId Id `json:"agent_id"`
// OriginRoomId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
OriginRoomId Id `json:"origin_room_id"`
Role AgentRuntimeSharedTaskScopeRole `json:"role"`
// TaskId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
TaskId *Id `json:"task_id,omitempty"`
// TenantId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
TenantId Id `json:"tenant_id"`
Version AgentRuntimeSharedTaskScopeVersion `json:"version"`
}
// AgentRuntimeSharedTaskScopeRole defines model for AgentRuntimeSharedTaskScope.Role.
type AgentRuntimeSharedTaskScopeRole string
// AgentRuntimeSharedTaskScopeVersion defines model for AgentRuntimeSharedTaskScope.Version.
type AgentRuntimeSharedTaskScopeVersion int
// AgentRuntimeSuccessResult defines model for AgentRuntimeSuccessResult.
type AgentRuntimeSuccessResult struct {
Success bool `json:"success"`
}
// AgentRuntimeWaitingContexts defines model for AgentRuntimeWaitingContexts.
type AgentRuntimeWaitingContexts struct {
ContextKeys []AgentRuntimeContextKey `json:"context_keys"`
}
// AgentRuntimeWorkState defines model for AgentRuntimeWorkState.
type AgentRuntimeWorkState struct {
HasPendingWork bool `json:"has_pending_work"`
HasQueuedRuns bool `json:"has_queued_runs"`
// MessageSteers Present on the work-state read. Steers a Message transaction queued for this Context that the Agent Service has not settled, in input order: a targeted Message for the running Run that reads its Inbox, or a native question's answer assigned to the Run that asked it.
MessageSteers *[]StoredAgentRuntimeInput `json:"message_steers,omitempty"`
// NextRunOrigins Distinct scheduling metadata of the oldest claimable Run's initial inputs.
NextRunOrigins *[]AgentRunInputOrigin `json:"next_run_origins,omitempty"`
}
// AgentRuntimeWorkingStatusChangedEvent defines model for AgentRuntimeWorkingStatusChangedEvent.
type AgentRuntimeWorkingStatusChangedEvent struct {
Status AgentRuntimeWorkingStatusChangedEventStatus `json:"status"`
// Title Optional public queue label for queued, or the full provider-visible reasoning summary title for thinking. Omit for working; raw reasoning is never allowed.
Title *string `json:"title,omitempty"`
Type string `json:"type"`
}
// AgentRuntimeWorkingStatusChangedEventStatus defines model for AgentRuntimeWorkingStatusChangedEvent.Status.
type AgentRuntimeWorkingStatusChangedEventStatus string
// AgentServiceEpoch The epoch a starting Agent Service process opened. Every Runtime write names it; a write naming an earlier epoch is rejected with CONTEXT_FENCED.
type AgentServiceEpoch = string
// AgentServiceEpochStart defines model for AgentServiceEpochStart.
type AgentServiceEpochStart struct {
InterruptedRunIds []string `json:"interrupted_run_ids"`
// WaitingContextKeys Contexts with a queued Run or Message steer, for the new process to take up at once.
WaitingContextKeys []AgentRuntimeContextKey `json:"waiting_context_keys"`
}
// AgentSponsorRef Trusted Human sponsor identity derived from the active Agent registration.
type AgentSponsorRef struct {
DisplayName string `json:"display_name"`
// Id Opaque, case-sensitive identifier. Clients must not infer type or time from it.
Id Id `json:"id"`
}
// AgentType Persisted Agent runtime type.
type AgentType string
// AgentWorkItem defines model for AgentWorkItem.
type AgentWorkItem struct {
// ArchivedAt UTC timestamp in RFC 3339 format with an explicit offset.
ArchivedAt *Timestamp `json:"archived_at,omitempty"`
Assignees []AgentWorkItemAssignment `json:"assignees"`
// CreatedAt UTC timestamp in RFC 3339 format with an explicit offset.
CreatedAt Timestamp `json:"created_at"`
// CreatedBy Agent-visible collaboration identity. TeamHub retains and validates Tenant scope internally.
CreatedBy AgentActorRef `json:"created_by"`
Description string `json:"description"`
ExplicitAccessGrants []AgentWorkItemAccessGrant `json:"explicit_access_grants"`
// Id Opaque, case-sensitive identifier. Clients must not infer type or time from it.
Id Id `json:"id"`
Kind WorkItemKind `json:"kind"`
Number int64 `json:"number"`
// OriginMessageId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
OriginMessageId *Id `json:"origin_message_id,omitempty"`
// OriginRoomId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
OriginRoomId *Id `json:"origin_room_id,omitempty"`
Priority WorkItemPriority `json:"priority"`
ReferencedActors []AgentActorRef `json:"referenced_actors"`
Resolution *WorkItemResolution `json:"resolution,omitempty"`
State WorkItemState `json:"state"`
Title string `json:"title"`
// UpdatedAt UTC timestamp in RFC 3339 format with an explicit offset.
UpdatedAt Timestamp `json:"updated_at"`
// UpdatedBy Agent-visible collaboration identity. TeamHub retains and validates Tenant scope internally.
UpdatedBy AgentActorRef `json:"updated_by"`
Version int64 `json:"version"`
// WorkRoomId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
WorkRoomId *Id `json:"work_room_id,omitempty"`
}
// AgentWorkItemAccessGrant defines model for AgentWorkItemAccessGrant.
type AgentWorkItemAccessGrant struct {
// Actor Agent-visible collaboration identity. TeamHub retains and validates Tenant scope internally.
Actor AgentActorRef `json:"actor"`
// GrantedAt UTC timestamp in RFC 3339 format with an explicit offset.
GrantedAt Timestamp `json:"granted_at"`
// GrantedBy Agent-visible collaboration identity. TeamHub retains and validates Tenant scope internally.
GrantedBy AgentActorRef `json:"granted_by"`
}
// AgentWorkItemAssignment defines model for AgentWorkItemAssignment.
type AgentWorkItemAssignment struct {
// Actor Agent-visible collaboration identity. TeamHub retains and validates Tenant scope internally.
Actor AgentActorRef `json:"actor"`
// AssignedAt UTC timestamp in RFC 3339 format with an explicit offset.
AssignedAt Timestamp `json:"assigned_at"`
// AssignedBy Agent-visible collaboration identity. TeamHub retains and validates Tenant scope internally.
AssignedBy AgentActorRef `json:"assigned_by"`
}
// AgentWorkItemComment defines model for AgentWorkItemComment.
type AgentWorkItemComment struct {
// Author Agent-visible collaboration identity. TeamHub retains and validates Tenant scope internally.
Author AgentActorRef `json:"author"`
Body string `json:"body"`
// CreatedAt UTC timestamp in RFC 3339 format with an explicit offset.
CreatedAt Timestamp `json:"created_at"`
// DeletedAt UTC timestamp in RFC 3339 format with an explicit offset.
DeletedAt *Timestamp `json:"deleted_at,omitempty"`
// Id Opaque, case-sensitive identifier. Clients must not infer type or time from it.
Id Id `json:"id"`
Segments []WorkItemCommentSegment `json:"segments"`
// UpdatedAt UTC timestamp in RFC 3339 format with an explicit offset.
UpdatedAt Timestamp `json:"updated_at"`
Version int64 `json:"version"`
// WorkItemId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
WorkItemId Id `json:"work_item_id"`
}
// AgentWorkItemCommentPage defines model for AgentWorkItemCommentPage.
type AgentWorkItemCommentPage struct {
Items []AgentWorkItemComment `json:"items"`
Page PageMeta `json:"page"`
}
// AgentWorkItemCreateRequest defines model for AgentWorkItemCreateRequest.
type AgentWorkItemCreateRequest struct {
// AssigneeActorIds Initial assignees. When present, origin_room_id is required and every assignee must be a current member of that Origin Room in the rebound Agent's Tenant.
AssigneeActorIds *[]Id `json:"assignee_actor_ids,omitempty"`
Description *string `json:"description,omitempty"`
Kind WorkItemKind `json:"kind"`
// OriginRoomId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
OriginRoomId *Id `json:"origin_room_id,omitempty"`
Priority *WorkItemPriority `json:"priority,omitempty"`
ReferencedActorIds *[]Id `json:"referenced_actor_ids,omitempty"`
Title string `json:"title"`
}
// AgentWorkItemPage defines model for AgentWorkItemPage.
type AgentWorkItemPage struct {
Items []AgentWorkItem `json:"items"`
Page PageMeta `json:"page"`
}
// AlterEgoMcpContextReference One Task-scoped alterEgo execution Context of an Agent.
type AlterEgoMcpContextReference struct {
// Kind Identifies a Task-scoped alterEgo execution Context.
Kind string `json:"kind"`
// TaskId Stable managed Task identifier bound to this alterEgo Context.
TaskId string `json:"task_id"`
}
// AnotherMePlacement Where one Human's Another Me runs; background model calls for that Human run on this Computer.
type AnotherMePlacement struct {
// AgentActorId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
AgentActorId Id `json:"agent_actor_id"`
// AgentId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
AgentId Id `json:"agent_id"`
// ComputerId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
ComputerId Id `json:"computer_id"`
LocalRuntimeType LocalRuntimeType `json:"local_runtime_type"`
// OwnerActorId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
OwnerActorId Id `json:"owner_actor_id"`
Status AnotherMePlacementStatus `json:"status"`
// TenantId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
TenantId Id `json:"tenant_id"`
}
// AnotherMePlacementStatus defines model for AnotherMePlacement.Status.
type AnotherMePlacementStatus string
// AnotherMePlacementList defines model for AnotherMePlacementList.
type AnotherMePlacementList struct {
Items []AnotherMePlacement `json:"items"`
}
// AssignAgentSteerRunRequest defines model for AssignAgentSteerRunRequest.
type AssignAgentSteerRunRequest struct {
ContextKey AgentRuntimeContextKey `json:"context_key"`
// Epoch The epoch a starting Agent Service process opened. Every Runtime write names it; a write naming an earlier epoch is rejected with CONTEXT_FENCED.
Epoch AgentServiceEpoch `json:"epoch"`
GroupId string `json:"group_id"`
RunId string `json:"run_id"`
}
// CancelAgentLocalRunRequest defines model for CancelAgentLocalRunRequest.
type CancelAgentLocalRunRequest struct {
ContextKey AgentRuntimeContextKey `json:"context_key"`
// Epoch The epoch a starting Agent Service process opened. Every Runtime write names it; a write naming an earlier epoch is rejected with CONTEXT_FENCED.
Epoch AgentServiceEpoch `json:"epoch"`
RunId string `json:"run_id"`
}
// CancelAgentLocalRunResult defines model for CancelAgentLocalRunResult.
type CancelAgentLocalRunResult struct {
Status CancelAgentLocalRunResultStatus `json:"status"`
}
// CancelAgentLocalRunResultStatus defines model for CancelAgentLocalRunResult.Status.
type CancelAgentLocalRunResultStatus string
// CheckpointAgentRuntimeSessionRequest defines model for CheckpointAgentRuntimeSessionRequest.
type CheckpointAgentRuntimeSessionRequest struct {
Checkpoint AgentRuntimeSessionCheckpoint `json:"checkpoint"`
ContextKey AgentRuntimeContextKey `json:"context_key"`
// Epoch The epoch a starting Agent Service process opened. Every Runtime write names it; a write naming an earlier epoch is rejected with CONTEXT_FENCED.
Epoch AgentServiceEpoch `json:"epoch"`
}
// ClaimAgentLocalRunRequest defines model for ClaimAgentLocalRunRequest.
type ClaimAgentLocalRunRequest struct {
// ClaimId Names this claim; a claim repeated after a lost response receives the same Run.
ClaimId string `json:"claim_id"`
ContextKey AgentRuntimeContextKey `json:"context_key"`
// Epoch The epoch a starting Agent Service process opened. Every Runtime write names it; a write naming an earlier epoch is rejected with CONTEXT_FENCED.
Epoch AgentServiceEpoch `json:"epoch"`
}
// ClaimAgentLocalRunResult defines model for ClaimAgentLocalRunResult.
type ClaimAgentLocalRunResult struct {
Claimed bool `json:"claimed"`
Run *ClaimedAgentLocalRun `json:"run,omitempty"`
}
// ClaimedAgentLocalRun defines model for ClaimedAgentLocalRun.
type ClaimedAgentLocalRun struct {
AttemptCount int `json:"attempt_count"`
// CancellationRequested Current cancellation flag returned atomically with the Run claim. The production authority always returns this field.
CancellationRequested *bool `json:"cancellation_requested,omitempty"`
// ContinuesContext The Context received input before this Run's first input.
ContinuesContext bool `json:"continues_context"`
Inputs []StoredAgentRuntimeInput `json:"inputs"`
// ProfileUpdate The Agent's current profile, present when this Context's Runtime Session was started under an older profile. Agent Service puts it before the Run's inputs as one hidden update; TeamHub returns each profile revision to a Session once.
ProfileUpdate *AgentProfileUpdate `json:"profile_update,omitempty"`
RunId string `json:"run_id"`
}
// ClearAgentRuntimeSessionRequest defines model for ClearAgentRuntimeSessionRequest.
type ClearAgentRuntimeSessionRequest struct {
ConfigurationRevision AgentRuntimePositiveInt64 `json:"configuration_revision"`
ContextKey AgentRuntimeContextKey `json:"context_key"`
// Epoch The epoch a starting Agent Service process opened. Every Runtime write names it; a write naming an earlier epoch is rejected with CONTEXT_FENCED.
Epoch AgentServiceEpoch `json:"epoch"`
// ExpectedCurrentConfigurationRevision Loaded registration revision for automatic stale-session clearing. Requires the same active registration and rejects a Session compatible through proven profile initialization. Omit only for an explicit Session reset.
ExpectedCurrentConfigurationRevision *AgentRuntimePositiveInt64 `json:"expected_current_configuration_revision,omitempty"`
}
// ClearAgentRuntimeSessionResult defines model for ClearAgentRuntimeSessionResult.
type ClearAgentRuntimeSessionResult struct {
Cleared bool `json:"cleared"`
}
// CompleteAgentSteerRequest defines model for CompleteAgentSteerRequest.
type CompleteAgentSteerRequest struct {
ContextKey AgentRuntimeContextKey `json:"context_key"`
// Epoch The epoch a starting Agent Service process opened. Every Runtime write names it; a write naming an earlier epoch is rejected with CONTEXT_FENCED.
Epoch AgentServiceEpoch `json:"epoch"`
GroupId string `json:"group_id"`
Outcome CompleteAgentSteerRequestOutcome `json:"outcome"`
RunId string `json:"run_id"`
}
// CompleteAgentSteerRequestOutcome defines model for CompleteAgentSteerRequest.Outcome.
type CompleteAgentSteerRequestOutcome string
// ConnectAgentRuntimeLocalComputerRequest defines model for ConnectAgentRuntimeLocalComputerRequest.
type ConnectAgentRuntimeLocalComputerRequest struct {
Capacity *int `json:"capacity,omitempty"`
// ComputerId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
ComputerId Id `json:"computer_id"`
CredentialGeneration AgentRuntimeInt64 `json:"credential_generation"`
DaemonId AgentRuntimeComputerDaemonId `json:"daemon_id"`
// DaemonPublicKey Base64-encoded 32-byte Ed25519 public key.
DaemonPublicKey []byte `json:"daemon_public_key"`
DaemonVersion string `json:"daemon_version"`
DisplayName string `json:"display_name"`
IdentityVersion AgentRuntimePositiveInt64 `json:"identity_version"`
Owner AgentRuntimeLocalComputerOwner `json:"owner"`
Platform *ConnectAgentRuntimeLocalComputerRequestPlatform `json:"platform,omitempty"`
// RecommendedVersion Computer release this deployment ships; omission keeps the last one.
RecommendedVersion *string `json:"recommended_version,omitempty"`
RuntimeDiagnostics []map[string]interface{} `json:"runtime_diagnostics"`
Runtimes []ConnectAgentRuntimeLocalComputerRequestRuntimes `json:"runtimes"`
SeenAt time.Time `json:"seen_at"`
// Status offline while the Computer's Agent Runners are reconciled after a new connection.
Status ConnectAgentRuntimeLocalComputerRequestStatus `json:"status"`
WorkspaceGrants []map[string]interface{} `json:"workspace_grants"`
}
// ConnectAgentRuntimeLocalComputerRequestPlatform defines model for ConnectAgentRuntimeLocalComputerRequest.Platform.
type ConnectAgentRuntimeLocalComputerRequestPlatform string
// ConnectAgentRuntimeLocalComputerRequestRuntimes defines model for ConnectAgentRuntimeLocalComputerRequest.Runtimes.
type ConnectAgentRuntimeLocalComputerRequestRuntimes string
// ConnectAgentRuntimeLocalComputerRequestStatus offline while the Computer's Agent Runners are reconciled after a new connection.
type ConnectAgentRuntimeLocalComputerRequestStatus string
// ConnectAgentRuntimeLocalComputerResult defines model for ConnectAgentRuntimeLocalComputerResult.
type ConnectAgentRuntimeLocalComputerResult struct {
Computer AgentRuntimeLocalComputer `json:"computer"`
Placements []AgentRuntimeRunnerPlacement `json:"placements"`
}
// CreateRuntimeHumanInteractionRequest defines model for CreateRuntimeHumanInteractionRequest.
type CreateRuntimeHumanInteractionRequest struct {
ContextKey string `json:"context_key"`
ExecutionRunRef string `json:"execution_run_ref"`
OperationId string `json:"operation_id"`
Request map[string]interface{} `json:"request"`
}
// CreateRuntimePermissionReviewRequest defines model for CreateRuntimePermissionReviewRequest.
type CreateRuntimePermissionReviewRequest struct {
Action RuntimePermissionAction `json:"action"`
ContextKey string `json:"context_key"`
Environment *RuntimePermissionEnvironment `json:"environment,omitempty"`
Evidence *RuntimePermissionEvidence `json:"evidence,omitempty"`
ExecutionRunRef string `json:"execution_run_ref"`
OperationId string `json:"operation_id"`
RequestId string `json:"request_id"`
// Transcript Daemon-trimmed recent assistant messages and tool calls/results from the Runtime session file. Untrusted evidence; Runtime user turns are excluded.
Transcript *[]RuntimePermissionTranscriptEntry `json:"transcript,omitempty"`
}
// Cursor Opaque pagination cursor. Clients must not parse or modify it.
type Cursor = string
// DeleteAgentExecutionContextRequest defines model for DeleteAgentExecutionContextRequest.
type DeleteAgentExecutionContextRequest struct {
ContextKey AgentRuntimeContextKey `json:"context_key"`
ExpectedRevision AgentRuntimePositiveInt64 `json:"expected_revision"`
}
// DocumentMcpContextReference One Document-scoped execution Context of an Agent.
type DocumentMcpContextReference struct {
// DocumentId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
DocumentId Id `json:"document_id"`
// Kind Identifies a Document-scoped execution Context.
Kind string `json:"kind"`
}
// EnqueueAgentSteerRequest defines model for EnqueueAgentSteerRequest.
type EnqueueAgentSteerRequest struct {
ContextKey AgentRuntimeContextKey `json:"context_key"`
// Epoch The epoch a starting Agent Service process opened. Every Runtime write names it; a write naming an earlier epoch is rejected with CONTEXT_FENCED.
Epoch AgentServiceEpoch `json:"epoch"`
GroupId string `json:"group_id"`
}
// EnqueueAgentSteerResult defines model for EnqueueAgentSteerResult.
type EnqueueAgentSteerResult struct {
RunId string `json:"run_id"`
}
// EnsureAgentExecutionContextRequest defines model for EnsureAgentExecutionContextRequest.
type EnsureAgentExecutionContextRequest struct {
Ref AgentRuntimeContextRef `json:"ref"`
TargetResidency EnsureAgentExecutionContextRequestTargetResidency `json:"target_residency"`
}
// EnsureAgentExecutionContextRequestTargetResidency defines model for EnsureAgentExecutionContextRequest.TargetResidency.
type EnsureAgentExecutionContextRequestTargetResidency string
// EnsureAgentExecutionContextResult defines model for EnsureAgentExecutionContextResult.
type EnsureAgentExecutionContextResult struct {
Context AgentExecutionContext `json:"context"`
Created bool `json:"created"`
}
// Error defines model for Error.
type Error struct {
Code string `json:"code"`
Details *[]ErrorDetail `json:"details,omitempty"`
// Message Human-readable summary safe to display; clients branch on code, not message.
Message string `json:"message"`
RequestId string `json:"request_id"`
Retryable *bool `json:"retryable,omitempty"`
}
// ErrorDetail defines model for ErrorDetail.
type ErrorDetail struct {
// Code Optional stable classification for this individual validation issue.
Code *string `json:"code,omitempty"`
Field string `json:"field"`
// LimitBytes With code too_large, the largest size the field accepts, in bytes.
LimitBytes *int64 `json:"limit_bytes,omitempty"`
Reason string `json:"reason"`
}
// ErrorResponse defines model for ErrorResponse.
type ErrorResponse struct {
Error Error `json:"error"`
}
// FinishAgentLocalRunRequest defines model for FinishAgentLocalRunRequest.
type FinishAgentLocalRunRequest struct {
ContextKey AgentRuntimeContextKey `json:"context_key"`
// Epoch The epoch a starting Agent Service process opened. Every Runtime write names it; a write naming an earlier epoch is rejected with CONTEXT_FENCED.
Epoch AgentServiceEpoch `json:"epoch"`
RunId string `json:"run_id"`
Session *AgentRuntimeSessionCheckpoint `json:"session,omitempty"`
Terminal FinishAgentLocalRunRequest_Terminal `json:"terminal"`
}
// FinishAgentLocalRunRequestTerminalType defines model for FinishAgentLocalRunRequest.Terminal.Type.
type FinishAgentLocalRunRequestTerminalType string
// FinishAgentLocalRunRequest_Terminal defines model for FinishAgentLocalRunRequest.Terminal.
type FinishAgentLocalRunRequest_Terminal struct {
// Failure Public classified failure; contains no native error text, paths, credentials, or task input. Each code is set where the failure is observed, from structured signals only. model_unavailable means the model service refused the selected model for the Runtime's account, so the Agent needs another model or another sign-in. model_not_offered means the Agent's Computer does not offer the selected model for its Runtime, or the model does not support the selected reasoning effort, so the Runtime could not start; the Agent needs a model and reasoning effort that Computer offers. context_too_long means the conversation no longer fits the model's context window. model_service_error means the model service reported a server-side error. timeout means the Runtime hit its local execution deadline. execution_outcome_unknown means a command was dispatched but no validated exit was observed before unexpected transport or Runtime failure. Intentional cancellation, authorization loss or unavailability, and normal retirement do not create this classification. Authorization loss or unavailability includes explicit revocation, authorization checks that fail or time out, and authorization expiry. This code does not currently cover unknown effects caused by control-plane disconnection. It remains a failed Run and must not be automatically replayed; verify its effects before starting another Run. reply_undelivered means a Room Run finished, but every message the Agent tried to post failed, so the Room received no reply from it. reply_not_sent means a Room Run finished without trying to post anything while a Human who mentioned the Agent waited for its reply; the Runtime ended the turn in text nobody sees, which is not posted for it. interrupted means the Run stopped before it finished for a reason other than a user cancellation, such as a restart or a Runner stopped on its Computer; part of its work may have taken effect and it is not replayed. computer_unavailable means the Agent's Computer could not run it: the Computer is unreachable, the Agent's Runner is stopped there, or the Runtime is not enabled. cleanup_unconfirmed means the Runtime process could not be confirmed stopped. response_too_large means the reply exceeded the Room's size limit. unclassified means no structured signal identified the cause. runtime_type is present when the failure belongs to a selected Runtime; it is absent for failures the Agent Service or TeamHub observes without one.
Failure *AgentRuntimeExecutionFailure `json:"failure,omitempty"`
Type FinishAgentLocalRunRequestTerminalType `json:"type"`
AdditionalProperties map[string]interface{} `json:"-"`
}
// FinishAgentLocalRunResult defines model for FinishAgentLocalRunResult.
type FinishAgentLocalRunResult struct {
Run AgentLocalRun `json:"run"`
Session *AgentRuntimeSession `json:"session,omitempty"`
}
// GetAgentRuntimeSessionResult defines model for GetAgentRuntimeSessionResult.
type GetAgentRuntimeSessionResult struct {
Available bool `json:"available"`
Session *AgentRuntimeSession `json:"session,omitempty"`
}
// Id Opaque, case-sensitive identifier. Clients must not infer type or time from it.
type Id = string
// IdempotencyKey Client-generated key scoped to the authenticated principal and operation.
type IdempotencyKey = string
// ListRecentlyUsedAgentRuntimeContextsResult defines model for ListRecentlyUsedAgentRuntimeContextsResult.
type ListRecentlyUsedAgentRuntimeContextsResult struct {
Contexts []RecentlyUsedAgentRuntimeContext `json:"contexts"`
}
// LocalModel One validated chat model of the catalog on this platform and its state on this Computer. Sizes are bytes; readers format them.
type LocalModel struct {
// ActiveParameters Parameters active per token on an moe model, such as 3B.
ActiveParameters *string `json:"active_parameters,omitempty"`
// Architecture Weight activation topology: dense activates all parameters per token; moe activates a subset.
Architecture *LocalModelArchitecture `json:"architecture,omitempty"`
Availability LocalModelAvailability `json:"availability"`
// Capabilities Capabilities verified by localmodels on this platform.
Capabilities *[]LocalModelCapability `json:"capabilities,omitempty"`
ContextTokens int64 `json:"context_tokens"`
Description string `json:"description"`
Download *LocalModelDownloadProgress `json:"download,omitempty"`
DownloadBytes int64 `json:"download_bytes"`
Endpoint *LocalModelEndpoint `json:"endpoint,omitempty"`
Error *LocalModelError `json:"error,omitempty"`
// Family Model family for brand presentation; never inferred from name.
Family *LocalModelFamily `json:"family,omitempty"`
// Fit Where the model can live, judged on total capacity so it stays stable across loads. system means localmodels can run it from RAM, slower.
Fit LocalModelFit `json:"fit"`
// Id Stable localmodels library id: catalog id and variant, such as qwen3-4b:Q4_K_M.
Id LocalModelId `json:"id"`
// License SPDX identifier or license name, such as Apache-2.0 or Gemma Terms of Use.
License *string `json:"license,omitempty"`
// MemoryBytes Footprint when loaded at its context policy, from the localmodels estimator.
MemoryBytes int64 `json:"memory_bytes"`
Name string `json:"name"`
Note *LocalModelNote `json:"note,omitempty"`
// Parameters Total parameter scale for display, such as 30B or 4B.
Parameters *string `json:"parameters,omitempty"`
// PiModel The runtime_model an Agent on runtime pi stores for this model, <pi provider>/<pi model id>; present while the model is on the Computer.
PiModel *string `json:"pi_model,omitempty"`
// Pool A place a model can live: gpu:<index>, system (RAM beside GPUs), or unified (RAM of a host without discrete GPUs).
Pool *LocalModelPoolId `json:"pool,omitempty"`
// PromptTokensPerSecond Warm prompt-processing speed in tokens/s measured at the last load; absent when unknown.
PromptTokensPerSecond *float32 `json:"prompt_tokens_per_second,omitempty"`
// Publisher Organization or author that published the weights.
Publisher *string `json:"publisher,omitempty"`
Quant string `json:"quant"`
// Recommended True on at most one model, an absent downloadable one.
Recommended bool `json:"recommended"`
// SourceUrl HTTPS model card or repository URL.
SourceUrl *string `json:"source_url,omitempty"`
// State absent: not on disk. idle: on disk, holding no memory. loading reserves its memory before it finishes; loaded is registered with the local gateway and Pi.
State LocalModelState `json:"state"`
// TokensPerSecond Warm speed measured at the last load; absent when unknown.
TokensPerSecond *float32 `json:"tokens_per_second,omitempty"`
Vision bool `json:"vision"`
}
// LocalModelArchitecture Weight activation topology: dense activates all parameters per token; moe activates a subset.
type LocalModelArchitecture string
// LocalModelAvailability defines model for LocalModelAvailability.
type LocalModelAvailability struct {
Downloadable bool `json:"downloadable"`
Reason *LocalModelAvailabilityReason `json:"reason,omitempty"`
}
// LocalModelAvailabilityReason defines model for LocalModelAvailabilityReason.
type LocalModelAvailabilityReason struct {
Code LocalModelAvailabilityReasonCode `json:"code"`
HaveBytes *int64 `json:"have_bytes,omitempty"`
NeedBytes *int64 `json:"need_bytes,omitempty"`
}
// LocalModelAvailabilityReasonCode defines model for LocalModelAvailabilityReason.Code.
type LocalModelAvailabilityReasonCode string
// LocalModelCapability Model capability verified by localmodels on this platform.
type LocalModelCapability string
// LocalModelDownloadProgress defines model for LocalModelDownloadProgress.
type LocalModelDownloadProgress struct {
BytesPerSecond *int64 `json:"bytes_per_second,omitempty"`
DoneBytes int64 `json:"done_bytes"`
Step LocalModelDownloadProgressStep `json:"step"`
TotalBytes int64 `json:"total_bytes"`
}
// LocalModelDownloadProgressStep defines model for LocalModelDownloadProgress.Step.
type LocalModelDownloadProgressStep string
// LocalModelEndpoint defines model for LocalModelEndpoint.
type LocalModelEndpoint struct {
BaseUrl string `json:"base_url"`
}
// LocalModelError defines model for LocalModelError.
type LocalModelError struct {
// Cause Why a GATEWAY_REGISTRATION_FAILED happened, when the Computer supervised the failed job. GATEWAY_HOME_NOT_PRIVATE: the local gateway's private folder at path has another owner; closing Linger and renaming that folder lets the model load.
Cause *LocalModelErrorCause `json:"cause,omitempty"`
// Code Closed localmodels library error set. It is extended only together with the localmodels library contract.
Code LocalModelErrorCode `json:"code"`
// Detail Diagnostic text for display; never matched on.
Detail *string `json:"detail,omitempty"`
// Path The folder the cause names, on the Computer. The public view carries it only for the Computer's owner.
Path *string `json:"path,omitempty"`
}
// LocalModelErrorCause Why a GATEWAY_REGISTRATION_FAILED happened, when the Computer supervised the failed job. GATEWAY_HOME_NOT_PRIVATE: the local gateway's private folder at path has another owner; closing Linger and renaming that folder lets the model load.
type LocalModelErrorCause string
// LocalModelErrorCode Closed localmodels library error set. It is extended only together with the localmodels library contract.
type LocalModelErrorCode string
// LocalModelFamily Model family for brand presentation; never inferred from name.
type LocalModelFamily string
// LocalModelFit Where the model can live, judged on total capacity so it stays stable across loads. system means localmodels can run it from RAM, slower.
type LocalModelFit string
// LocalModelGpu defines model for LocalModelGpu.
type LocalModelGpu struct {
FreeBytes int64 `json:"free_bytes"`
Index int `json:"index"`
Name string `json:"name"`
TotalBytes int64 `json:"total_bytes"`
Uuid *string `json:"uuid,omitempty"`
}
// LocalModelHost Hardware and software of the Computer as localmodels reports it.
type LocalModelHost struct {
Arch LocalModelHostArch `json:"arch"`
DiskFreeBytes int64 `json:"disk_free_bytes"`
// EngineLabel Display only, such as llama.cpp b11370 with CUDA.
EngineLabel string `json:"engine_label"`
Gpus []LocalModelGpu `json:"gpus"`
// OsLabel Display only, such as Ubuntu 24.04.
OsLabel string `json:"os_label"`
Platform LocalModelHostPlatform `json:"platform"`
RamTotalBytes int64 `json:"ram_total_bytes"`
}
// LocalModelHostArch defines model for LocalModelHost.Arch.
type LocalModelHostArch string
// LocalModelHostPlatform defines model for LocalModelHost.Platform.
type LocalModelHostPlatform string
// LocalModelId Stable localmodels library id: catalog id and variant, such as qwen3-4b:Q4_K_M.
type LocalModelId = string
// LocalModelNote defines model for LocalModelNote.
type LocalModelNote struct {
Code LocalModelNoteCode `json:"code"`
}
// LocalModelNoteCode defines model for LocalModelNote.Code.
type LocalModelNoteCode string
// LocalModelPool One place models load into. The system and unified budgets are 80% of RAM, as localmodels computes them.
type LocalModelPool struct {
// GpuIndex Present only for kind gpu; matches LocalModelGpu.index.
GpuIndex *int `json:"gpu_index,omitempty"`
Holders []LocalModelPoolHolder `json:"holders"`
// Id A place a model can live: gpu:<index>, system (RAM beside GPUs), or unified (RAM of a host without discrete GPUs).
Id LocalModelPoolId `json:"id"`
Kind LocalModelPoolKind `json:"kind"`
TotalBytes int64 `json:"total_bytes"`
UsedBytes int64 `json:"used_bytes"`
}
// LocalModelPoolKind defines model for LocalModelPool.Kind.
type LocalModelPoolKind string
// LocalModelPoolHolder Something holding pool memory. A component is a foundation service such as an embedding, reranker, or speech model; it is never a model row.
type LocalModelPoolHolder struct {
Bytes int64 `json:"bytes"`
Id string `json:"id"`
Kind LocalModelPoolHolderKind `json:"kind"`
Name string `json:"name"`
}
// LocalModelPoolHolderKind defines model for LocalModelPoolHolder.Kind.
type LocalModelPoolHolderKind string
// LocalModelPoolId A place a model can live: gpu:<index>, system (RAM beside GPUs), or unified (RAM of a host without discrete GPUs).
type LocalModelPoolId = string
// LocalModelState absent: not on disk. idle: on disk, holding no memory. loading reserves its memory before it finishes; loaded is registered with the local gateway and Pi.
type LocalModelState string
// LocalModelsSnapshot A Computer's model library as its Daemon reported it in runner.local_models, mapped from localmodels.library-status/v1. When available is false only reason and observed_at carry meaning and the lists are empty.
type LocalModelsSnapshot struct {
Available bool `json:"available"`
// Host Hardware and software of the Computer as localmodels reports it.
Host *LocalModelHost `json:"host,omitempty"`
Models []LocalModel `json:"models"`
// ObservedAt UTC timestamp in RFC 3339 format with an explicit offset.
ObservedAt Timestamp `json:"observed_at"`
Pools []LocalModelPool `json:"pools"`
Reason *LocalModelsUnavailableReason `json:"reason,omitempty"`
ToolVersion *string `json:"tool_version,omitempty"`
}
// LocalModelsUnavailableCode Why a Computer reports no model library. TOOL_NOT_INSTALLED: its Computer config names no localmodels tool. TOOL_FAILED: the tool did not answer library status.
type LocalModelsUnavailableCode string
// LocalModelsUnavailableReason defines model for LocalModelsUnavailableReason.
type LocalModelsUnavailableReason struct {
// Code Why a Computer reports no model library. TOOL_NOT_INSTALLED: its Computer config names no localmodels tool. TOOL_FAILED: the tool did not answer library status.
Code LocalModelsUnavailableCode `json:"code"`
// Detail Diagnostic text for display; never matched on.
Detail *string `json:"detail,omitempty"`
}
// LocalRuntimeType defines model for LocalRuntimeType.
type LocalRuntimeType string
// ManagedAgentAccessCredentialRequest defines model for ManagedAgentAccessCredentialRequest.
type ManagedAgentAccessCredentialRequest struct {
// ComputerId The Local Computer the Runner Gateway installs this credential on. Together with workspace_grant_id it must match the Agent's current placement; a Computer the Agent moved away from is refused. The credential does not expire: it ends when the Agent's placement changes, when the Agent is deleted, or when the next credential for the Agent is issued.
ComputerId string `json:"computer_id"`
// HeldTokenSha256 The SHA-256 of the token the Computer reports it holds. When it is the Agent's live credential for the current placement, nothing is issued and the response is 204; otherwise a new credential replaces it.
HeldTokenSha256 *string `json:"held_token_sha256,omitempty"`
Label string `json:"label"`
WorkspaceGrantId string `json:"workspace_grant_id"`
}
// ManifestVersion Immutable strict Semantic Version for a Skill Manifest.
type ManifestVersion = string
// McpContextDocumentAuthorityId Opaque Document identifier.
type McpContextDocumentAuthorityId = string
// McpContextError Safe error detail returned by the TeamHub MCP Context internal API.
type McpContextError struct {
// Code Stable machine-readable failure classification.
Code McpContextErrorCode `json:"code"`
// Issues Safe field-level validation issues, when the failure has actionable paths.
Issues *[]McpContextErrorIssue `json:"issues,omitempty"`
// Message Human-readable failure summary containing no credential material.
Message string `json:"message"`
// RequestId Correlation identifier safe to include in logs and support reports.
RequestId string `json:"request_id"`
}
// McpContextErrorCode Stable machine-readable failure classification.
type McpContextErrorCode string
// McpContextErrorEnvelope Standard failure envelope for every TeamHub MCP Context internal operation.
type McpContextErrorEnvelope struct {
// Error Safe error detail returned by the TeamHub MCP Context internal API.
Error McpContextError `json:"error"`
}
// McpContextErrorIssue One model-safe validation issue.
type McpContextErrorIssue struct {
Code string `json:"code"`
Message string `json:"message"`
Path string `json:"path"`
}
// McpContextReference defines model for McpContextReference.
type McpContextReference struct {
union json.RawMessage
}
// McpContextResolveRequest Execution Context the Agent Service is about to activate.
type McpContextResolveRequest struct {
Context McpContextReference `json:"context"`
}
// McpContextResolveResponse Current Runtime view for one Agent Context.
type McpContextResolveResponse struct {
// AgentId Agent management identifier resolved from the path.
AgentId string `json:"agent_id"`
Context McpContextReference `json:"context"`
// DocumentCommentRuntime Host-only current Document Comment thread projection. The Agent Host writes this exact Markdown to the stable model-visible comments.md path; it is never Tool input.
DocumentCommentRuntime *McpDocumentCommentRuntimeProjection `json:"document_comment_runtime,omitempty"`
}
// McpDocumentCommentRuntimeProjection Host-only current Document Comment thread projection. The Agent Host writes this exact Markdown to the stable model-visible comments.md path; it is never Tool input.
type McpDocumentCommentRuntimeProjection struct {
CommentsMarkdown string `json:"comments_markdown"`
// CurrentDocument Host-only exact current read-only native Document projection.
CurrentDocument McpDocumentLatestRuntimeProjection `json:"current_document"`
}
// McpDocumentContentSha256 Lowercase SHA-256 of the exact content.
type McpDocumentContentSha256 = string
// McpDocumentLatestRuntimeProjection Host-only exact current read-only native Document projection.
type McpDocumentLatestRuntimeProjection struct {
Content []byte `json:"content"`
// DocumentId Opaque Document identifier.
DocumentId McpContextDocumentAuthorityId `json:"document_id"`
Filename string `json:"filename"`
MediaType string `json:"media_type"`
// Sha256 Lowercase SHA-256 of the exact content.
Sha256 McpDocumentContentSha256 `json:"sha256"`
SizeBytes int64 `json:"size_bytes"`
}
// MemoryWikiRefreshRequest defines model for MemoryWikiRefreshRequest.
type MemoryWikiRefreshRequest struct {
// CaptureId The recording whose transcript became ready. The refresh then admits only that meeting's recording Sessions, every other source staying at its published version, and its settlement queues no follow-up. While another refresh runs, the response is in_progress and the meeting is not admitted: request it again after that refresh finishes. Without it, the refresh admits every changed source (the nightly refresh).
CaptureId *string `json:"capture_id,omitempty"`
// Date The business date the request is for: the closed date of a nightly refresh, or the date of the meeting. It scopes the refresh intent, not the sources.
Date openapi_types.Date `json:"date"`
// TenantId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
TenantId Id `json:"tenant_id"`
}
// MemoryWikiRefreshResponse defines model for MemoryWikiRefreshResponse.
type MemoryWikiRefreshResponse struct {
// RefreshId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
RefreshId *Id `json:"refresh_id,omitempty"`
RefreshStatus MemoryWikiRefreshResponseRefreshStatus `json:"refresh_status"`
// WikiId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
WikiId Id `json:"wiki_id"`
}
// MemoryWikiRefreshResponseRefreshStatus defines model for MemoryWikiRefreshResponse.RefreshStatus.
type MemoryWikiRefreshResponseRefreshStatus string
// MetaMcpContextReference One Room-bound meta execution Context of an Agent.
type MetaMcpContextReference struct {
// Kind Identifies a meta execution Context.
Kind string `json:"kind"`
// RoomId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
RoomId Id `json:"room_id"`
}
// ObservationKind publisher_absent reports an interval on the VoiceSession clock in which no browser published microphone audio: the previous input ended cleanly (track_ended) and a higher publisher generation delivered its first frame more than 250ms later. TeamHub records the part inside a recording Capture as an unrecoverable media gap; the recorder archived only filler silence there. input_gap reports an unconfirmed ASR interval after buffered replay was exhausted. Archive media may still be complete. track_started/track_ended describe physical tracks, not provider connection retries. For progress and track_ended, start_offset_ms is the start of this ASR attempt's coverage.
type ObservationKind string
// ObservationLane defines model for ObservationLane.
type ObservationLane string
// OfferAgentRuntimePresentationEventsRequest defines model for OfferAgentRuntimePresentationEventsRequest.
type OfferAgentRuntimePresentationEventsRequest struct {
Events []AgentRuntimeOfferedPresentationEventItem `json:"events"`
LocalRunId string `json:"local_run_id"`
}
// OfferAgentRuntimePresentationEventsResult defines model for OfferAgentRuntimePresentationEventsResult.
type OfferAgentRuntimePresentationEventsResult struct {
Accepted bool `json:"accepted"`
EventOrdinal AgentRuntimePositiveInt64 `json:"event_ordinal"`
}
// OpenAgentRuntimeStatusRequest defines model for OpenAgentRuntimeStatusRequest.
type OpenAgentRuntimeStatusRequest struct {
ContextKey AgentRuntimeContextKey `json:"context_key"`
// Epoch The epoch a starting Agent Service process opened. Every Runtime write names it; a write naming an earlier epoch is rejected with CONTEXT_FENCED.
Epoch AgentServiceEpoch `json:"epoch"`
InitialSourceIds []string `json:"initial_source_ids"`
LocalRunId string `json:"local_run_id"`
}
// OpenAgentRuntimeStatusResult defines model for OpenAgentRuntimeStatusResult.
type OpenAgentRuntimeStatusResult struct {
// Opened False when the Run's sources resolve to no Room that may show its status.
Opened bool `json:"opened"`
// RoomId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
RoomId *Id `json:"room_id,omitempty"`
}
// PageMeta defines model for PageMeta.
type PageMeta struct {
HasMore bool `json:"has_more"`
// NextCursor Opaque pagination cursor. Clients must not parse or modify it.
NextCursor *Cursor `json:"next_cursor,omitempty"`
}
// PersonalWikiDocumentPage defines model for PersonalWikiDocumentPage.
type PersonalWikiDocumentPage struct {
// DocumentId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
DocumentId Id `json:"document_id"`
// DocumentVersionId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
DocumentVersionId Id `json:"document_version_id"`
MediaType string `json:"media_type"`
PageKey string `json:"page_key"`
Sha256 string `json:"sha256"`
SizeBytes int64 `json:"size_bytes"`
}
// PersonalWikiDocumentRevision defines model for PersonalWikiDocumentRevision.
type PersonalWikiDocumentRevision struct {
// IsCurrent This published revision matches all currently usable source versions, checked in one read snapshot. An idle state alone does not prove freshness.
IsCurrent *bool `json:"is_current,omitempty"`
Pages []PersonalWikiDocumentPage `json:"pages"`
// PublishedAt UTC timestamp in RFC 3339 format with an explicit offset.
PublishedAt Timestamp `json:"published_at"`
// WikiRevisionId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
WikiRevisionId Id `json:"wiki_revision_id"`
// WikiState The Wiki's refresh state, the same projection as the Personal Wiki state; failed publication must not be reported as completed.
WikiState *PersonalWikiDocumentRevisionWikiState `json:"wiki_state,omitempty"`
}
// PersonalWikiDocumentRevisionWikiState The Wiki's refresh state, the same projection as the Personal Wiki state; failed publication must not be reported as completed.
type PersonalWikiDocumentRevisionWikiState string
// ProactiveGuideline defines model for ProactiveGuideline.
type ProactiveGuideline struct {
Specific []string `json:"specific"`
Threshold float32 `json:"threshold"`
Version int `json:"version"`
}
// ProactiveOpenItem defines model for ProactiveOpenItem.
type ProactiveOpenItem struct {
Content string `json:"content"`
DueAt *time.Time `json:"due_at,omitempty"`
Id string `json:"id"`
Kind string `json:"kind"`
}
// ProactiveWakeRequest defines model for ProactiveWakeRequest.
type ProactiveWakeRequest struct {
// Body Hidden wake text after the @AnotherMe reference. It goes out once the Room is quiet for three minutes.
Body string `json:"body"`
}
// ProactiveWindow defines model for ProactiveWindow.
type ProactiveWindow struct {
Guideline ProactiveGuideline `json:"guideline"`
// JudgedCount Ordinary messages judged before this window; pass it back to finish the window. A window holds twenty messages unless TeamHub runs with a smaller test window.
JudgedCount int64 `json:"judged_count"`
Messages []ProactiveWindowMessage `json:"messages"`
OpenItems []ProactiveOpenItem `json:"open_items"`
}
// ProactiveWindowFinishRequest defines model for ProactiveWindowFinishRequest.
type ProactiveWindowFinishRequest struct {
JudgedCount int64 `json:"judged_count"`
}
// ProactiveWindowMessage defines model for ProactiveWindowMessage.
type ProactiveWindowMessage struct {
Author ProactiveWindowMessageAuthor `json:"author"`
CreatedAt time.Time `json:"created_at"`
Id string `json:"id"`
Text string `json:"text"`
}
// ProactiveWindowMessageAuthor defines model for ProactiveWindowMessage.Author.
type ProactiveWindowMessageAuthor string
// ProactiveWindowResponse defines model for ProactiveWindowResponse.
type ProactiveWindowResponse struct {
Window *ProactiveWindow `json:"window,omitempty"`
}
// RecentlyUsedAgentRuntimeContext defines model for RecentlyUsedAgentRuntimeContext.
type RecentlyUsedAgentRuntimeContext struct {
ContextKey AgentRuntimeContextKey `json:"context_key"`
}
// ReconcileAgentExecutionContextsRequest defines model for ReconcileAgentExecutionContextsRequest.
type ReconcileAgentExecutionContextsRequest struct {
Cursor *string `json:"cursor,omitempty"`
Limit int `json:"limit"`
}
// ReconcileAgentExecutionContextsResult defines model for ReconcileAgentExecutionContextsResult.
type ReconcileAgentExecutionContextsResult struct {
CreatedContextKeys []AgentRuntimeContextKey `json:"created_context_keys"`
CreatedCount int `json:"created_count"`
ExaminedCount int `json:"examined_count"`
ExistingCount int `json:"existing_count"`
NextCursor *string `json:"next_cursor,omitempty"`
}
// RecordAgentLocalRunOperationRequest defines model for RecordAgentLocalRunOperationRequest.
type RecordAgentLocalRunOperationRequest struct {
ContextKey AgentRuntimeContextKey `json:"context_key"`
// Epoch The epoch a starting Agent Service process opened. Every Runtime write names it; a write naming an earlier epoch is rejected with CONTEXT_FENCED.
Epoch AgentServiceEpoch `json:"epoch"`
OperationId string `json:"operation_id"`
RunId string `json:"run_id"`
RuntimeType LocalRuntimeType `json:"runtime_type"`
// TurnId The Runtime turn the Operation started. Message activities read the native records stamped with it, so a turn that a Runtime records under the same ID links even when no tool call does.
TurnId *string `json:"turn_id,omitempty"`
// Usage The usage the Operation's terminal reported; absent when the Operation starts.
Usage *[]map[string]interface{} `json:"usage,omitempty"`
}
// RecordLocalModelsRequest The latest runner.local_models snapshot of one Computer. TeamHub keeps only the latest per Computer, so an offline Computer still shows what it last reported.
type RecordLocalModelsRequest struct {
// ComputerId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
ComputerId Id `json:"computer_id"`
// Snapshot A Computer's model library as its Daemon reported it in runner.local_models, mapped from localmodels.library-status/v1. When available is false only reason and observed_at carry meaning and the lists are empty.
Snapshot LocalModelsSnapshot `json:"snapshot"`
}
// RequeueAgentLocalRunRequest defines model for RequeueAgentLocalRunRequest.
type RequeueAgentLocalRunRequest struct {
ContextKey AgentRuntimeContextKey `json:"context_key"`
// Epoch The epoch a starting Agent Service process opened. Every Runtime write names it; a write naming an earlier epoch is rejected with CONTEXT_FENCED.
Epoch AgentServiceEpoch `json:"epoch"`
RunId string `json:"run_id"`
}
// RuntimeHumanInteractionCreated defines model for RuntimeHumanInteractionCreated.
type RuntimeHumanInteractionCreated struct {
InteractionId string `json:"interaction_id"`
MessageId string `json:"message_id"`
Status RuntimeHumanInteractionCreatedStatus `json:"status"`
}
// RuntimeHumanInteractionCreatedStatus defines model for RuntimeHumanInteractionCreated.Status.
type RuntimeHumanInteractionCreatedStatus string
// RuntimePermissionAction defines model for RuntimePermissionAction.
type RuntimePermissionAction struct {
// Command Raw shell command when the tool is a shell.
Command *string `json:"command,omitempty"`
// Input The native tool input as compact JSON.
Input *string `json:"input,omitempty"`
Runtime RuntimePermissionActionRuntime `json:"runtime"`
Subagent *string `json:"subagent,omitempty"`
Surface RuntimePermissionActionSurface `json:"surface"`
Tool string `json:"tool"`
}
// RuntimePermissionActionRuntime defines model for RuntimePermissionAction.Runtime.
type RuntimePermissionActionRuntime string
// RuntimePermissionActionSurface defines model for RuntimePermissionAction.Surface.
type RuntimePermissionActionSurface string
// RuntimePermissionEnvironment defines model for RuntimePermissionEnvironment.
type RuntimePermissionEnvironment struct {
Platform *string `json:"platform,omitempty"`
RuntimeVersion *string `json:"runtime_version,omitempty"`
Sandbox *string `json:"sandbox,omitempty"`
Workspace *string `json:"workspace,omitempty"`
}
// RuntimePermissionEvidence defines model for RuntimePermissionEvidence.
type RuntimePermissionEvidence struct {
Browser *struct {
FormFields *string `json:"form_fields,omitempty"`
TargetName *string `json:"target_name,omitempty"`
TargetRole *string `json:"target_role,omitempty"`
Title *string `json:"title,omitempty"`
Url string `json:"url"`
} `json:"browser,omitempty"`
// Desktop The window a desktop action targets and the elements its element tokens name in the Agent's latest read of that window.
Desktop *struct {
App *string `json:"app,omitempty"`
Targets *[]struct {
Name *string `json:"name,omitempty"`
Role string `json:"role"`
Token string `json:"token"`
} `json:"targets,omitempty"`
WindowTitle *string `json:"window_title,omitempty"`
} `json:"desktop,omitempty"`
// Missing Facts the host could not collect and that the decision depends on.
Missing *[]string `json:"missing,omitempty"`
Patch *string `json:"patch,omitempty"`
// Screenshot The window, screen or page the host captured just before a browser or desktop action. Shown only to the approver; the judge model does not see it.
Screenshot *struct {
// Data Base64 image bytes, at most 2 MiB decoded.
Data string `json:"data"`
Height int `json:"height"`
MediaType RuntimePermissionEvidenceScreenshotMediaType `json:"media_type"`
Width int `json:"width"`
} `json:"screenshot,omitempty"`
Script *struct {
Body string `json:"body"`
Path string `json:"path"`
Sha256 *string `json:"sha256,omitempty"`
} `json:"script,omitempty"`
}
// RuntimePermissionEvidenceScreenshotMediaType defines model for RuntimePermissionEvidence.Screenshot.MediaType.
type RuntimePermissionEvidenceScreenshotMediaType string
// RuntimePermissionReviewResult defines model for RuntimePermissionReviewResult.
type RuntimePermissionReviewResult struct {
// Decision unavailable means the judge failed; the Runtime must not run the call.
Decision RuntimePermissionReviewResultDecision `json:"decision"`
// InteractionId The approval card, for needs_approval.
InteractionId *string `json:"interaction_id,omitempty"`
// Message Text shown to the Runtime model when the call does not run. Empty for allow.
Message string `json:"message"`
PolicyVersion string `json:"policy_version"`
}
// RuntimePermissionReviewResultDecision unavailable means the judge failed; the Runtime must not run the call.
type RuntimePermissionReviewResultDecision string
// RuntimePermissionTranscriptEntry defines model for RuntimePermissionTranscriptEntry.
type RuntimePermissionTranscriptEntry struct {
Kind RuntimePermissionTranscriptEntryKind `json:"kind"`
Text string `json:"text"`
Tool *string `json:"tool,omitempty"`
Truncated *bool `json:"truncated,omitempty"`
}
// RuntimePermissionTranscriptEntryKind defines model for RuntimePermissionTranscriptEntry.Kind.
type RuntimePermissionTranscriptEntryKind string
// SetAgentExecutionContextResidencyRequest defines model for SetAgentExecutionContextResidencyRequest.
type SetAgentExecutionContextResidencyRequest struct {
ContextKey AgentRuntimeContextKey `json:"context_key"`
ExpectedRevision AgentRuntimePositiveInt64 `json:"expected_revision"`
TargetResidency SetAgentExecutionContextResidencyRequestTargetResidency `json:"target_residency"`
}
// SetAgentExecutionContextResidencyRequestTargetResidency defines model for SetAgentExecutionContextResidencyRequest.TargetResidency.
type SetAgentExecutionContextResidencyRequestTargetResidency string
// SkillIdentifier Stable, case-sensitive logical Skill identifier.
type SkillIdentifier = string
// SkillManifestIdentifier Immutable, case-sensitive Skill Manifest identifier.
type SkillManifestIdentifier = string
// StartAgentServiceEpochRequest defines model for StartAgentServiceEpochRequest.
type StartAgentServiceEpochRequest struct {
// Epoch The epoch a starting Agent Service process opened. Every Runtime write names it; a write naming an earlier epoch is rejected with CONTEXT_FENCED.
Epoch AgentServiceEpoch `json:"epoch"`
}
// StoredAgentRuntimeInput defines model for StoredAgentRuntimeInput.
type StoredAgentRuntimeInput struct {
CreatedAt *time.Time `json:"created_at,omitempty"`
InputId string `json:"input_id"`
LocalRunId *string `json:"local_run_id,omitempty"`
Payload map[string]interface{} `json:"payload"`
SelectionResult *map[string]interface{} `json:"selection_result,omitempty"`
Sequence AgentRuntimePositiveInt64 `json:"sequence"`
SourceInboxId *string `json:"source_inbox_id,omitempty"`
SourceKind StoredAgentRuntimeInputSourceKind `json:"source_kind"`
SourceMessageId *string `json:"source_message_id,omitempty"`
Status StoredAgentRuntimeInputStatus `json:"status"`
SteerGroupId *string `json:"steer_group_id,omitempty"`
SteerOutcome *StoredAgentRuntimeInputSteerOutcome `json:"steer_outcome,omitempty"`
}
// StoredAgentRuntimeInputSourceKind defines model for StoredAgentRuntimeInput.SourceKind.
type StoredAgentRuntimeInputSourceKind string
// StoredAgentRuntimeInputStatus defines model for StoredAgentRuntimeInput.Status.
type StoredAgentRuntimeInputStatus string
// StoredAgentRuntimeInputSteerOutcome defines model for StoredAgentRuntimeInput.SteerOutcome.
type StoredAgentRuntimeInputSteerOutcome string
// SubmitAgentTrustedTurnRequest defines model for SubmitAgentTrustedTurnRequest.
type SubmitAgentTrustedTurnRequest struct {
ContextKey AgentRuntimeContextKey `json:"context_key"`
// Epoch The epoch a starting Agent Service process opened. Every Runtime write names it; a write naming an earlier epoch is rejected with CONTEXT_FENCED.
Epoch AgentServiceEpoch `json:"epoch"`
Inputs []AgentRuntimeInput `json:"inputs"`
}
// SubmitAgentTrustedTurnResult defines model for SubmitAgentTrustedTurnResult.
type SubmitAgentTrustedTurnResult struct {
// Context The Context state the accepting transaction committed. The Agent Service applies it to its Context record instead of reading the Context again.
Context *AgentRuntimeAcceptedContextState `json:"context,omitempty"`
// Created True only when this request created the Local Run; false when its inputs already had one.
Created *bool `json:"created,omitempty"`
RunId string `json:"run_id"`
}
// TaskAttemptPolicyV1 defines model for TaskAttemptPolicyV1.
type TaskAttemptPolicyV1 struct {
MaxRetries int `json:"max_retries"`
PolicyVersion int `json:"policy_version"`
RetryOnAgentFailure bool `json:"retry_on_agent_failure"`
RetryOnTimeout bool `json:"retry_on_timeout"`
TimeoutSeconds int `json:"timeout_seconds"`
}
// TaskAttemptSummary defines model for TaskAttemptSummary.
type TaskAttemptSummary struct {
AttemptNumber int64 `json:"attempt_number"`
// CreatedAt UTC timestamp in RFC 3339 format with an explicit offset.
CreatedAt Timestamp `json:"created_at"`
CurrentInputRevision int64 `json:"current_input_revision"`
// DeadlineAt UTC timestamp in RFC 3339 format with an explicit offset.
DeadlineAt *Timestamp `json:"deadline_at,omitempty"`
// FinishedAt UTC timestamp in RFC 3339 format with an explicit offset.
FinishedAt *Timestamp `json:"finished_at,omitempty"`
// Id Opaque, case-sensitive identifier. Clients must not infer type or time from it.
Id Id `json:"id"`
Status TaskAttemptSummaryStatus `json:"status"`
StopReasonCode *string `json:"stop_reason_code,omitempty"`
}
// TaskAttemptSummaryStatus defines model for TaskAttemptSummary.Status.
type TaskAttemptSummaryStatus string
// TaskEffect defines model for TaskEffect.
type TaskEffect struct {
// CompletedAt UTC timestamp in RFC 3339 format with an explicit offset.
CompletedAt *Timestamp `json:"completed_at,omitempty"`
// CreatedAt UTC timestamp in RFC 3339 format with an explicit offset.
CreatedAt Timestamp `json:"created_at"`
DispatchSequence int64 `json:"dispatch_sequence"`
Error *string `json:"error,omitempty"`
// Id Opaque, case-sensitive identifier. Clients must not infer type or time from it.
Id Id `json:"id"`
Observation *map[string]interface{} `json:"observation,omitempty"`
Operation TaskEffectOperation `json:"operation"`
Payload map[string]interface{} `json:"payload"`
PayloadHash string `json:"payload_hash"`
RootOperationId string `json:"root_operation_id"`
Status TaskEffectStatus `json:"status"`
}
// TaskEffectOperation defines model for TaskEffect.Operation.
type TaskEffectOperation string
// TaskEffectStatus defines model for TaskEffect.Status.
type TaskEffectStatus string
// TaskExecution defines model for TaskExecution.
type TaskExecution struct {
ControlRevision int64 `json:"control_revision"`
ControlSettledRevision int64 `json:"control_settled_revision"`
CurrentAttempt *TaskAttemptSummary `json:"current_attempt,omitempty"`
DesiredControl TaskExecutionDesiredControl `json:"desired_control"`
ExecutionFacts []TaskExecutionFact `json:"execution_facts"`
ExecutionRevision int64 `json:"execution_revision"`
// ExecutionUpdatedAt UTC timestamp in RFC 3339 format with an explicit offset.
ExecutionUpdatedAt Timestamp `json:"execution_updated_at"`
Generation int64 `json:"generation"`
Participants []TaskExecutionParticipant `json:"participants"`
PendingEffects []TaskEffect `json:"pending_effects"`
ReasonCode *string `json:"reason_code,omitempty"`
RunSpec TaskRunSpecV1 `json:"run_spec"`
// Status A delegated Task's state. None is terminal: a Meta message wakes every state but running.
Status TaskExecutionStatus `json:"status"`
// TaskId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
TaskId Id `json:"task_id"`
}
// TaskExecutionDesiredControl defines model for TaskExecution.DesiredControl.
type TaskExecutionDesiredControl string
// TaskExecutionFact defines model for TaskExecutionFact.
type TaskExecutionFact struct {
ControlSettledRevision int64 `json:"control_settled_revision"`
// CreatedAt UTC timestamp in RFC 3339 format with an explicit offset.
CreatedAt Timestamp `json:"created_at"`
ExecutionRevision int64 `json:"execution_revision"`
// ExecutionStatus A delegated Task's state. None is terminal: a Meta message wakes every state but running.
ExecutionStatus TaskExecutionStatus `json:"execution_status"`
FactKind TaskExecutionFactFactKind `json:"fact_kind"`
// Id Opaque, case-sensitive identifier. Clients must not infer type or time from it.
Id Id `json:"id"`
Payload map[string]interface{} `json:"payload"`
ReasonCode *string `json:"reason_code,omitempty"`
}
// TaskExecutionFactFactKind defines model for TaskExecutionFact.FactKind.
type TaskExecutionFactFactKind string
// TaskExecutionParticipant defines model for TaskExecutionParticipant.
type TaskExecutionParticipant struct {
// ActorId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
ActorId Id `json:"actor_id"`
// AgentId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
AgentId Id `json:"agent_id"`
ExecutionContextRef map[string]interface{} `json:"execution_context_ref"`
}
// TaskExecutionStatus A delegated Task's state. None is terminal: a Meta message wakes every state but running.
type TaskExecutionStatus string
// TaskProgressSnapshot defines model for TaskProgressSnapshot.
type TaskProgressSnapshot struct {
// AgentLastSpokeAt The Agent's latest ordinary message in the Room; absent when it never spoke there.
AgentLastSpokeAt *time.Time `json:"agent_last_spoke_at,omitempty"`
// LiveForeground A Live call coordinates this Meta's work now; tasks is then empty and nothing else is read.
LiveForeground bool `json:"live_foreground"`
// Tasks Tasks this Meta Context coordinates that are running or waiting for an approval, oldest first.
Tasks []TaskProgressTask `json:"tasks"`
}
// TaskProgressStep defines model for TaskProgressStep.
type TaskProgressStep struct {
// At When the Run first reported this step.
At time.Time `json:"at"`
Title string `json:"title"`
}
// TaskProgressTask defines model for TaskProgressTask.
type TaskProgressTask struct {
// LastReportAt Absent before the Task's first report to its coordinator.
LastReportAt *time.Time `json:"last_report_at,omitempty"`
LatestStep *TaskProgressStep `json:"latest_step,omitempty"`
PendingApprovals int `json:"pending_approvals"`
Status TaskProgressTaskStatus `json:"status"`
StatusSince time.Time `json:"status_since"`
TaskId string `json:"task_id"`
Title string `json:"title"`
}
// TaskProgressTaskStatus defines model for TaskProgressTask.Status.
type TaskProgressTaskStatus string
// TaskRunSpecV1 defines model for TaskRunSpecV1.
type TaskRunSpecV1 struct {
AttemptPolicy TaskAttemptPolicyV1 `json:"attempt_policy"`
// ResultAgentActorId The Actor of the Agent whose AlterEgo runs the Task.
ResultAgentActorId Id `json:"result_agent_actor_id"`
SchemaVersion int `json:"schema_version"`
}
// TaskWorkerClaimRequest defines model for TaskWorkerClaimRequest.
type TaskWorkerClaimRequest struct {
LeaseSeconds int `json:"lease_seconds"`
WorkerId string `json:"worker_id"`
}
// TaskWorkerExecution defines model for TaskWorkerExecution.
type TaskWorkerExecution struct {
Execution TaskExecution `json:"execution"`
Lease *TaskWorkerLease `json:"lease,omitempty"`
}
// TaskWorkerHeartbeatRequest defines model for TaskWorkerHeartbeatRequest.
type TaskWorkerHeartbeatRequest struct {
LeaseGeneration int64 `json:"lease_generation"`
LeaseSeconds int `json:"lease_seconds"`
WorkerId string `json:"worker_id"`
}
// TaskWorkerLease defines model for TaskWorkerLease.
type TaskWorkerLease struct {
// LeaseExpiresAt UTC timestamp in RFC 3339 format with an explicit offset.
LeaseExpiresAt Timestamp `json:"lease_expires_at"`
LeaseGeneration int64 `json:"lease_generation"`
LeaseToken string `json:"lease_token"`
// TaskId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
TaskId Id `json:"task_id"`
WorkerId string `json:"worker_id"`
}
// TaskWorkerTransitionRequest defines model for TaskWorkerTransitionRequest.
type TaskWorkerTransitionRequest struct {
ExecutionGeneration int64 `json:"execution_generation"`
ExpectedControlRevision *int64 `json:"expected_control_revision,omitempty"`
ExpectedExecutionRevision int64 `json:"expected_execution_revision"`
LeaseGeneration int64 `json:"lease_generation"`
OperationId *string `json:"operation_id,omitempty"`
Payload *map[string]interface{} `json:"payload,omitempty"`
Transition TaskWorkerTransitionRequestTransition `json:"transition"`
WorkerId string `json:"worker_id"`
}
// TaskWorkerTransitionRequestTransition defines model for TaskWorkerTransitionRequest.Transition.
type TaskWorkerTransitionRequestTransition string
// Timestamp UTC timestamp in RFC 3339 format with an explicit offset.
type Timestamp = time.Time
// TouchAgentRuntimeLocalComputerRequest defines model for TouchAgentRuntimeLocalComputerRequest.
type TouchAgentRuntimeLocalComputerRequest struct {
// ActiveOperations Operations running on the Computer; an offline Computer runs none.
ActiveOperations *int `json:"active_operations,omitempty"`
// ComputerId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
ComputerId Id `json:"computer_id"`
DaemonVersion *string `json:"daemon_version,omitempty"`
RecommendedVersion *string `json:"recommended_version,omitempty"`
RuntimeDiagnostics *[]map[string]interface{} `json:"runtime_diagnostics,omitempty"`
Runtimes *[]TouchAgentRuntimeLocalComputerRequestRuntimes `json:"runtimes,omitempty"`
SeenAt time.Time `json:"seen_at"`
// Status upgrade_required records a Computer that must be reinstalled; an offline touch with daemon_version records one updating itself.
Status TouchAgentRuntimeLocalComputerRequestStatus `json:"status"`
}
// TouchAgentRuntimeLocalComputerRequestRuntimes defines model for TouchAgentRuntimeLocalComputerRequest.Runtimes.
type TouchAgentRuntimeLocalComputerRequestRuntimes string
// TouchAgentRuntimeLocalComputerRequestStatus upgrade_required records a Computer that must be reinstalled; an offline touch with daemon_version records one updating itself.
type TouchAgentRuntimeLocalComputerRequestStatus string
// TrackingItem defines model for TrackingItem.
type TrackingItem struct {
Content string `json:"content"`
CreatedAt time.Time `json:"created_at"`
DueAt *time.Time `json:"due_at"`
DueText *string `json:"due_text"`
Id string `json:"id"`
Kind TrackingItemKind `json:"kind"`
Revision int64 `json:"revision"`
Routines []struct {
Purpose string `json:"purpose"`
RoutineId string `json:"routine_id"`
} `json:"routines"`
SourceDate openapi_types.Date `json:"source_date"`
SourceRef string `json:"source_ref"`
SourceTimezone string `json:"source_timezone"`
Status TrackingItemStatus `json:"status"`
UpdatedAt time.Time `json:"updated_at"`
}
// TrackingItemKind defines model for TrackingItem.Kind.
type TrackingItemKind string
// TrackingItemStatus defines model for TrackingItem.Status.
type TrackingItemStatus string
// TrackingItemChanges defines model for TrackingItemChanges.
type TrackingItemChanges struct {
Create []TrackingItemCreate `json:"create"`
Delete []TrackingItemVersion `json:"delete"`
Prune bool `json:"prune"`
Update []TrackingItemUpdate `json:"update"`
}
// TrackingItemCreate defines model for TrackingItemCreate.
type TrackingItemCreate struct {
Content string `json:"content"`
DueAt *time.Time `json:"due_at"`
DueText *string `json:"due_text"`
IdempotencyKey string `json:"idempotency_key"`
Kind TrackingItemCreateKind `json:"kind"`
SourceDate openapi_types.Date `json:"source_date"`
SourceRef string `json:"source_ref"`
SourceTimezone string `json:"source_timezone"`
}
// TrackingItemCreateKind defines model for TrackingItemCreate.Kind.
type TrackingItemCreateKind string
// TrackingItemFields defines model for TrackingItemFields.
type TrackingItemFields struct {
Content string `json:"content"`
DueAt *time.Time `json:"due_at"`
DueText *string `json:"due_text"`
Kind TrackingItemFieldsKind `json:"kind"`
SourceDate openapi_types.Date `json:"source_date"`
SourceRef string `json:"source_ref"`
SourceTimezone string `json:"source_timezone"`
}
// TrackingItemFieldsKind defines model for TrackingItemFields.Kind.
type TrackingItemFieldsKind string
// TrackingItemList defines model for TrackingItemList.
type TrackingItemList struct {
Cursor *string `json:"cursor,omitempty"`
IncludeClosed *bool `json:"include_closed,omitempty"`
Limit *int `json:"limit,omitempty"`
}
// TrackingItemPage defines model for TrackingItemPage.
type TrackingItemPage struct {
Items []TrackingItem `json:"items"`
NextCursor string `json:"next_cursor"`
}
// TrackingItemPlanRequest defines model for TrackingItemPlanRequest.
type TrackingItemPlanRequest struct {
// ItemIds New or changed open Tracking Items whose Routines AnotherMe should plan.
ItemIds []string `json:"item_ids"`
}
// TrackingItemResult defines model for TrackingItemResult.
type TrackingItemResult struct {
Deleted []string `json:"deleted"`
Items []TrackingItem `json:"items"`
}
// TrackingItemUpdate defines model for TrackingItemUpdate.
type TrackingItemUpdate struct {
Content string `json:"content"`
DueAt *time.Time `json:"due_at"`
DueText *string `json:"due_text"`
ExpectedRevision int64 `json:"expected_revision"`
Id string `json:"id"`
Kind TrackingItemUpdateKind `json:"kind"`
SourceDate openapi_types.Date `json:"source_date"`
SourceRef string `json:"source_ref"`
SourceTimezone string `json:"source_timezone"`
Status TrackingItemUpdateStatus `json:"status"`
}
// TrackingItemUpdateKind defines model for TrackingItemUpdate.Kind.
type TrackingItemUpdateKind string
// TrackingItemUpdateStatus defines model for TrackingItemUpdate.Status.
type TrackingItemUpdateStatus string
// TrackingItemVersion defines model for TrackingItemVersion.
type TrackingItemVersion struct {
ExpectedRevision int64 `json:"expected_revision"`
Id string `json:"id"`
}
// UserMemoryRevision The represented Human's current memory.md, maintained by Memory from the Profile and nightly dreaming. Standing preferences and reference data; the current conversation's explicit requests take precedence.
type UserMemoryRevision struct {
Markdown string `json:"markdown"`
Version int `json:"version"`
}
// VoiceError defines model for VoiceError.
type VoiceError struct {
Code string `json:"code"`
Message string `json:"message"`
}
// VoiceId defines model for VoiceId.
type VoiceId = string
// VoiceLiveAlert defines model for VoiceLiveAlert.
type VoiceLiveAlert struct {
AlertId VoiceId `json:"alert_id"`
// Text The event as outside data, never instructions.
Text string `json:"text"`
}
// VoiceLiveContext defines model for VoiceLiveContext.
type VoiceLiveContext struct {
AgentName string `json:"agent_name"`
History []VoiceLiveContextMessage `json:"history"`
Instructions string `json:"instructions"`
RoomId VoiceId `json:"room_id"`
Tools []VoiceLiveTool `json:"tools"`
}
// VoiceLiveContextMessage defines model for VoiceLiveContextMessage.
type VoiceLiveContextMessage struct {
Role VoiceLiveContextMessageRole `json:"role"`
Text string `json:"text"`
}
// VoiceLiveContextMessageRole defines model for VoiceLiveContextMessage.Role.
type VoiceLiveContextMessageRole string
// VoiceLiveReply defines model for VoiceLiveReply.
type VoiceLiveReply struct {
EventId VoiceId `json:"event_id"`
Interrupted *bool `json:"interrupted,omitempty"`
Text string `json:"text"`
TurnId VoiceId `json:"turn_id"`
VoiceSessionId VoiceId `json:"voice_session_id"`
}
// VoiceLiveReplyReceipt defines model for VoiceLiveReplyReceipt.
type VoiceLiveReplyReceipt struct {
EventId VoiceId `json:"event_id"`
MessageId *VoiceId `json:"message_id,omitempty"`
Status VoiceLiveReplyReceiptStatus `json:"status"`
}
// VoiceLiveReplyReceiptStatus defines model for VoiceLiveReplyReceipt.Status.
type VoiceLiveReplyReceiptStatus string
// VoiceLiveTask defines model for VoiceLiveTask.
type VoiceLiveTask struct {
Goal string `json:"goal"`
// Replies The Task's latest final reply, when it gave one.
Replies []VoiceLiveTaskReply `json:"replies"`
// StartedInThisCall Whether this call started the task. Tasks from earlier calls are background, not news, even after Voice Runtime restarts mid-call.
StartedInThisCall bool `json:"started_in_this_call"`
// State The state of the task's delegated Task. pending until it starts, working while it runs, waiting_for_approval while an approval card it raised is pending, reported when its turn ended with a report (a result, or what it needs from the user; the live voice decides which), then failed or canceled. An answer to the task starts it working again.
State VoiceLiveTaskState `json:"state"`
Surface VoiceLiveTaskSurface `json:"surface"`
// TaskId The short handle the live model uses, such as t1.
TaskId string `json:"task_id"`
}
// VoiceLiveTaskState The state of the task's delegated Task. pending until it starts, working while it runs, waiting_for_approval while an approval card it raised is pending, reported when its turn ended with a report (a result, or what it needs from the user; the live voice decides which), then failed or canceled. An answer to the task starts it working again.
type VoiceLiveTaskState string
// VoiceLiveTaskSurface defines model for VoiceLiveTask.Surface.
type VoiceLiveTaskSurface string
// VoiceLiveTaskList defines model for VoiceLiveTaskList.
type VoiceLiveTaskList struct {
// Alerts Events from the user's connected apps that proactive reminders judged worth telling now and that wait for this call to end; the live voice tells them during the call.
Alerts *[]VoiceLiveAlert `json:"alerts,omitempty"`
Tasks []VoiceLiveTask `json:"tasks"`
}
// VoiceLiveTaskReply defines model for VoiceLiveTaskReply.
type VoiceLiveTaskReply struct {
// Delivered The report and chosen files have been committed as an Agent message; this is not an audio-heard receipt.
Delivered *bool `json:"delivered,omitempty"`
MessageId VoiceId `json:"message_id"`
// Text A report the Task's turn ended with, as its coordinator gets it: a result, or what it needs from the user.
Text string `json:"text"`
}
// VoiceLiveTool defines model for VoiceLiveTool.
type VoiceLiveTool struct {
Description string `json:"description"`
Name string `json:"name"`
// Parameters JSON Schema object for the tool arguments.
Parameters map[string]interface{} `json:"parameters"`
}
// VoiceLiveToolCall defines model for VoiceLiveToolCall.
type VoiceLiveToolCall struct {
// Arguments JSON object text produced by the live model.
Arguments string `json:"arguments"`
CallId string `json:"call_id"`
Name string `json:"name"`
TurnId VoiceId `json:"turn_id"`
VoiceSessionId VoiceId `json:"voice_session_id"`
}
// VoiceLiveToolResult defines model for VoiceLiveToolResult.
type VoiceLiveToolResult struct {
CallId string `json:"call_id"`
// Output JSON text returned to the live model.
Output string `json:"output"`
}
// VoiceMediaEpochClaim defines model for VoiceMediaEpochClaim.
type VoiceMediaEpochClaim struct {
MediaEpoch int `json:"media_epoch"`
}
// VoiceMediaObjectKey defines model for VoiceMediaObjectKey.
type VoiceMediaObjectKey = string
// VoiceObservation defines model for VoiceObservation.
type VoiceObservation struct {
CommittedThroughMs *int64 `json:"committed_through_ms,omitempty"`
EndOffsetMs int64 `json:"end_offset_ms"`
EventId VoiceId `json:"event_id"`
// Kind publisher_absent reports an interval on the VoiceSession clock in which no browser published microphone audio: the previous input ended cleanly (track_ended) and a higher publisher generation delivered its first frame more than 250ms later. TeamHub records the part inside a recording Capture as an unrecoverable media gap; the recorder archived only filler silence there. input_gap reports an unconfirmed ASR interval after buffered replay was exhausted. Archive media may still be complete. track_started/track_ended describe physical tracks, not provider connection retries. For progress and track_ended, start_offset_ms is the start of this ASR attempt's coverage.
Kind ObservationKind `json:"kind"`
Lane ObservationLane `json:"lane"`
MediaEpoch int `json:"media_epoch"`
// SpeakerId Session-scoped anonymous speaker cluster. Omitted when the provider did not label this window.
SpeakerId *string `json:"speaker_id,omitempty"`
StartOffsetMs int64 `json:"start_offset_ms"`
Text *string `json:"text,omitempty"`
VoiceSessionId VoiceId `json:"voice_session_id"`
}
// VoiceObservationReceipt defines model for VoiceObservationReceipt.
type VoiceObservationReceipt struct {
EventId VoiceId `json:"event_id"`
Status VoiceObservationReceiptStatus `json:"status"`
}
// VoiceObservationReceiptStatus defines model for VoiceObservationReceipt.Status.
type VoiceObservationReceiptStatus string
// VoiceRecordingReport defines model for VoiceRecordingReport.
type VoiceRecordingReport struct {
ArchivedThroughMs int64 `json:"archived_through_ms"`
FailureCode *string `json:"failure_code,omitempty"`
StagingPrefix string `json:"staging_prefix"`
// StartedAt Wall-clock time of the first archived sample. Required for active and available.
StartedAt *time.Time `json:"started_at,omitempty"`
// State active once the first sample is archived; available after the sealed playlist is stored; failed when this recorder can no longer extend the epoch, including a handover.
State VoiceRecordingReportState `json:"state"`
}
// VoiceRecordingReportState active once the first sample is archived; available after the sealed playlist is stored; failed when this recorder can no longer extend the epoch, including a handover.
type VoiceRecordingReportState string
// VoiceRuntimeProviderKeys defines model for VoiceRuntimeProviderKeys.
type VoiceRuntimeProviderKeys struct {
SonioxApiKey *string `json:"soniox_api_key,omitempty"`
XaiApiKey *string `json:"xai_api_key,omitempty"`
}
// WorkItemCommentCreateRequest Concatenating segment content in order must equal body.
type WorkItemCommentCreateRequest struct {
Body string `json:"body"`
Segments []WorkItemCommentSegment `json:"segments"`
}
// WorkItemCommentReferenceSegment defines model for WorkItemCommentReferenceSegment.
type WorkItemCommentReferenceSegment struct {
// ActorId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
ActorId Id `json:"actor_id"`
Content string `json:"content"`
Type string `json:"type"`
}
// WorkItemCommentSegment defines model for WorkItemCommentSegment.
type WorkItemCommentSegment struct {
union json.RawMessage
}
// WorkItemCommentTextSegment defines model for WorkItemCommentTextSegment.
type WorkItemCommentTextSegment struct {
Content string `json:"content"`
Type string `json:"type"`
}
// WorkItemCommentUpdateRequest Replaces the complete content; concatenating segment content must equal body.
type WorkItemCommentUpdateRequest struct {
Body string `json:"body"`
ExpectedVersion int64 `json:"expected_version"`
Segments []WorkItemCommentSegment `json:"segments"`
}
// WorkItemKind defines model for WorkItemKind.
type WorkItemKind string
// WorkItemPriority defines model for WorkItemPriority.
type WorkItemPriority string
// WorkItemResolution defines model for WorkItemResolution.
type WorkItemResolution string
// WorkItemState defines model for WorkItemState.
type WorkItemState string
// WorkItemTransitionRequest defines model for WorkItemTransitionRequest.
type WorkItemTransitionRequest struct {
ExpectedVersion int64 `json:"expected_version"`
Resolution *WorkItemResolution `json:"resolution,omitempty"`
State WorkItemState `json:"state"`
}
// WorkItemVersionRequest defines model for WorkItemVersionRequest.
type WorkItemVersionRequest struct {
ExpectedVersion int64 `json:"expected_version"`
}
// ActorId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
type ActorId = Id
// AgentId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
type AgentId = Id
// ContextKey defines model for ContextKey.
type ContextKey = AgentRuntimeContextKey
// DocumentId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
type DocumentId = Id
// DocumentVersionId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
type DocumentVersionId = Id
// Limit defines model for Limit.
type Limit = int
// LocalRunId defines model for LocalRunId.
type LocalRunId = string
// McpAgentId defines model for McpAgentId.
type McpAgentId = string
// PersonalWikiDocumentRevisionId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
type PersonalWikiDocumentRevisionId = Id
// RoomId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
type RoomId = Id
// TaskId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
type TaskId = Id
// TenantId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
type TenantId = Id
// WorkItemCommentId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
type WorkItemCommentId = Id
// WorkItemId Opaque, case-sensitive identifier. Clients must not infer type or time from it.
type WorkItemId = Id
// BadRequest defines model for BadRequest.
type BadRequest = ErrorResponse
// Conflict defines model for Conflict.
type Conflict = ErrorResponse
// Forbidden defines model for Forbidden.
type Forbidden = ErrorResponse
// InboxNotAuthorized defines model for InboxNotAuthorized.
type InboxNotAuthorized = ErrorResponse
// InternalError defines model for InternalError.
type InternalError = ErrorResponse
// McpContextBadRequest Standard failure envelope for every TeamHub MCP Context internal operation.
type McpContextBadRequest = McpContextErrorEnvelope
// McpContextConflict Standard failure envelope for every TeamHub MCP Context internal operation.
type McpContextConflict = McpContextErrorEnvelope
// McpContextForbidden Standard failure envelope for every TeamHub MCP Context internal operation.
type McpContextForbidden = McpContextErrorEnvelope
// McpContextInternalError Standard failure envelope for every TeamHub MCP Context internal operation.
type McpContextInternalError = McpContextErrorEnvelope
// McpContextNotFound Standard failure envelope for every TeamHub MCP Context internal operation.
type McpContextNotFound = McpContextErrorEnvelope
// McpContextUnauthenticated Standard failure envelope for every TeamHub MCP Context internal operation.
type McpContextUnauthenticated = McpContextErrorEnvelope
// NotFound defines model for NotFound.
type NotFound = ErrorResponse
// ServiceUnavailable defines model for ServiceUnavailable.
type ServiceUnavailable = ErrorResponse
// Unauthenticated defines model for Unauthenticated.
type Unauthenticated = ErrorResponse
// VoiceBadRequest defines model for VoiceBadRequest.
type VoiceBadRequest = VoiceError
// VoiceConflict defines model for VoiceConflict.
type VoiceConflict = VoiceError
// VoiceNotFound defines model for VoiceNotFound.
type VoiceNotFound = VoiceError
// VoiceUnauthenticated defines model for VoiceUnauthenticated.
type VoiceUnauthenticated = VoiceError
// agentBearerContextKey is the context key for agentBearer security scheme
type agentBearerContextKey string
// agentServiceToTeamHubBearerContextKey is the context key for agentServiceToTeamHubBearer security scheme
type agentServiceToTeamHubBearerContextKey string
// memoryServiceBearerContextKey is the context key for memoryServiceBearer security scheme
type memoryServiceBearerContextKey string
// serviceBearerContextKey is the context key for serviceBearer security scheme
type serviceBearerContextKey string
// voiceRuntimeBearerContextKey is the context key for voiceRuntimeBearer security scheme
type voiceRuntimeBearerContextKey string
// PutVoiceMediaObjectParams defines parameters for PutVoiceMediaObject.
type PutVoiceMediaObjectParams struct {
Key VoiceMediaObjectKey `form:"key" json:"key"`
}
// ListAnotherMePlacementsParams defines parameters for ListAnotherMePlacements.
type ListAnotherMePlacementsParams struct {
TenantId *Id `form:"tenant_id,omitempty" json:"tenant_id,omitempty"`
OwnerActorId *Id `form:"owner_actor_id,omitempty" json:"owner_actor_id,omitempty"`
}
// GetAgentRuntimeConfigSnapshotParams defines parameters for GetAgentRuntimeConfigSnapshot.
type GetAgentRuntimeConfigSnapshotParams struct {
AgentId Id `form:"agent_id" json:"agent_id"`
Revision *AgentRuntimePositiveInt64 `form:"revision,omitempty" json:"revision,omitempty"`
}
// GetAgentExecutionContextParams defines parameters for GetAgentExecutionContext.
type GetAgentExecutionContextParams struct {
ContextKey ContextKey `form:"context_key" json:"context_key"`
}
// ListAgentExecutionContextsParams defines parameters for ListAgentExecutionContexts.
type ListAgentExecutionContextsParams struct {
AgentId *string `form:"agent_id,omitempty" json:"agent_id,omitempty"`
}
// GetAgentRuntimeDeletionSnapshotParams defines parameters for GetAgentRuntimeDeletionSnapshot.
type GetAgentRuntimeDeletionSnapshotParams struct {
AgentId Id `form:"agent_id" json:"agent_id"`
}
// GetAgentRuntimeLocalComputerParams defines parameters for GetAgentRuntimeLocalComputer.
type GetAgentRuntimeLocalComputerParams struct {
ComputerId Id `form:"computer_id" json:"computer_id"`
}
// GetAgentLocalRunParams defines parameters for GetAgentLocalRun.
type GetAgentLocalRunParams struct {
ContextKey ContextKey `form:"context_key" json:"context_key"`
LocalRunId LocalRunId `form:"local_run_id" json:"local_run_id"`
}
// GetAgentLocalRunReplyStatusParams defines parameters for GetAgentLocalRunReplyStatus.
type GetAgentLocalRunReplyStatusParams struct {
ContextKey ContextKey `form:"context_key" json:"context_key"`
LocalRunId LocalRunId `form:"local_run_id" json:"local_run_id"`
}
// GetAgentRuntimeSessionParams defines parameters for GetAgentRuntimeSession.
type GetAgentRuntimeSessionParams struct {
ContextKey ContextKey `form:"context_key" json:"context_key"`
}
// GetAgentRuntimeWorkStateParams defines parameters for GetAgentRuntimeWorkState.
type GetAgentRuntimeWorkStateParams struct {
ContextKey ContextKey `form:"context_key" json:"context_key"`
}
// ResolveAgentParticipantTaskByWorkRoomParams defines parameters for ResolveAgentParticipantTaskByWorkRoom.
type ResolveAgentParticipantTaskByWorkRoomParams struct {
// WorkRoomId Exact Work Room whose managed Task execution identity is requested.
WorkRoomId Id `form:"work_room_id" json:"work_room_id"`
}
// ListAgentWorkItemsParams defines parameters for ListAgentWorkItems.
type ListAgentWorkItemsParams struct {
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
State *WorkItemState `form:"state,omitempty" json:"state,omitempty"`
Archived *bool `form:"archived,omitempty" json:"archived,omitempty"`
// WorkRoomId Return only Work Items linked to this Work Room.
WorkRoomId *Id `form:"work_room_id,omitempty" json:"work_room_id,omitempty"`
}
// CreateAgentWorkItemParams defines parameters for CreateAgentWorkItem.
type CreateAgentWorkItemParams struct {
// IdempotencyKey Reusing the same key with the same canonical request returns the original result. Reusing it with different input returns 409 IDEMPOTENCY_KEY_REUSED.
IdempotencyKey IdempotencyKey `json:"Idempotency-Key"`
}
// ListAgentWorkItemCommentsParams defines parameters for ListAgentWorkItemComments.
type ListAgentWorkItemCommentsParams struct {
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
}
// CreateAgentWorkItemCommentParams defines parameters for CreateAgentWorkItemComment.
type CreateAgentWorkItemCommentParams struct {
// IdempotencyKey Reusing the same key with the same canonical request returns the original result. Reusing it with different input returns 409 IDEMPOTENCY_KEY_REUSED.
IdempotencyKey IdempotencyKey `json:"Idempotency-Key"`
}
// DeleteAgentWorkItemCommentParams defines parameters for DeleteAgentWorkItemComment.
type DeleteAgentWorkItemCommentParams struct {
// IdempotencyKey Reusing the same key with the same canonical request returns the original result. Reusing it with different input returns 409 IDEMPOTENCY_KEY_REUSED.
IdempotencyKey IdempotencyKey `json:"Idempotency-Key"`
}
// UpdateAgentWorkItemCommentParams defines parameters for UpdateAgentWorkItemComment.
type UpdateAgentWorkItemCommentParams struct {
// IdempotencyKey Reusing the same key with the same canonical request returns the original result. Reusing it with different input returns 409 IDEMPOTENCY_KEY_REUSED.
IdempotencyKey IdempotencyKey `json:"Idempotency-Key"`
}
// TransitionAgentWorkItemParams defines parameters for TransitionAgentWorkItem.
type TransitionAgentWorkItemParams struct {
// IdempotencyKey Reusing the same key with the same canonical request returns the original result. Reusing it with different input returns 409 IDEMPOTENCY_KEY_REUSED.
IdempotencyKey IdempotencyKey `json:"Idempotency-Key"`
}
// GetPersonalWikiDocumentRevisionParams defines parameters for GetPersonalWikiDocumentRevision.
type GetPersonalWikiDocumentRevisionParams struct {
// IfNoneMatch ETag of the complete cached representation; authorization and current state are checked first.
IfNoneMatch *string `json:"If-None-Match,omitempty"`
}
// GetTaskExecutionParams defines parameters for GetTaskExecution.
type GetTaskExecutionParams struct {
WorkerId string `form:"worker_id" json:"worker_id"`
LeaseGeneration int64 `form:"lease_generation" json:"lease_generation"`
// TaskLeaseToken Opaque lease secret; kept out of URLs and ordinary request bodies.
TaskLeaseToken string `json:"Task-Lease-Token"`
}
// HeartbeatTaskExecutionParams defines parameters for HeartbeatTaskExecution.
type HeartbeatTaskExecutionParams struct {
TaskLeaseToken string `json:"Task-Lease-Token"`
}
// TransitionTaskExecutionParams defines parameters for TransitionTaskExecution.
type TransitionTaskExecutionParams struct {
TaskLeaseToken string `json:"Task-Lease-Token"`
}
// IssueManagedAgentAccessCredentialJSONRequestBody defines body for IssueManagedAgentAccessCredential for application/json ContentType.
type IssueManagedAgentAccessCredentialJSONRequestBody = ManagedAgentAccessCredentialRequest
// ResolveMcpContextJSONRequestBody defines body for ResolveMcpContext for application/json ContentType.
type ResolveMcpContextJSONRequestBody = McpContextResolveRequest
// ReportVoiceLiveReplyJSONRequestBody defines body for ReportVoiceLiveReply for application/json ContentType.
type ReportVoiceLiveReplyJSONRequestBody = VoiceLiveReply
// ExecuteVoiceLiveToolCallJSONRequestBody defines body for ExecuteVoiceLiveToolCall for application/json ContentType.
type ExecuteVoiceLiveToolCallJSONRequestBody = VoiceLiveToolCall
// ReportVoiceObservationJSONRequestBody defines body for ReportVoiceObservation for application/json ContentType.
type ReportVoiceObservationJSONRequestBody = VoiceObservation
// ReportVoiceRecordingJSONRequestBody defines body for ReportVoiceRecording for application/json ContentType.
type ReportVoiceRecordingJSONRequestBody = VoiceRecordingReport
// CommitAgentMemoryJSONRequestBody defines body for CommitAgentMemory for application/json ContentType.
type CommitAgentMemoryJSONRequestBody = AgentMemoryDocument
// EnsureAgentExecutionContextJSONRequestBody defines body for EnsureAgentExecutionContext for application/json ContentType.
type EnsureAgentExecutionContextJSONRequestBody = EnsureAgentExecutionContextRequest
// DeleteAgentExecutionContextJSONRequestBody defines body for DeleteAgentExecutionContext for application/json ContentType.
type DeleteAgentExecutionContextJSONRequestBody = DeleteAgentExecutionContextRequest
// ReconcileAgentExecutionContextsJSONRequestBody defines body for ReconcileAgentExecutionContexts for application/json ContentType.
type ReconcileAgentExecutionContextsJSONRequestBody = ReconcileAgentExecutionContextsRequest
// SetAgentExecutionContextResidencyJSONRequestBody defines body for SetAgentExecutionContextResidency for application/json ContentType.
type SetAgentExecutionContextResidencyJSONRequestBody = SetAgentExecutionContextResidencyRequest
// StartAgentServiceEpochJSONRequestBody defines body for StartAgentServiceEpoch for application/json ContentType.
type StartAgentServiceEpochJSONRequestBody = StartAgentServiceEpochRequest
// CreateRuntimeHumanInteractionJSONRequestBody defines body for CreateRuntimeHumanInteraction for application/json ContentType.
type CreateRuntimeHumanInteractionJSONRequestBody = CreateRuntimeHumanInteractionRequest
// AcceptAgentRuntimeTrustedNotificationJSONRequestBody defines body for AcceptAgentRuntimeTrustedNotification for application/json ContentType.
type AcceptAgentRuntimeTrustedNotificationJSONRequestBody = AcceptAgentTrustedNotificationRequest
// ConnectAgentRuntimeLocalComputerJSONRequestBody defines body for ConnectAgentRuntimeLocalComputer for application/json ContentType.
type ConnectAgentRuntimeLocalComputerJSONRequestBody = ConnectAgentRuntimeLocalComputerRequest
// RecordAgentRuntimeLocalModelsJSONRequestBody defines body for RecordAgentRuntimeLocalModels for application/json ContentType.
type RecordAgentRuntimeLocalModelsJSONRequestBody = RecordLocalModelsRequest
// RemoveAgentRuntimeLocalComputerJSONRequestBody defines body for RemoveAgentRuntimeLocalComputer for application/json ContentType.
type RemoveAgentRuntimeLocalComputerJSONRequestBody = AgentRuntimeLocalComputerCredentialRequest
// TouchAgentRuntimeLocalComputerJSONRequestBody defines body for TouchAgentRuntimeLocalComputer for application/json ContentType.
type TouchAgentRuntimeLocalComputerJSONRequestBody = TouchAgentRuntimeLocalComputerRequest
// CreateRuntimePermissionReviewJSONRequestBody defines body for CreateRuntimePermissionReview for application/json ContentType.
type CreateRuntimePermissionReviewJSONRequestBody = CreateRuntimePermissionReviewRequest
// OfferAgentRuntimePresentationEventsJSONRequestBody defines body for OfferAgentRuntimePresentationEvents for application/json ContentType.
type OfferAgentRuntimePresentationEventsJSONRequestBody = OfferAgentRuntimePresentationEventsRequest
// CancelAgentLocalRunJSONRequestBody defines body for CancelAgentLocalRun for application/json ContentType.
type CancelAgentLocalRunJSONRequestBody = CancelAgentLocalRunRequest
// ClaimAgentLocalRunJSONRequestBody defines body for ClaimAgentLocalRun for application/json ContentType.
type ClaimAgentLocalRunJSONRequestBody = ClaimAgentLocalRunRequest
// FinishAgentLocalRunJSONRequestBody defines body for FinishAgentLocalRun for application/json ContentType.
type FinishAgentLocalRunJSONRequestBody = FinishAgentLocalRunRequest
// RecordAgentLocalRunOperationJSONRequestBody defines body for RecordAgentLocalRunOperation for application/json ContentType.
type RecordAgentLocalRunOperationJSONRequestBody = RecordAgentLocalRunOperationRequest
// RequeueAgentLocalRunJSONRequestBody defines body for RequeueAgentLocalRun for application/json ContentType.
type RequeueAgentLocalRunJSONRequestBody = RequeueAgentLocalRunRequest
// CheckpointAgentRuntimeSessionJSONRequestBody defines body for CheckpointAgentRuntimeSession for application/json ContentType.
type CheckpointAgentRuntimeSessionJSONRequestBody = CheckpointAgentRuntimeSessionRequest
// ClearAgentRuntimeSessionJSONRequestBody defines body for ClearAgentRuntimeSession for application/json ContentType.
type ClearAgentRuntimeSessionJSONRequestBody = ClearAgentRuntimeSessionRequest
// OpenAgentRuntimeStatusJSONRequestBody defines body for OpenAgentRuntimeStatus for application/json ContentType.
type OpenAgentRuntimeStatusJSONRequestBody = OpenAgentRuntimeStatusRequest
// AssignAgentRuntimeSteerRunJSONRequestBody defines body for AssignAgentRuntimeSteerRun for application/json ContentType.
type AssignAgentRuntimeSteerRunJSONRequestBody = AssignAgentSteerRunRequest
// CompleteAgentRuntimeSteerJSONRequestBody defines body for CompleteAgentRuntimeSteer for application/json ContentType.
type CompleteAgentRuntimeSteerJSONRequestBody = CompleteAgentSteerRequest
// EnqueueAgentRuntimeSteerJSONRequestBody defines body for EnqueueAgentRuntimeSteer for application/json ContentType.
type EnqueueAgentRuntimeSteerJSONRequestBody = EnqueueAgentSteerRequest
// SubmitAgentRuntimeTrustedTurnJSONRequestBody defines body for SubmitAgentRuntimeTrustedTurn for application/json ContentType.
type SubmitAgentRuntimeTrustedTurnJSONRequestBody = SubmitAgentTrustedTurnRequest
// CreateAgentWorkItemJSONRequestBody defines body for CreateAgentWorkItem for application/json ContentType.
type CreateAgentWorkItemJSONRequestBody = AgentWorkItemCreateRequest
// CreateAgentWorkItemCommentJSONRequestBody defines body for CreateAgentWorkItemComment for application/json ContentType.
type CreateAgentWorkItemCommentJSONRequestBody = WorkItemCommentCreateRequest
// DeleteAgentWorkItemCommentJSONRequestBody defines body for DeleteAgentWorkItemComment for application/json ContentType.
type DeleteAgentWorkItemCommentJSONRequestBody = WorkItemVersionRequest
// UpdateAgentWorkItemCommentJSONRequestBody defines body for UpdateAgentWorkItemComment for application/json ContentType.
type UpdateAgentWorkItemCommentJSONRequestBody = WorkItemCommentUpdateRequest
// TransitionAgentWorkItemJSONRequestBody defines body for TransitionAgentWorkItem for application/json ContentType.
type TransitionAgentWorkItemJSONRequestBody = WorkItemTransitionRequest
// RequestMemoryWikiRefreshJSONRequestBody defines body for RequestMemoryWikiRefresh for application/json ContentType.
type RequestMemoryWikiRefreshJSONRequestBody = MemoryWikiRefreshRequest
// QueueProactiveWakeJSONRequestBody defines body for QueueProactiveWake for application/json ContentType.
type QueueProactiveWakeJSONRequestBody = ProactiveWakeRequest
// FinishProactiveWindowJSONRequestBody defines body for FinishProactiveWindow for application/json ContentType.
type FinishProactiveWindowJSONRequestBody = ProactiveWindowFinishRequest
// ClaimTaskExecutionJSONRequestBody defines body for ClaimTaskExecution for application/json ContentType.
type ClaimTaskExecutionJSONRequestBody = TaskWorkerClaimRequest
// HeartbeatTaskExecutionJSONRequestBody defines body for HeartbeatTaskExecution for application/json ContentType.
type HeartbeatTaskExecutionJSONRequestBody = TaskWorkerHeartbeatRequest
// TransitionTaskExecutionJSONRequestBody defines body for TransitionTaskExecution for application/json ContentType.
type TransitionTaskExecutionJSONRequestBody = TaskWorkerTransitionRequest
// ApplyMemoryTrackingItemsJSONRequestBody defines body for ApplyMemoryTrackingItems for application/json ContentType.
type ApplyMemoryTrackingItemsJSONRequestBody = TrackingItemChanges
// ListMemoryTrackingItemsJSONRequestBody defines body for ListMemoryTrackingItems for application/json ContentType.
type ListMemoryTrackingItemsJSONRequestBody = TrackingItemList
// PlanMemoryTrackingItemsJSONRequestBody defines body for PlanMemoryTrackingItems for application/json ContentType.
type PlanMemoryTrackingItemsJSONRequestBody = TrackingItemPlanRequest
// Getter for additional properties for FinishAgentLocalRunRequest_Terminal. Returns the specified
// element and whether it was found
func (a FinishAgentLocalRunRequest_Terminal) Get(fieldName string) (value interface{}, found bool) {
if a.AdditionalProperties != nil {
value, found = a.AdditionalProperties[fieldName]
}
return
}
// Setter for additional properties for FinishAgentLocalRunRequest_Terminal
func (a *FinishAgentLocalRunRequest_Terminal) Set(fieldName string, value interface{}) {
if a.AdditionalProperties == nil {
a.AdditionalProperties = make(map[string]interface{})
}
a.AdditionalProperties[fieldName] = value
}
// Override default JSON handling for FinishAgentLocalRunRequest_Terminal to handle AdditionalProperties
func (a *FinishAgentLocalRunRequest_Terminal) UnmarshalJSON(b []byte) error {
object := make(map[string]json.RawMessage)
err := json.Unmarshal(b, &object)
if err != nil {
return err
}
if raw, found := object["failure"]; found {
err = json.Unmarshal(raw, &a.Failure)
if err != nil {
return fmt.Errorf("error reading 'failure': %w", err)
}
delete(object, "failure")
}
if raw, found := object["type"]; found {
err = json.Unmarshal(raw, &a.Type)
if err != nil {
return fmt.Errorf("error reading 'type': %w", err)
}
delete(object, "type")
}
if len(object) != 0 {
a.AdditionalProperties = make(map[string]interface{})
for fieldName, fieldBuf := range object {
var fieldVal interface{}
err := json.Unmarshal(fieldBuf, &fieldVal)
if err != nil {
return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err)
}
a.AdditionalProperties[fieldName] = fieldVal
}
}
return nil
}
// Override default JSON handling for FinishAgentLocalRunRequest_Terminal to handle AdditionalProperties
func (a FinishAgentLocalRunRequest_Terminal) MarshalJSON() ([]byte, error) {
var err error
object := make(map[string]json.RawMessage)
if a.Failure != nil {
object["failure"], err = json.Marshal(a.Failure)
if err != nil {
return nil, fmt.Errorf("error marshaling 'failure': %w", err)
}
}
object["type"], err = json.Marshal(a.Type)
if err != nil {
return nil, fmt.Errorf("error marshaling 'type': %w", err)
}
for fieldName, field := range a.AdditionalProperties {
object[fieldName], err = json.Marshal(field)
if err != nil {
return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err)
}
}
return json.Marshal(object)
}
// AsAgentRuntimeContextRef0 returns the union data inside the AgentRuntimeContextRef as a AgentRuntimeContextRef0
func (t AgentRuntimeContextRef) AsAgentRuntimeContextRef0() (AgentRuntimeContextRef0, error) {
var body AgentRuntimeContextRef0
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromAgentRuntimeContextRef0 overwrites any union data inside the AgentRuntimeContextRef as the provided AgentRuntimeContextRef0
func (t *AgentRuntimeContextRef) FromAgentRuntimeContextRef0(v AgentRuntimeContextRef0) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeAgentRuntimeContextRef0 performs a merge with any union data inside the AgentRuntimeContextRef, using the provided AgentRuntimeContextRef0
func (t *AgentRuntimeContextRef) MergeAgentRuntimeContextRef0(v AgentRuntimeContextRef0) error {
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsAgentRuntimeContextRef1 returns the union data inside the AgentRuntimeContextRef as a AgentRuntimeContextRef1
func (t AgentRuntimeContextRef) AsAgentRuntimeContextRef1() (AgentRuntimeContextRef1, error) {
var body AgentRuntimeContextRef1
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromAgentRuntimeContextRef1 overwrites any union data inside the AgentRuntimeContextRef as the provided AgentRuntimeContextRef1
func (t *AgentRuntimeContextRef) FromAgentRuntimeContextRef1(v AgentRuntimeContextRef1) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeAgentRuntimeContextRef1 performs a merge with any union data inside the AgentRuntimeContextRef, using the provided AgentRuntimeContextRef1
func (t *AgentRuntimeContextRef) MergeAgentRuntimeContextRef1(v AgentRuntimeContextRef1) error {
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsAgentRuntimeContextRef2 returns the union data inside the AgentRuntimeContextRef as a AgentRuntimeContextRef2
func (t AgentRuntimeContextRef) AsAgentRuntimeContextRef2() (AgentRuntimeContextRef2, error) {
var body AgentRuntimeContextRef2
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromAgentRuntimeContextRef2 overwrites any union data inside the AgentRuntimeContextRef as the provided AgentRuntimeContextRef2
func (t *AgentRuntimeContextRef) FromAgentRuntimeContextRef2(v AgentRuntimeContextRef2) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeAgentRuntimeContextRef2 performs a merge with any union data inside the AgentRuntimeContextRef, using the provided AgentRuntimeContextRef2
func (t *AgentRuntimeContextRef) MergeAgentRuntimeContextRef2(v AgentRuntimeContextRef2) error {
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
func (t AgentRuntimeContextRef) MarshalJSON() ([]byte, error) {
b, err := t.union.MarshalJSON()
return b, err
}
func (t *AgentRuntimeContextRef) UnmarshalJSON(b []byte) error {
err := t.union.UnmarshalJSON(b)
return err
}
// AsAgentRuntimeWorkingStatusChangedEvent returns the union data inside the AgentRuntimeOfferedPresentationEvent as a AgentRuntimeWorkingStatusChangedEvent
func (t AgentRuntimeOfferedPresentationEvent) AsAgentRuntimeWorkingStatusChangedEvent() (AgentRuntimeWorkingStatusChangedEvent, error) {
var body AgentRuntimeWorkingStatusChangedEvent
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromAgentRuntimeWorkingStatusChangedEvent overwrites any union data inside the AgentRuntimeOfferedPresentationEvent as the provided AgentRuntimeWorkingStatusChangedEvent
func (t *AgentRuntimeOfferedPresentationEvent) FromAgentRuntimeWorkingStatusChangedEvent(v AgentRuntimeWorkingStatusChangedEvent) error {
v.Type = "status.changed"
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeAgentRuntimeWorkingStatusChangedEvent performs a merge with any union data inside the AgentRuntimeOfferedPresentationEvent, using the provided AgentRuntimeWorkingStatusChangedEvent
func (t *AgentRuntimeOfferedPresentationEvent) MergeAgentRuntimeWorkingStatusChangedEvent(v AgentRuntimeWorkingStatusChangedEvent) error {
v.Type = "status.changed"
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsAgentRuntimePlanUpdatedEvent returns the union data inside the AgentRuntimeOfferedPresentationEvent as a AgentRuntimePlanUpdatedEvent
func (t AgentRuntimeOfferedPresentationEvent) AsAgentRuntimePlanUpdatedEvent() (AgentRuntimePlanUpdatedEvent, error) {
var body AgentRuntimePlanUpdatedEvent
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromAgentRuntimePlanUpdatedEvent overwrites any union data inside the AgentRuntimeOfferedPresentationEvent as the provided AgentRuntimePlanUpdatedEvent
func (t *AgentRuntimeOfferedPresentationEvent) FromAgentRuntimePlanUpdatedEvent(v AgentRuntimePlanUpdatedEvent) error {
v.Type = "plan.updated"
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeAgentRuntimePlanUpdatedEvent performs a merge with any union data inside the AgentRuntimeOfferedPresentationEvent, using the provided AgentRuntimePlanUpdatedEvent
func (t *AgentRuntimeOfferedPresentationEvent) MergeAgentRuntimePlanUpdatedEvent(v AgentRuntimePlanUpdatedEvent) error {
v.Type = "plan.updated"
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsAgentRuntimeActivityStartedEvent returns the union data inside the AgentRuntimeOfferedPresentationEvent as a AgentRuntimeActivityStartedEvent
func (t AgentRuntimeOfferedPresentationEvent) AsAgentRuntimeActivityStartedEvent() (AgentRuntimeActivityStartedEvent, error) {
var body AgentRuntimeActivityStartedEvent
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromAgentRuntimeActivityStartedEvent overwrites any union data inside the AgentRuntimeOfferedPresentationEvent as the provided AgentRuntimeActivityStartedEvent
func (t *AgentRuntimeOfferedPresentationEvent) FromAgentRuntimeActivityStartedEvent(v AgentRuntimeActivityStartedEvent) error {
v.Type = "activity.started"
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeAgentRuntimeActivityStartedEvent performs a merge with any union data inside the AgentRuntimeOfferedPresentationEvent, using the provided AgentRuntimeActivityStartedEvent
func (t *AgentRuntimeOfferedPresentationEvent) MergeAgentRuntimeActivityStartedEvent(v AgentRuntimeActivityStartedEvent) error {
v.Type = "activity.started"
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsAgentRuntimeActivityUpdatedEvent returns the union data inside the AgentRuntimeOfferedPresentationEvent as a AgentRuntimeActivityUpdatedEvent
func (t AgentRuntimeOfferedPresentationEvent) AsAgentRuntimeActivityUpdatedEvent() (AgentRuntimeActivityUpdatedEvent, error) {
var body AgentRuntimeActivityUpdatedEvent
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromAgentRuntimeActivityUpdatedEvent overwrites any union data inside the AgentRuntimeOfferedPresentationEvent as the provided AgentRuntimeActivityUpdatedEvent
func (t *AgentRuntimeOfferedPresentationEvent) FromAgentRuntimeActivityUpdatedEvent(v AgentRuntimeActivityUpdatedEvent) error {
v.Type = "activity.updated"
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeAgentRuntimeActivityUpdatedEvent performs a merge with any union data inside the AgentRuntimeOfferedPresentationEvent, using the provided AgentRuntimeActivityUpdatedEvent
func (t *AgentRuntimeOfferedPresentationEvent) MergeAgentRuntimeActivityUpdatedEvent(v AgentRuntimeActivityUpdatedEvent) error {
v.Type = "activity.updated"
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsAgentRuntimeActivityFinishedEvent returns the union data inside the AgentRuntimeOfferedPresentationEvent as a AgentRuntimeActivityFinishedEvent
func (t AgentRuntimeOfferedPresentationEvent) AsAgentRuntimeActivityFinishedEvent() (AgentRuntimeActivityFinishedEvent, error) {
var body AgentRuntimeActivityFinishedEvent
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromAgentRuntimeActivityFinishedEvent overwrites any union data inside the AgentRuntimeOfferedPresentationEvent as the provided AgentRuntimeActivityFinishedEvent
func (t *AgentRuntimeOfferedPresentationEvent) FromAgentRuntimeActivityFinishedEvent(v AgentRuntimeActivityFinishedEvent) error {
v.Type = "activity.finished"
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeAgentRuntimeActivityFinishedEvent performs a merge with any union data inside the AgentRuntimeOfferedPresentationEvent, using the provided AgentRuntimeActivityFinishedEvent
func (t *AgentRuntimeOfferedPresentationEvent) MergeAgentRuntimeActivityFinishedEvent(v AgentRuntimeActivityFinishedEvent) error {
v.Type = "activity.finished"
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
func (t AgentRuntimeOfferedPresentationEvent) Discriminator() (string, error) {
var discriminator struct {
Discriminator string `json:"type"`
}
err := json.Unmarshal(t.union, &discriminator)
return discriminator.Discriminator, err
}
func (t AgentRuntimeOfferedPresentationEvent) ValueByDiscriminator() (interface{}, error) {
discriminator, err := t.Discriminator()
if err != nil {
return nil, err
}
switch discriminator {
case "activity.finished":
return t.AsAgentRuntimeActivityFinishedEvent()
case "activity.started":
return t.AsAgentRuntimeActivityStartedEvent()
case "activity.updated":
return t.AsAgentRuntimeActivityUpdatedEvent()
case "plan.updated":
return t.AsAgentRuntimePlanUpdatedEvent()
case "status.changed":
return t.AsAgentRuntimeWorkingStatusChangedEvent()
default:
return nil, errors.New("unknown discriminator value: " + discriminator)
}
}
func (t AgentRuntimeOfferedPresentationEvent) MarshalJSON() ([]byte, error) {
b, err := t.union.MarshalJSON()
return b, err
}
func (t *AgentRuntimeOfferedPresentationEvent) UnmarshalJSON(b []byte) error {
err := t.union.UnmarshalJSON(b)
return err
}
// AsMetaMcpContextReference returns the union data inside the McpContextReference as a MetaMcpContextReference
func (t McpContextReference) AsMetaMcpContextReference() (MetaMcpContextReference, error) {
var body MetaMcpContextReference
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromMetaMcpContextReference overwrites any union data inside the McpContextReference as the provided MetaMcpContextReference
func (t *McpContextReference) FromMetaMcpContextReference(v MetaMcpContextReference) error {
v.Kind = "meta"
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeMetaMcpContextReference performs a merge with any union data inside the McpContextReference, using the provided MetaMcpContextReference
func (t *McpContextReference) MergeMetaMcpContextReference(v MetaMcpContextReference) error {
v.Kind = "meta"
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsAlterEgoMcpContextReference returns the union data inside the McpContextReference as a AlterEgoMcpContextReference
func (t McpContextReference) AsAlterEgoMcpContextReference() (AlterEgoMcpContextReference, error) {
var body AlterEgoMcpContextReference
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromAlterEgoMcpContextReference overwrites any union data inside the McpContextReference as the provided AlterEgoMcpContextReference
func (t *McpContextReference) FromAlterEgoMcpContextReference(v AlterEgoMcpContextReference) error {
v.Kind = "alter_ego"
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeAlterEgoMcpContextReference performs a merge with any union data inside the McpContextReference, using the provided AlterEgoMcpContextReference
func (t *McpContextReference) MergeAlterEgoMcpContextReference(v AlterEgoMcpContextReference) error {
v.Kind = "alter_ego"
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsDocumentMcpContextReference returns the union data inside the McpContextReference as a DocumentMcpContextReference
func (t McpContextReference) AsDocumentMcpContextReference() (DocumentMcpContextReference, error) {
var body DocumentMcpContextReference
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromDocumentMcpContextReference overwrites any union data inside the McpContextReference as the provided DocumentMcpContextReference
func (t *McpContextReference) FromDocumentMcpContextReference(v DocumentMcpContextReference) error {
v.Kind = "document"
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeDocumentMcpContextReference performs a merge with any union data inside the McpContextReference, using the provided DocumentMcpContextReference
func (t *McpContextReference) MergeDocumentMcpContextReference(v DocumentMcpContextReference) error {
v.Kind = "document"
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
func (t McpContextReference) Discriminator() (string, error) {
var discriminator struct {
Discriminator string `json:"kind"`
}
err := json.Unmarshal(t.union, &discriminator)
return discriminator.Discriminator, err
}
func (t McpContextReference) ValueByDiscriminator() (interface{}, error) {
discriminator, err := t.Discriminator()
if err != nil {
return nil, err
}
switch discriminator {
case "alter_ego":
return t.AsAlterEgoMcpContextReference()
case "document":
return t.AsDocumentMcpContextReference()
case "meta":
return t.AsMetaMcpContextReference()
default:
return nil, errors.New("unknown discriminator value: " + discriminator)
}
}
func (t McpContextReference) MarshalJSON() ([]byte, error) {
b, err := t.union.MarshalJSON()
return b, err
}
func (t *McpContextReference) UnmarshalJSON(b []byte) error {
err := t.union.UnmarshalJSON(b)
return err
}
// AsWorkItemCommentTextSegment returns the union data inside the WorkItemCommentSegment as a WorkItemCommentTextSegment
func (t WorkItemCommentSegment) AsWorkItemCommentTextSegment() (WorkItemCommentTextSegment, error) {
var body WorkItemCommentTextSegment
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromWorkItemCommentTextSegment overwrites any union data inside the WorkItemCommentSegment as the provided WorkItemCommentTextSegment
func (t *WorkItemCommentSegment) FromWorkItemCommentTextSegment(v WorkItemCommentTextSegment) error {
v.Type = "text"
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeWorkItemCommentTextSegment performs a merge with any union data inside the WorkItemCommentSegment, using the provided WorkItemCommentTextSegment
func (t *WorkItemCommentSegment) MergeWorkItemCommentTextSegment(v WorkItemCommentTextSegment) error {
v.Type = "text"
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsWorkItemCommentReferenceSegment returns the union data inside the WorkItemCommentSegment as a WorkItemCommentReferenceSegment
func (t WorkItemCommentSegment) AsWorkItemCommentReferenceSegment() (WorkItemCommentReferenceSegment, error) {
var body WorkItemCommentReferenceSegment
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromWorkItemCommentReferenceSegment overwrites any union data inside the WorkItemCommentSegment as the provided WorkItemCommentReferenceSegment
func (t *WorkItemCommentSegment) FromWorkItemCommentReferenceSegment(v WorkItemCommentReferenceSegment) error {
v.Type = "reference"
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeWorkItemCommentReferenceSegment performs a merge with any union data inside the WorkItemCommentSegment, using the provided WorkItemCommentReferenceSegment
func (t *WorkItemCommentSegment) MergeWorkItemCommentReferenceSegment(v WorkItemCommentReferenceSegment) error {
v.Type = "reference"
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
func (t WorkItemCommentSegment) Discriminator() (string, error) {
var discriminator struct {
Discriminator string `json:"type"`
}
err := json.Unmarshal(t.union, &discriminator)
return discriminator.Discriminator, err
}
func (t WorkItemCommentSegment) ValueByDiscriminator() (interface{}, error) {
discriminator, err := t.Discriminator()
if err != nil {
return nil, err
}
switch discriminator {
case "reference":
return t.AsWorkItemCommentReferenceSegment()
case "text":
return t.AsWorkItemCommentTextSegment()
default:
return nil, errors.New("unknown discriminator value: " + discriminator)
}
}
func (t WorkItemCommentSegment) MarshalJSON() ([]byte, error) {
b, err := t.union.MarshalJSON()
return b, err
}
func (t *WorkItemCommentSegment) UnmarshalJSON(b []byte) error {
err := t.union.UnmarshalJSON(b)
return err
}