You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the OpenAI agents library and running agents like this:
result = await Runner.run(agent, prompt, context=context, session=self.session)
my_agent = Agent(
name="MyAgent",
instructions="Use the tool if needed.",
model="",
tools=[MyTool()],
)
After running the agent, how can I programmatically get the names of the tools that were actually used during the run?
Is there a built-in way to access this information from the result object or elsewhere, without using external tracing tools like Logfire or LangGraph?
If not, what is the recommended approach to capture tool usage for auditing or display purposes?