AIP Agent - How to store session rids for "investigating reasoning"?

I have an agent.
I want to investigate the reasoning of this agent from Workshop, to give transparency to end users.
It seems I can pass the “session_rid” of a given session to get show the “trace of the agent”.

However, how can I capture this session rid ? Should the agent log it directly ? Should the thing calling the agent function store it (e.g. via action ?) ?

Hey @VincentF, you should be able to see the agent reasoning directly in Workshop if you turn on show reasoning toggle in the Interactive Widget.

If the session is not from Workshop, we recently released a new feature (release note coming!) where you can toggle on viewing all usages of an agent in Agent Studio View Mode and the Interactive Widget. That means you won’t need to store this sessionRid if the session is created outside the given Workshop, let’s say via the platform APIs or agent as function.

If you didn’t want to use this new feature, my suggestion would be to store in an object and to grab the sessionRid from the agent as function, platform APIs, or the variable in Workshop.

1 Like