ipc

package
v2026.613.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypePing         = "ping"
	TypePong         = "pong"
	TypeRun          = "run"
	TypeToolRequest  = "tool_request"
	TypeToolResponse = "tool_response"
	TypeRunDone      = "run_done"
	TypeShutdown     = "shutdown"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Envelope

type Envelope struct {
	Type string `json:"type"`
}

type Ping

type Ping struct {
	Type string `json:"type"`
}

type Pong

type Pong struct {
	Type string `json:"type"`
	OK   bool   `json:"ok"`
}

type RunDone

type RunDone struct {
	Type       string `json:"type"`
	RunID      string `json:"id"`
	Output     string `json:"output,omitempty"`
	Error      string `json:"error,omitempty"`
	ToolCalls  int    `json:"tool_calls"`
	DurationMs int64  `json:"duration_ms"`
}

type RunRequest

type RunRequest struct {
	Type       string `json:"type"`
	ID         string `json:"id"`
	WASM       []byte `json:"wasm"`
	Mode       string `json:"mode"`
	MaxCalls   int    `json:"max_calls"`
	TimeoutSec int    `json:"timeout_sec"`
}

type Shutdown

type Shutdown struct {
	Type string `json:"type"`
}

type ToolRequest

type ToolRequest struct {
	Type  string          `json:"type"`
	RunID string          `json:"run_id"`
	ReqID string          `json:"req_id"`
	Name  string          `json:"name"`
	Args  json.RawMessage `json:"args"`
}

type ToolResponse

type ToolResponse struct {
	Type   string          `json:"type"`
	RunID  string          `json:"run_id"`
	ReqID  string          `json:"req_id"`
	Result json.RawMessage `json:"result,omitempty"`
	Error  string          `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL