IFClite TypeScript API
    Preparing search index...

    Interface IfcAgent

    interface IfcAgent {
        promptSnippet: string;
        openStream(options?: IfcStreamOptions): ResponseStream<StreamPart>;
        parse(reply: string): ResponsePart[];
    }
    Index
    promptSnippet: string

    Append to the system prompt.

    • Stream a reply chunk by chunk. A rejected block yields an error part and parsing continues.

      Parameters

      Returns ResponseStream<StreamPart>

    • Parse a complete reply. Throws A2uiError with partialResults on a bad block.

      Parameters

      • reply: string

      Returns ResponsePart[]