Theia API Documentation v1.77.0
    Preparing search index...
    interface ToolCallExecutionOptions {
        cancellationToken?: CancellationToken;
        onResult?: (result: ToolCallOutcome) => void;
    }
    Index
    cancellationToken?: CancellationToken

    Optional cancellation token forwarded into each ToolInvocationContext.

    onResult?: (result: ToolCallOutcome) => void

    Optional per-call hook invoked exactly once per tool call as soon as that call settles (success, throw, or not-found). Use it for per-call side effects such as streaming a UI event or appending a provider message.

    Note: because calls run concurrently, this hook fires in completion order, not input order. Side effects that must be ordered should instead be performed by the caller over the returned (input-ordered) array of execution results.