How to Retrieve Action/Plan/Reasoning with OpenaAI Assistant

Mayank Goel 0 Reputation points
2024-12-05T21:30:32.7566667+00:00

I am creating azure ai assistant with below steps:

assistant = client.beta.assistants.create()
thread = client.beta.threads.create()
message = client.beta.threads.messages.create()

run = client.beta.threads.runs.create()

#Retrieve run
run = client.beta.threads.runs.retrieve()

#Retrieve Messages
messages = client.beta.threads.messages.list(thread_id=thread.id)

However, from messages/run object, I was curious to understand how agent/LLM are coming up with plan/action/reasoning and was not able to get any parameters.

Could someone guide me on how to properly retrieve these logs using the Python? Are there specific endpoints or configurations required to achieve this?

Any help or pointers would be greatly appreciated!

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,817 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.