Class LLMStreamAbstract

Hierarchy (view full)

Implements

Constructors

Accessors

Methods

  • Collect the entire stream into a single response.

    Returns Promise<CollectedResponse>

    Example

    const response = await myLlm.chat({ chatCtx, toolCtx }).collect();

    for (const tc of response.toolCalls) {
    // execute the tool call...
    }