Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoMatchingModel = fmt.Errorf("no matching model found")
Functions ¶
func CompletionResponseToCallResult ¶ added in v0.0.79
func CompletionResponseToCallResult(resp *types.CompletionResponse, includeMessages bool, externalTools []mcp.Tool) (*types.CallResult, error)
Types ¶
type Sampler ¶
type Sampler struct {
// contains filtered or unexported fields
}
func NewSampler ¶
func (*Sampler) Sample ¶
func (s *Sampler) Sample(ctx context.Context, req mcp.CreateMessageRequest, opts ...SamplerOptions) (*types.CallResult, error)
type SamplerOptions ¶
type SamplerOptions struct {
ProgressToken any
Continue bool
Chat *bool
NewThread *bool
ToolChoice *mcp.ToolChoice
Tools []mcp.Tool
ToolIncludeContext string
ToolSource string
}
func (SamplerOptions) Merge ¶ added in v0.0.79
func (s SamplerOptions) Merge(other SamplerOptions) (result SamplerOptions)
Click to show internal directories.
Click to hide internal directories.