Documentation
¶
Index ¶
- type Handler
- func (h *Handler) CreateMessage(_ context.Context, _ *jsonrpc.TypedRequest[*mcpschema.CreateMessageRequest]) (*mcpschema.CreateMessageResult, *jsonrpc.Error)
- func (h *Handler) Elicit(ctx context.Context, request *jsonrpc.TypedRequest[*mcpschema.ElicitRequest]) (*mcpschema.ElicitResult, *jsonrpc.Error)
- func (h *Handler) Implements(method string) bool
- func (h *Handler) Init(_ context.Context, _ *mcpschema.ClientCapabilities)
- func (h *Handler) LastRequestID() jsonrpc.RequestId
- func (h *Handler) ListRoots(_ context.Context, _ *jsonrpc.TypedRequest[*mcpschema.ListRootsRequest]) (*mcpschema.ListRootsResult, *jsonrpc.Error)
- func (h *Handler) NextRequestID() jsonrpc.RequestId
- func (h *Handler) Notify(_ context.Context, _ *jsonrpc.Notification) error
- func (h *Handler) OnNotification(_ context.Context, _ *jsonrpc.Notification)
- func (h *Handler) SetConversationID(id string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler adapts MCP server-initiated elicitation/create callbacks into agently-core elicitation persistence + wait lifecycle.
func (*Handler) CreateMessage ¶
func (h *Handler) CreateMessage(_ context.Context, _ *jsonrpc.TypedRequest[*mcpschema.CreateMessageRequest]) (*mcpschema.CreateMessageResult, *jsonrpc.Error)
func (*Handler) Elicit ¶
func (h *Handler) Elicit(ctx context.Context, request *jsonrpc.TypedRequest[*mcpschema.ElicitRequest]) (*mcpschema.ElicitResult, *jsonrpc.Error)
func (*Handler) Implements ¶
func (*Handler) LastRequestID ¶
func (*Handler) ListRoots ¶
func (h *Handler) ListRoots(_ context.Context, _ *jsonrpc.TypedRequest[*mcpschema.ListRootsRequest]) (*mcpschema.ListRootsResult, *jsonrpc.Error)
func (*Handler) NextRequestID ¶
func (*Handler) OnNotification ¶
func (h *Handler) OnNotification(_ context.Context, _ *jsonrpc.Notification)
func (*Handler) SetConversationID ¶
Click to show internal directories.
Click to hide internal directories.