mirror of https://github.com/aliasrobotics/cai.git
## Context By default, the outputs of tools are sent to the LLM again. The LLM gets to read the outputs, and produce a new response. There are cases where this is not desired: 1. Every tool results in another round trip, and sometimes the output of the tool is enough. 2. If you force tool use (via model settings `tool_choice=required`), then the agent will just infinite loop. This enables you to have different behavior, e.g. use the first tool output as the final output, or write a custom function to process tool results and potentially produce an output. ## Test plan Added new tests and ran existing tests Also added examples. Closes #117 |
||
|---|---|---|
| .. | ||
| assets | ||
| ref | ||
| stylesheets | ||
| agents.md | ||
| config.md | ||
| context.md | ||
| guardrails.md | ||
| handoffs.md | ||
| index.md | ||
| models.md | ||
| multi_agent.md | ||
| quickstart.md | ||
| results.md | ||
| running_agents.md | ||
| streaming.md | ||
| tools.md | ||
| tracing.md | ||