Is there a way to see what assistant is asking the file search tool during its run

Hi,

i am trying to debug my assistant which is using file search tool. I need to know how many times the assistant is invoking the file search tool and what are the queries each time it is asking the tool.
also, I am using python to develop and debug the assistants. please point me to a source where i can clarify my doubt.

thanks in advance,
Muni

Besides just asking, if you want to monitor, you can get run steps.

Most of the interesting detail in the Run Step object lives in the step_details field. There can be two types of step details:

  1. message_creation: This Run Step is created when the Assistant creates a Message on the Thread.
  2. tool_calls: This Run Step is created when the Assistant calls a tool. Details around this are covered in the relevant sections of the Tools guide.