TTMSMCPClient.OnExecuted Event
Occurs when a query submitted with
Executehas produced its answer.
API unit family: TMS.MCP.Client
Declaring type: TTMSMCPClient
Inherited from: TTMSMCPCustomClient
Syntax
OnExecuted: TTMSMCPClientAIResultEvent;
Remarks
It fires once per query, after every tool invocation the model asked for along the way has completed. The answer text is empty when the exchange produced no content, in which case the status code and text describe what went wrong.
Parameters
| Name | Description |
|---|---|
Sender |
Client that produced the answer. |
AResponse |
Text of the answer, empty when the exchange produced no content. This is the value to display or store; the client keeps no copy for the handler to fetch later. |
AHttpStatusCode |
Status code of the exchange with the model service, which tells an empty answer caused by a failure apart from one that simply had no content. |
AHttpResult |
Status text that accompanies that code. |