bruteSourceBruteMiddlewareOtelToolCalls

class OtelToolCalls

Records tool calls the LLM requested as span events.

Runs POST-call: after the LLM responds, inspects ctx.functions for any tool calls the model wants to make, and adds a span event for each one with the tool name, call ID, and arguments.