TTMSMCPCustomClient.Execute Method
Sends a query to the model, letting it call the tools the connected servers publish.
API unit family: TMS.MCP.Client
Declaring type: TTMSMCPCustomClient
Syntax
procedure Execute(AQuery: string);
Remarks
Only tools from servers that are running and have already published their catalog are offered. Each tool call the model makes is approved through OnBeforeUseTool and then waits for the server for at most ToolCallTimeout milliseconds. The answer is reported through OnExecuted.
Parameters
| Name | Description |
|---|---|
AQuery |
Text of the query. It replaces the context of the model connection rather than being appended to it, so each call starts from this text. |