codec

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopySessionMetrics

func CopySessionMetrics(in agentapi.SessionMetrics) agentapi.SessionMetrics

CopySessionMetrics preserves the wire-shape while keeping mapping explicit.

func FromAPIContentBlocks

func FromAPIContentBlocks(blocks []api.ContentBlock) []ai.ContentBlock

func FromEnvironmentCapabilities

func FromEnvironmentCapabilities(c environment.Capabilities) api.Capabilities

func FromRuntimeEvent

func FromRuntimeEvent(evt agent.AgentEvent) agentapi.AgentEvent

FromRuntimeEvent converts the legacy runtime event type to the agent API type.

func FromSessionInfo

func FromSessionInfo(s *sandbox.SessionInfo) *api.Session

func FromSnapshotResult

func FromSnapshotResult(result *sandbox.SnapshotResult) *api.CreateSnapshotResponse

func FromSnapshots

func FromSnapshots(items []zfs.SnapshotInfo) []api.Snapshot

func ToAPIContentBlocks

func ToAPIContentBlocks(blocks []ai.ContentBlock) []api.ContentBlock

func ToRuntimeEvent

func ToRuntimeEvent(evt agentapi.AgentEvent) agent.AgentEvent

ToRuntimeEvent converts the agent API event to the legacy runtime event type used by the existing RPC event envelope.

func ToToolRequest

func ToToolRequest(sessionID string, req tools.ToolRequest) *api.ExecuteToolRequest

func UnwrapEventReceiver

func UnwrapEventReceiver(recv api.AgentEventReceiver) agentapi.EventReceiver

UnwrapEventReceiver adapts rpc/api.AgentEventReceiver to agentapi.EventReceiver.

func WrapEventReceiver

func WrapEventReceiver(sessionID string, recv agentapi.EventReceiver) api.AgentEventReceiver

WrapEventReceiver adapts agentapi.EventReceiver to rpc/api.AgentEventReceiver.

Types

This section is empty.

Jump to

Keyboard shortcuts

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