Skip to main content

MockLlmProvider

Defined in the LLM module.
Rust AI Agent SDK Mock LLM provider for testing (no API calls)

Fields

Methods

new

Create a new mock provider

add_response

Add a response to return (FIFO queue) Parameters:

add_tool_calls

Add tool calls to return with next response Parameters:

with_response

Create with a single response Parameters:

Source

View on GitHub

praisonai/src/llm/mod.rs at line 393

Rust LLM

Rust Providers

Rust Failover