#Weird error
1 messages · Page 1 of 1 (latest)
Hi @split crag. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
The error message you're encountering suggests that you're trying to access the message_creation attribute from a 'ToolCallsStepDetails' object, which doesn't exist.
From the information provided in the extracts, it seems that a Run Step object in OpenAI's API can have two types of step details: message_creation and tool_calls (source (https://platform.openai.com/docs/assistants/how-it-works)).
If you're dealing with a 'ToolCallsStepDetails' object, it's likely that the step details are of the tool_calls type, not message_creation. You should ensure that you're accessing the correct attribute for the type of step details you're dealing with.
If you need to access message_creation details, you should be working with a Run Step object that has message_creation step details. If you're unsure about the type of step details in your Run Step object, you may need to add some checks in your code to handle this.