- TypeScript
- Python
- Each tool execution gets its own
tool.*child span via thetool()helper. - Each LLM call gets its own
llm.*child span via thellm()helper. - The run span closes only after the whole loop finishes, so all turns are captured.
- Error recording and span lifecycle are handled automatically by the helpers.

