Table of Contents

TTMSMCPSamplingEvent Event Type

Signature of the handler that answers an inbound sampling/createMessage request, that is, a request for a model completion that arrives at this server rather than one this server sends to a client.

API unit family: TMS.MCP.Server

Parameters

Name Description
Sender Server that received the request.
SamplingRequest Parsed request: messages, model preferences, system prompt and sampling parameters.
AResult Result to return. Assign a completed result object; the server serializes and then releases it.