Skip to main content

sample_tool_response_with_text

Function sample_tool_response_with_text 

Source
pub fn sample_tool_response_with_text(
    text: &str,
    calls: Vec<ToolCall>,
) -> ChatResponse
Expand description

Builds a ChatResponse containing tool calls AND a text block.

Simulates an LLM that says something (“I’ll help with that”) alongside requesting tool calls.