Skip to main content
Table of Contents

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

TMS.MCP.Client.hppPascalC++
procedure Execute(AQuery: string);
void __fastcall Execute(System::UnicodeString AQuery);

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.