@deskcreate/agentcraft
    Preparing search index...

    Class DeterministicFakeProvider

    Hierarchy

    • BaseLLMProvider
      • DeterministicFakeProvider
    Index

    Constructors

    Properties

    calls: LLMCallParams[] = []
    followUps: ToolResult[][] = []
    toolCalls: { params: LLMCallParams; tools: ToolDefinition[] }[] = []

    Methods

    • Streams the LLM response as an async generator of chunks.

      Streaming does not retry. If the connection fails mid-stream, partial tokens have already been yielded to the caller, so retrying would produce duplicate or incoherent output. Errors surface as typed AgentCraftErrors.

      For retry-on-failure before the first token, use AgentPool with a fallback Agent.

      Parameters

      Returns AsyncGenerator<StreamChunk>