#Weird error

1 messages · Page 1 of 1 (latest)

split crag
#

@devout torrent how to deal with this error: 'ToolCallsStepDetails' object has no attribute 'message_creation'

devout torrentBOT
#

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.

Unfortunately, without more specific information or code examples, it's difficult to provide a more precise solution. You may want to refer back to the OpenAI API documentation or the source code where the 'ToolCallsStepDetails' object is defined for more details.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: