Method CallAsync
CallAsync(string, CancellationToken)
Calls the operation as InvokeAsync(string, CancellationToken) does and returns the whole exchange (the request as sent, the response as received, and the tool's answer), for a host that shows a test call or logs what a tool did.
public Task<HttpApiTool.Exchange> CallAsync(string arguments, CancellationToken cancellationToken = default)
Parameters
argumentsstringThe tool arguments, as a JSON object.
cancellationTokenCancellationTokenCancels the call.
Returns
- Task<HttpApiTool.Exchange>
The exchange; Error is set when nothing was received.