Documentation
¶
Index ¶
Constants ¶
View Source
const SchemaVersionEventV1 = "agent-hub.event.v1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Envelope ¶
type EventType ¶
type EventType string
const ( EventSessionStarted EventType = "agent.session.started" EventPromptSubmitted EventType = "agent.prompt.submitted" EventSessionUpdated EventType = "agent.session.updated" EventSessionFinished EventType = "agent.session.finished" EventSessionFailed EventType = "agent.session.failed" EventToolStarted EventType = "agent.tool.started" EventToolFinished EventType = "agent.tool.finished" EventPermissionAsked EventType = "agent.permission.requested" EventPermissionReplied EventType = "agent.permission.replied" )
type FetchResponse ¶
type MockConfig ¶
type MockConfig struct {
Version string `json:"version"`
Runner string `json:"runner"`
SessionID string `json:"session_id,omitempty"`
Model string `json:"model,omitempty"`
DelayMS int `json:"delay_ms,omitempty"`
ExitCode int `json:"exit_code,omitempty"`
Stderr string `json:"stderr,omitempty"`
IgnoreHookErrors bool `json:"ignore_hook_errors,omitempty"`
HookCommand string `json:"hook_command,omitempty"`
StdoutEvents json.RawMessage `json:"stdout_events,omitempty"` // Deprecated: use LLMEvents
LLMEvents json.RawMessage `json:"llm_events,omitempty"`
Hooks []MockHook `json:"hooks,omitempty"`
}
type MockHook ¶
type MockHook struct {
At string `json:"at"`
Event string `json:"event"`
Payload json.RawMessage `json:"payload,omitempty"`
}
type NormalizedEvent ¶
type NormalizedEvent struct {
EventType EventType `json:"event_type"`
Runner string `json:"runner"`
RunnerSessionID string `json:"runner_session_id,omitempty"`
Workspace string `json:"workspace,omitempty"`
Model string `json:"model,omitempty"`
Prompt string `json:"prompt,omitempty"`
OccurredAt time.Time `json:"occurred_at,omitempty"`
Payload json.RawMessage `json:"payload,omitempty"`
}
func (NormalizedEvent) Validate ¶
func (e NormalizedEvent) Validate() error
Click to show internal directories.
Click to hide internal directories.