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

clienthandler

package
v0.1.58 Latest Latest
Warning

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

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

Documentation

Index

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 New

func New(elicitation *elicsvc.Service, conversations apiconv.Client, options ...Option) *Handler

New returns a client callback handler for MCP sessions.

func (*Handler) BeginSensitivePayload added in v0.1.57

func (h *Handler) BeginSensitivePayload() func()

func (*Handler) Elicit

func (*Handler) Implements

func (h *Handler) Implements(method string) bool

func (*Handler) Init

func (*Handler) LastRequestID

func (h *Handler) LastRequestID() jsonrpc.RequestId

func (*Handler) NextRequestID

func (h *Handler) NextRequestID() jsonrpc.RequestId

func (*Handler) Notify

func (h *Handler) Notify(_ context.Context, _ *jsonrpc.Notification) error

func (*Handler) OnNotification

func (h *Handler) OnNotification(_ context.Context, _ *jsonrpc.Notification)

func (*Handler) SetConversationID

func (h *Handler) SetConversationID(id string)

type Option added in v0.1.14

type Option func(*Handler)

func WithDefaultModel added in v0.1.14

func WithDefaultModel(model string) Option

func WithModelFinder added in v0.1.14

func WithModelFinder(finder llm.Finder) Option

type Sampler added in v0.1.14

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

Jump to

Keyboard shortcuts

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