ipc

package
v2026.930.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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