Table of Contents

Method CallAsync

Namespace
LMKit.Agents.Tools.Http
Assembly
LM-Kit.NET.dll

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

arguments string

The tool arguments, as a JSON object.

cancellationToken CancellationToken

Cancels the call.

Returns

Task<HttpApiTool.Exchange>

The exchange; Error is set when nothing was received.

Share