Versions in this module Expand all Collapse all v0 v0.2.3 Apr 3, 2026 v0.2.2 Apr 3, 2026 v0.2.1 Apr 3, 2026 v0.2.0 Apr 3, 2026 Changes in this version + const AgentMessageRoleAssistant + const AgentMessageRoleToolResult + const AgentMessageRoleUser + const CurrentConversationSchemaVersion + func AgentMessageToConversationEntries(msg AgentMessage) []driver.ConversationEntry + type AbortRequest struct + Reason string + SessionID string + type AbortResponse struct + type AgentEvent struct + Assistant *ai.AssistantMessage + At time.Time + ControlMessage string + Delta string + DriverSessionID string + ErrorMessage string + Message *AgentMessage + Metadata map[string]any + SessionID string + State AgentState + ToolCallID string + ToolName string + ToolResult *AgentToolResult + Turn int + Type AgentEventType + type AgentEventType string + const EventAborted + const EventAgentMessageCompleted + const EventAgentMessageDelta + const EventDriverError + const EventFollowUpEnqueued + const EventProviderError + const EventSessionEnded + const EventSessionStarted + const EventStateChange + const EventSteeringApplied + const EventTerminalToolCompleted + const EventThinkingDelta + const EventToolCompleted + const EventToolError + const EventToolStarted + const EventToolUpdate + const EventTurnCompleted + const EventTurnStarted + type AgentMessage struct + CreatedAt time.Time + Message ai.Message + Turn int + func RecordToAgentMessage(rec AgentMessageRecord) (AgentMessage, error) + type AgentMessageRecord struct + Content json.RawMessage + CreatedAt time.Time + Role string + Turn int + func AgentMessageToRecord(msg AgentMessage) (AgentMessageRecord, error) + type AgentService interface + Abort func(ctx context.Context, req *AbortRequest) (*AbortResponse, error) + Close func() error + Continue func(ctx context.Context, req *ContinueRequest) (EventReceiver, error) + CreateSession func(ctx context.Context, req *CreateAgentSessionRequest) (*CreateAgentSessionResponse, error) + DestroySession func(ctx context.Context, req *DestroyAgentSessionRequest) (*DestroyAgentSessionResponse, error) + FollowUp func(ctx context.Context, req *FollowUpRequest) (*FollowUpResponse, error) + GetSession func(ctx context.Context, req *GetAgentSessionRequest) (*GetAgentSessionResponse, error) + ListSessions func(ctx context.Context, req *ListAgentSessionsRequest) (*ListAgentSessionsResponse, error) + ResumeSession func(ctx context.Context, req *ResumeSessionRequest) (*ResumeSessionResponse, error) + SendMessage func(ctx context.Context, req *SendMessageRequest) (EventReceiver, error) + Steer func(ctx context.Context, req *SteerRequest) (*SteerResponse, error) + SubscribeEvents func(ctx context.Context, req *SubscribeEventsRequest) (EventReceiver, error) + type AgentSessionSummary struct + CreatedAt time.Time + SessionID string + State string + type AgentState string + type AgentToolResult struct + Content []ai.ContentBlock + ExitCode *int + IsError bool + Metadata map[string]any + SnapshotID string + type ContinueRequest struct + SessionID string + type CreateAgentSessionRequest struct + type CreateAgentSessionResponse struct + SessionID string + State string + type DestroyAgentSessionRequest struct + SessionID string + type DestroyAgentSessionResponse struct + type EventReceiver interface + Close func() error + Recv func() (*AgentEvent, error) + type FollowUpRequest struct + Message string + SessionID string + type FollowUpResponse struct + type GetAgentSessionRequest struct + SessionID string + type GetAgentSessionResponse struct + ConversationLen int + Metrics SessionMetrics + SessionID string + State string + type ListAgentSessionsRequest struct + Labels map[string]string + type ListAgentSessionsResponse struct + Sessions []AgentSessionSummary + type ResumeSessionRequest struct + ConversationLog []AgentMessageRecord + SchemaVersion int + type ResumeSessionResponse struct + ConversationLen int + SessionID string + State string + Warnings []string + type SendMessageRequest struct + Message string + SessionID string + type SessionConfig struct + Driver string + Metadata map[string]any + Model string + Provider string + SessionID string + SystemPrompt string + ToolEnvironment ToolEnvironmentConfig + Tools []string + type SessionMetrics struct + Errors uint64 + MessagesAppended uint64 + ToolCallsFinished uint64 + ToolCallsStarted uint64 + TurnsCompleted uint64 + TurnsStarted uint64 + type SteerRequest struct + Message string + SessionID string + type SteerResponse struct + type SubscribeEventsRequest struct + SessionID string + type ToolEnvironmentConfig struct + LocalRootDir string + SandboxHostAddr string + SandboxSessionID string + Type ToolEnvironmentType + type ToolEnvironmentType string + const ToolEnvLocal + const ToolEnvSandbox