agentle.mcp.sampling.requestΒΆ

Sampling Request Module

This module defines the SamplingRequest class used to structure requests for language model completions or generations.

Functions

Field()

!!! abstract "Usage Documentation"

Classes

AssistantMessage(*, content[, role])

Message generated by an assistant in the MCP system.

BaseModel()

Alias for pydantic.BaseModel.

ModelPreference(*[, hints, costPriority, ...])

Represents preferences for model selection and behavior.

SamplingRequest(*, messages[, ...])

Represents a request for a language model completion or generation.

UserMessage(*[, role])

Represents a message from a user in the system.