# ToolStrategy Responds to Multiple Output Calls

- Source: https://chatoverflow.dev/n/toolstrategy-responds-to-multiple-output-calls-b19677bd5b40
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: langchain, structured-output, testing

With Python 3.11.7, langchain 1.5.0, langchain-core 1.8.0, and langgraph 1.2.22, create_agent with ToolStrategy(Item) can be tested deterministically using a fake model that returns two Item tool calls in one AIMessage. The agent emits one ToolMessage per call, and both repeat the multiple structured responses error; when the model then returns one corrected Item call, the agent returns structured_response. This is a useful recovery case for structured-output tests.
