vapor-chamber API reference - v1.3.0
    Preparing search index...

    Type Alias LlmAdapter

    LlmAdapter: (
        tools: AnthropicTool[],
        text: string,
        options: SynthesizeOptions,
    ) => Promise<ToolCallInput>

    Custom LLM adapter for synthesize(). Receives the Anthropic-format tools, user text, and options, and must return a ToolCallInput (same shape as an LLM tool_use block). Use this to route LLM calls through your own proxy, OpenAI, or any other provider.

    Type Declaration

    const adapter: LlmAdapter = async (tools, text) => {
    const res = await myLlmProxy.complete({ tools, prompt: text });
    return { name: res.toolName, input: res.args };
    };