Help us shape the future of Go! Take the 2026 Go Developer Survey

mcp

package
v0.0.0-...-12aa4d4 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckpointSummary

type CheckpointSummary struct {
	ID              string          `json:"id"`
	SessionID       string          `json:"session_id"`
	Name            string          `json:"name,omitempty"`
	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 {
	SessionID          string `json:"session_id" jsonschema:"Session UUID"`
	ExpectedHeadTaskID string `json:"expected_head_task_id" jsonschema:"Terminal task ID to save; fails if the conversation has advanced"`
	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 ForkSessionInput

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

type ForkSessionOutput

type ForkSessionOutput struct {
	Session SessionSummary `json:"session"`
}

type Handler

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

func (*Handler) ServeHTTP

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

type InvokeSessionInput

type InvokeSessionInput struct {
	SessionID string `json:"session_id" jsonschema:"Session 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 InvokeSessionOutput

type InvokeSessionOutput struct {
	SessionID string `json:"session_id"`
	TaskID    string `json:"task_id"`
	ContextID string `json:"context_id"`
	State     string `json:"state"`
	Text      string `json:"text,omitempty"`
}

type ListCheckpointsInput

type ListCheckpointsInput struct {
	SessionID string `json:"session_id" jsonschema:"Session 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"`
}

type ListSessionsInput

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

type ListSessionsOutput

type ListSessionsOutput struct {
	Sessions      []SessionSummary `json:"sessions"`
	NextPageToken string           `json:"next_page_token,omitempty"`
}

type SessionSummary

type SessionSummary struct {
	ID    string `json:"id"`
	Agent string `json:"agent"`
	State string `json:"state"`
}

Jump to

Keyboard shortcuts

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