From 455f4e33faf3c19f31a6b4c519e35248359dda04 Mon Sep 17 00:00:00 2001 From: MacMini2 Date: Sun, 19 Jul 2026 04:18:02 +0800 Subject: [PATCH] chore: sync vendored Go SDK types --- .../OpenLinker-ai/openlinker-go/types.go | 89 ++++++++++++++----- 1 file changed, 69 insertions(+), 20 deletions(-) diff --git a/vendor/github.com/OpenLinker-ai/openlinker-go/types.go b/vendor/github.com/OpenLinker-ai/openlinker-go/types.go index c2f24a3..8a56a36 100644 --- a/vendor/github.com/OpenLinker-ai/openlinker-go/types.go +++ b/vendor/github.com/OpenLinker-ai/openlinker-go/types.go @@ -167,25 +167,48 @@ type TaskCallbackSubscription struct { } type RunResponse struct { - RunID string `json:"run_id"` - Status string `json:"status"` + RunID string `json:"run_id"` + AgentID string `json:"agent_id,omitempty"` + AgentSlug string `json:"agent_slug,omitempty"` + AgentName string `json:"agent_name,omitempty"` + AgentConnectionMode string `json:"agent_connection_mode,omitempty"` + Status string `json:"status"` + Input any `json:"input,omitempty"` + Output any `json:"output,omitempty"` + ErrorCode string `json:"error_code,omitempty"` + ErrorMessage string `json:"error_message,omitempty"` + CostCents int32 `json:"cost_cents"` + DurationMS int32 `json:"duration_ms"` + StartedAt string `json:"started_at"` + FinishedAt string `json:"finished_at,omitempty"` + Source string `json:"source,omitempty"` + RuntimeContractID string `json:"runtime_contract_id"` + RuntimeTransport string `json:"runtime_transport,omitempty"` + RuntimeTransportReason string `json:"runtime_transport_reason,omitempty"` + RuntimeTransportChangedAt string `json:"runtime_transport_changed_at,omitempty"` + DispatchState string `json:"dispatch_state"` + AttemptCount int32 `json:"attempt_count"` + MaxAttempts int32 `json:"max_attempts"` + NextAttemptAt string `json:"next_attempt_at,omitempty"` + LatestAttemptID string `json:"latest_attempt_id,omitempty"` + ActiveAttemptID string `json:"active_attempt_id,omitempty"` + CancelState string `json:"cancel_state,omitempty"` + CancelRequestedAt string `json:"cancel_requested_at,omitempty"` + CancelAcknowledgedAt string `json:"cancel_acknowledged_at,omitempty"` + CancelReason string `json:"cancel_reason,omitempty"` + DeadLetteredAt string `json:"dead_lettered_at,omitempty"` + ReplayOfRunID string `json:"replay_of_run_id,omitempty"` + ParentRunID string `json:"parent_run_id,omitempty"` + CallerAgentID string `json:"caller_agent_id,omitempty"` + BillingMode string `json:"billing_mode,omitempty"` + A2AContext *RunA2AContext `json:"a2a_context,omitempty"` + TaskCallback *TaskCallbackSubscription `json:"task_callback,omitempty"` + RequirementEvidence any `json:"requirement_evidence,omitempty"` + EvidenceSummary any `json:"evidence_summary,omitempty"` + NextAction any `json:"next_action,omitempty"` // Replayed is true when Core returned a run created by an earlier request // with the same idempotency key and semantic input. - Replayed bool `json:"replayed"` - Output any `json:"output,omitempty"` - ErrorCode string `json:"error_code,omitempty"` - ErrorMessage string `json:"error_message,omitempty"` - CostCents int32 `json:"cost_cents"` - DurationMS int32 `json:"duration_ms"` - Source string `json:"source,omitempty"` - ParentRunID string `json:"parent_run_id,omitempty"` - CallerAgentID string `json:"caller_agent_id,omitempty"` - BillingMode string `json:"billing_mode,omitempty"` - A2AContext *RunA2AContext `json:"a2a_context,omitempty"` - TaskCallback *TaskCallbackSubscription `json:"task_callback,omitempty"` - RequirementEvidence any `json:"requirement_evidence,omitempty"` - EvidenceSummary any `json:"evidence_summary,omitempty"` - NextAction any `json:"next_action,omitempty"` + Replayed bool `json:"replayed"` } type ListRunEventsParams struct { @@ -212,12 +235,38 @@ type RunEventPageMeta struct { } type RunChildResponse struct { - ChildRunID string `json:"child_run_id"` - Status string `json:"status"` + ChildRunID string `json:"child_run_id"` + ParentRunID string `json:"parent_run_id"` + CallerAgentID string `json:"caller_agent_id"` + CallerAgentSlug string `json:"caller_agent_slug"` + CallerAgentName string `json:"caller_agent_name"` + CallerAgentTags []string `json:"caller_agent_tags"` + CallerSkills []RunSkillRef `json:"caller_skills"` + TargetAgentID string `json:"target_agent_id"` + TargetAgentSlug string `json:"target_agent_slug"` + TargetAgentName string `json:"target_agent_name"` + TargetAgentTags []string `json:"target_agent_tags"` + TargetSkills []RunSkillRef `json:"target_skills"` + Reason string `json:"reason"` + Status string `json:"status"` + CostCents int32 `json:"cost_cents"` + DurationMS *int32 `json:"duration_ms,omitempty"` + StartedAt string `json:"started_at"` + FinishedAt *string `json:"finished_at,omitempty"` + Source string `json:"source"` + BillingMode string `json:"billing_mode"` + A2AContext *RunA2AContext `json:"a2a_context,omitempty"` + Children []RunChildResponse `json:"children,omitempty"` +} + +type RunSkillRef struct { + ID string `json:"id"` + Name string `json:"name"` } type ListRunChildrenResponse struct { - Items []RunChildResponse `json:"items"` + ParentRunID string `json:"parent_run_id"` + Items []RunChildResponse `json:"items"` } type RunEventResponse struct {