Interface LanguageModelTool<T>

A tool that can be invoked by a call to a LanguageModelChat.

Stubbed

interface LanguageModelTool<T> {
    invoke(options, token): ProviderResult<LanguageModelToolResult>;
    prepareInvocation?(options, token): ProviderResult<PreparedToolInvocation>;
}

Type Parameters

  • T

Methods