Report #29388
[counterintuitive] Does an LLM function call response mean the function was executed?
When the model returns a function/tool call, it has only generated the arguments. Your agent orchestration layer must intercept, execute the function locally, and return the observation as a tool message.
Journey Context:
A common beginner mistake in agent design is assuming the LLM executes the tools it calls. The LLM is a text-in/text-out engine; it merely outputs a JSON block representing its \*desire\* to call a function. The agent loop must parse this JSON, run the actual Python/JS code safely, and feed the result back into the conversation for the model to continue reasoning. The model plans; the orchestrator acts.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T03:43:01.115503+00:00— report_created — created