ipc

package
v0.266.3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: Apache-2.0 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 (
	PlanAccept         = "accept"
	PlanAcceptStandard = "accept_standard"
	PlanReject         = "reject"
)

The plan decisions a PlanApprovalResponse or a plan interrupt's resume payload carries: execute in auto-accept mode, execute approving each step, or keep planning.

View Source
const RunAgentInputFrameType = "run_agent_input"

RunAgentInputFrameType is the stdin frame that starts or continues a run with new user messages. Its body is an AG-UI RunAgentInput.

View Source
const UserMessageRequestID = "stdin"

UserMessageRequestID tags queue entries that came from a run input on stdin so the renderer can tell them apart from background-job result notes.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentErrorMessage

type AgentErrorMessage struct {
	Type    string `json:"type"`
	Message string `json:"message"`
}

AgentErrorMessage is the "agent_error" line the agent emits on stdout when a fatal error occurs before exiting. The channel manager forwards it so users are not left waiting in silence.

type ApprovalRequest

type ApprovalRequest struct {
	Type       string `json:"type"`
	ToolName   string `json:"tool_name"`
	ToolArgs   string `json:"tool_args"`
	ToolCallID string `json:"tool_call_id"`
}

ApprovalRequest is the "approval_request" line the agent emits on stdout when a tool needs user approval. The channel manager prompts the user and writes an ApprovalResponse to stdin.

type ApprovalResponse

type ApprovalResponse struct {
	Type       string `json:"type"`
	ToolCallID string `json:"tool_call_id"`
	Approved   bool   `json:"approved"`
	Scope      string `json:"scope,omitempty"`
}

ApprovalResponse is the "approval_response" the channel manager writes to the agent's stdin after the user decides.

type PlanApprovalResponse added in v0.239.0

type PlanApprovalResponse struct {
	Type   string `json:"type"`
	PlanID string `json:"plan_id"`
	Action string `json:"action"`
}

PlanApprovalResponse is the "plan_approval_response" the host UI writes to the agent's stdin after the user decides on a plan. Action is one of PlanAccept, PlanAcceptStandard or PlanReject.

type UserQuestionRequest added in v0.191.0

type UserQuestionRequest struct {
	Type       string          `json:"type"`
	ToolCallID string          `json:"tool_call_id"`
	Questions  json.RawMessage `json:"questions"`
}

UserQuestionRequest is the "user_question_request" line emitted on stdout when AskUserQuestion asks the user to pick from a small form. Questions carries the tool's []agentdomain.UserQuestion as raw JSON so ipc stays dependency-free.

type UserQuestionResponse added in v0.191.0

type UserQuestionResponse struct {
	Type       string          `json:"type"`
	ToolCallID string          `json:"tool_call_id"`
	Answers    json.RawMessage `json:"answers,omitempty"`
	Cancelled  bool            `json:"cancelled,omitempty"`
}

UserQuestionResponse is the "user_question_response" the host UI writes to the agent's stdin after the user submits or dismisses the form. Answers is the []agentdomain.UserQuestionAnswer, and Cancelled reports a dismissal.

Jump to

Keyboard shortcuts

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