MockLlmProvider
Defined in the LLM module.Rust AI Agent SDK Mock LLM provider for testing (no API calls)
Fields
| Name | Type | Description |
|---|---|---|
model | String | - |
responses | std::sync::Mutex<Vec<String>> | - |
tool_calls | std::sync::Mutex<Vec<Vec<ToolCall>>> | - |
Methods
new
add_response
| Name | Type |
|---|---|
response | impl Into<String> |
add_tool_calls
| Name | Type |
|---|---|
calls | Vec<ToolCall> |
with_response
| Name | Type |
|---|---|
response | impl Into<String> |
Source
View on GitHub
praisonai/src/llm/mod.rs at line 393
