Skip to main content

call_tools

Function call_tools 

Source
pub async fn call_tools(
    ctx: &AgentContext,
    tool_calls: &Vector<ToolCall>,
) -> Result<Vector<Message>, AgentError>
Expand description

Executes multiple tool calls and returns the results as messages.

Processes each tool call sequentially and returns tool response messages suitable for continuing an LLM conversation.

§Arguments

  • ctx - The agent context for the invocations
  • tool_calls - The tool calls to execute

§Returns

A vector of tool response messages, one for each tool call.