Theia API Documentation v1.66.0
    Preparing search index...

    Interface LanguageModelTool<T>

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

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

    Type Parameters

    • T
    Index

    Methods