mcp

package
v0.0.0-...-2d843e3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentInstanceSummary

type AgentInstanceSummary struct {
	ID            string `json:"id"`
	AgentTemplate string `json:"agent_template"`
	Harness       string `json:"harness"`
	State         string `json:"state"`
}

type CheckpointSummary

type CheckpointSummary struct {
	ID              string          `json:"id"`
	AgentInstanceID string          `json:"agent_instance_id"`
	HeadTaskID      string          `json:"head_task_id,omitempty"`
	HistorySequence uint64          `json:"history_sequence"`
	State           string          `json:"state"`
	CreatedAt       string          `json:"created_at,omitempty"`
	Failure         *FailureSummary `json:"failure,omitempty"`
}

type CreateCheckpointInput

type CreateCheckpointInput struct {
	AgentInstanceID string `json:"agent_instance_id" jsonschema:"AgentInstance UUID"`
	RequestID       string `json:"request_id,omitempty" jsonschema:"Optional stable request ID for idempotency"`
}

type CreateCheckpointOutput

type CreateCheckpointOutput struct {
	Checkpoint CheckpointSummary `json:"checkpoint"`
}

type FailureSummary

type FailureSummary struct {
	Reason  string `json:"reason"`
	Message string `json:"message"`
}

type ForkAgentInstanceInput

type ForkAgentInstanceInput struct {
	CheckpointID string `json:"checkpoint_id" jsonschema:"Checkpoint UUID"`
	RequestID    string `json:"request_id,omitempty" jsonschema:"Optional stable request ID for idempotency"`
}

type ForkAgentInstanceOutput

type ForkAgentInstanceOutput struct {
	AgentInstance AgentInstanceSummary `json:"agent_instance"`
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func New

func New(instances *agentinstance.Service, checkpoints *checkpoint.Service, gateway a2asrv.RequestHandler) (*Handler, error)

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type InvokeAgentInstanceInput

type InvokeAgentInstanceInput struct {
	AgentInstanceID string `json:"agent_instance_id" jsonschema:"AgentInstance UUID"`
	Message         string `json:"message" jsonschema:"Message to send to the agent"`
	MessageID       string `json:"message_id,omitempty" jsonschema:"Optional stable A2A message ID for idempotency"`
}

type InvokeAgentInstanceOutput

type InvokeAgentInstanceOutput struct {
	AgentInstanceID string `json:"agent_instance_id"`
	TaskID          string `json:"task_id"`
	ContextID       string `json:"context_id"`
	State           string `json:"state"`
	Text            string `json:"text,omitempty"`
}

type ListAgentInstancesInput

type ListAgentInstancesInput struct {
	PageSize  int    `json:"page_size,omitempty" jsonschema:"Maximum number of AgentInstances to return"`
	PageToken string `json:"page_token,omitempty" jsonschema:"Token returned by a previous call"`
}

type ListAgentInstancesOutput

type ListAgentInstancesOutput struct {
	AgentInstances []AgentInstanceSummary `json:"agent_instances"`
	NextPageToken  string                 `json:"next_page_token,omitempty"`
}

type ListCheckpointsInput

type ListCheckpointsInput struct {
	AgentInstanceID string `json:"agent_instance_id" jsonschema:"AgentInstance UUID"`
	PageSize        int    `json:"page_size,omitempty" jsonschema:"Maximum number of checkpoints to return"`
	PageToken       string `json:"page_token,omitempty" jsonschema:"Token returned by a previous call"`
}

type ListCheckpointsOutput

type ListCheckpointsOutput struct {
	Checkpoints   []CheckpointSummary `json:"checkpoints"`
	NextPageToken string              `json:"next_page_token,omitempty"`
}

Jump to

Keyboard shortcuts

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