Documentation
¶
Index ¶
- Constants
- type Approval
- type Attachment
- type Bootstrap
- type Citation
- type Error
- type Event
- type Features
- type IncidentAttachment
- type Principal
- type Profile
- type Replay
- type ResourceRef
- type RunRef
- type ServerInfo
- type Session
- type TimeRange
- type ToolCall
- type Toolset
- type TriggerKind
- type Turn
- type TurnMode
- type TurnRequest
- type TurnResponse
- type TurnResult
Constants ¶
View Source
const ( APIVersion = "v1" MinClient = "v1" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Attachment struct {
Incident *IncidentAttachment `json:"incident,omitempty"`
Service string `json:"service,omitempty"`
Time *TimeRange `json:"time_range,omitempty"`
Resource *ResourceRef `json:"resource,omitempty"`
}
type Event ¶
type Event struct {
Seq int64 `json:"seq"`
At time.Time `json:"at"`
Kind string `json:"kind"`
RunID string `json:"run_id,omitempty"`
Delta string `json:"delta,omitempty"`
Tool string `json:"tool,omitempty"`
CallID string `json:"call_id,omitempty"`
Approval *Approval `json:"approval,omitempty"`
ApprovalNonce string `json:"approval_nonce,omitempty"`
Error *Error `json:"error,omitempty"`
Args string `json:"args,omitempty"`
Output string `json:"output,omitempty"`
Duration int64 `json:"duration_ms,omitempty"`
}
type IncidentAttachment ¶
type ResourceRef ¶
type ServerInfo ¶
type TriggerKind ¶
type TriggerKind string
const ( TriggerUser TriggerKind = "user" TriggerIncident TriggerKind = "incident" TriggerSchedule TriggerKind = "schedule" TriggerCI TriggerKind = "ci" TriggerMCP TriggerKind = "mcp" )
type Turn ¶
type Turn struct {
ID string `json:"id"`
Role string `json:"role"`
Content string `json:"content"`
CreatedAt time.Time `json:"created_at"`
Attachment *Attachment `json:"attachment,omitempty"`
ToolCalls []ToolCall `json:"tool_calls,omitempty"`
Citations []Citation `json:"citations,omitempty"`
Events []Event `json:"events,omitempty"`
}
type TurnRequest ¶
type TurnRequest struct {
Message string `json:"message"`
Attachment *Attachment `json:"attachment,omitempty"`
Mode TurnMode `json:"mode,omitempty"`
Profile string `json:"profile,omitempty"`
}
type TurnResponse ¶
type TurnResponse struct {
SessionID string `json:"session_id"`
Assistant TurnResult `json:"assistant"`
}
Click to show internal directories.
Click to hide internal directories.