TTMSMCPSamplingMessageContent.CreateToolUse Method
Creates content describing a tool the model wants to invoke.
API unit family: TMS.MCP.Sampling
Declaring type: TTMSMCPSamplingMessageContent
Syntax
class function CreateToolUse(const AId, AName: string; AInput: TJSONValue): TTMSMCPSamplingMessageContent; static;
Parameters
| Name | Description |
|---|---|
AId |
Identifier of the invocation, used to match its outcome to it later. |
AName |
Name of the tool to invoke. |
AInput |
Arguments for the invocation. The content takes ownership of it. |
Returns
New content of kind smctToolUse, owned by the caller.