mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
2bd709db63
Bumps [github.com/mark3labs/mcp-go](https://github.com/mark3labs/mcp-go) from 0.37.0 to 0.43.0. - [Release notes](https://github.com/mark3labs/mcp-go/releases) - [Commits](https://github.com/mark3labs/mcp-go/compare/v0.37.0...v0.43.0) --- updated-dependencies: - dependency-name: github.com/mark3labs/mcp-go dependency-version: 0.43.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
20 lines
695 B
Go
20 lines
695 B
Go
package client
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/mark3labs/mcp-go/mcp"
|
|
)
|
|
|
|
// ElicitationHandler defines the interface for handling elicitation requests from servers.
|
|
// Clients can implement this interface to request additional information from users.
|
|
type ElicitationHandler interface {
|
|
// Elicit handles an elicitation request from the server and returns the user's response.
|
|
// The implementation should:
|
|
// 1. Present the request message to the user
|
|
// 2. Validate input against the requested schema
|
|
// 3. Allow the user to accept, decline, or cancel
|
|
// 4. Return the appropriate response
|
|
Elicit(ctx context.Context, request mcp.ElicitationRequest) (*mcp.ElicitationResult, error)
|
|
}
|