Versions in this module Expand all Collapse all v1 v1.1.0 May 22, 2026 Changes in this version + const KindArtifactRef + const KindDelegate + const KindLog + const KindMetric + const KindProgress + const KindResultChunk + const KindStatus + const KindThought + const KindToolCall + const KindToolResult + const PhaseCredentialRotated + const StatusCancelled + const StatusError + const StatusPending + const StatusRunning + const StatusSuccess + const StatusTimedOut + const TypeJobAccepted + const TypeJobCancel + const TypeJobError + const TypeJobEvent + const TypeJobResult + const TypeJobSubmit + const TypeJobSubscribe + const TypeJobSubscribed + const TypeJobUnsubscribe + const TypeSessionAck + const TypeSessionBye + const TypeSessionError + const TypeSessionHello + const TypeSessionJobs + const TypeSessionListJobs + const TypeSessionPing + const TypeSessionPong + const TypeSessionWelcome + func DecodeEventBody(e *JobEvent) (any, error) + func NewEventBody(v any) (json.RawMessage, error) + type AgentEntry struct + Default string + Name string + Versions []string + type AgentRef struct + Name string + Version string + func ParseAgentRef(s string) (AgentRef, error) + func (a AgentRef) String() string + type ArtifactRefBody struct + ByteSize uint64 + ContentType string + SHA256 string + URI string + type AuthInfo struct + Scheme string + Token string + type ClientInfo struct + Name string + Version string + type Credential struct + Constraints *CredentialConstraints + Endpoint string + ID string + Profile string + Scheme string + Value string + type CredentialConstraints struct + CostBudget []string + ExpiresAt *time.Time + ModelUse []string + type DelegateBody struct + Agent string + ChildJobID string + Lease arcp.Lease + type HelloCapabilities struct + Encodings []string + Features []string + type JobAccepted struct + AcceptedAt time.Time + Agent string + Budget map[arcp.Currency]float64 + Credentials []Credential + JobID string + Lease arcp.Lease + LeaseConstraints *LeaseConstraints + ParentJobID string + TraceID string + func (*JobAccepted) ARCPType() string + type JobCancel struct + Reason string + func (*JobCancel) ARCPType() string + type JobError struct + Code arcp.ErrorCode + Details map[string]any + FinalStatus string + Message string + Retryable bool + func (*JobError) ARCPType() string + type JobEvent struct + Body json.RawMessage + Kind string + TS time.Time + func (*JobEvent) ARCPType() string + type JobInfo struct + Agent string + CreatedAt time.Time + Extra json.RawMessage + JobID string + LastEventSeq uint64 + Lease arcp.Lease + ParentJobID string + Status string + TraceID string + type JobResult struct + FinalStatus string + Output json.RawMessage + ResultID string + ResultSize uint64 + Summary string + func (*JobResult) ARCPType() string + type JobSubmit struct + Agent string + IdempotencyKey string + Input json.RawMessage + LeaseConstraints *LeaseConstraints + LeaseRequest arcp.Lease + MaxRuntimeSec int + func (*JobSubmit) ARCPType() string + type JobSubscribe struct + FromEventSeq uint64 + History bool + JobID string + func (*JobSubscribe) ARCPType() string + type JobSubscribed struct + Agent string + CurrentStatus string + JobID string + Lease arcp.Lease + ParentJobID string + Replayed bool + SubscribedFrom uint64 + TraceID string + func (*JobSubscribed) ARCPType() string + type JobUnsubscribe struct + JobID string + func (*JobUnsubscribe) ARCPType() string + type LeaseConstraints struct + ExpiresAt *time.Time + type ListJobsFilter struct + Agent string + CreatedAfter *time.Time + CreatedBefore *time.Time + Status []string + type LogBody struct + Level string + Message string + type MetricBody struct + Dimensions map[string]string + Name string + Unit string + Value float64 + type ProgressBody struct + Current uint64 + Message string + Total uint64 + Units string + func (b ProgressBody) Validate() error + type ResultChunkBody struct + ChunkSeq uint64 + Data string + Encoding string + More bool + ResultID string + func (b ResultChunkBody) Validate() error + type ResumeRequest struct + LastEventSeq uint64 + ResumeToken string + SessionID string + type RuntimeInfo struct + Name string + Version string + type SessionAck struct + LastProcessedSeq uint64 + func (*SessionAck) ARCPType() string + type SessionBye struct + Reason string + func (*SessionBye) ARCPType() string + type SessionError struct + Code arcp.ErrorCode + Details map[string]any + Message string + Retryable bool + func (*SessionError) ARCPType() string + type SessionHello struct + Auth AuthInfo + Capabilities HelloCapabilities + Client ClientInfo + Resume *ResumeRequest + func (*SessionHello) ARCPType() string + type SessionJobs struct + Jobs []JobInfo + NextCursor string + RequestID string + func (*SessionJobs) ARCPType() string + type SessionListJobs struct + Cursor string + Filter ListJobsFilter + Limit int + func (*SessionListJobs) ARCPType() string + type SessionPing struct + Nonce string + SentAt time.Time + func (*SessionPing) ARCPType() string + type SessionPong struct + PingNonce string + ReceivedAt time.Time + func (*SessionPong) ARCPType() string + type SessionWelcome struct + Capabilities WelcomeCapabilities + HeartbeatIntervalSec int + ResumeToken string + ResumeWindowSec int + Runtime RuntimeInfo + func (*SessionWelcome) ARCPType() string + type StatusBody struct + Details map[string]any + Message string + Phase string + type ThoughtBody struct + Text string + type ToolCallBody struct + Args json.RawMessage + CallID string + Tool string + type ToolError struct + Code arcp.ErrorCode + Details map[string]any + Message string + Retryable bool + type ToolResultBody struct + CallID string + Error *ToolError + Result json.RawMessage + func (b ToolResultBody) Validate() error + type WelcomeCapabilities struct + Agents []AgentEntry + Encodings []string + Features []string