Skip to content

items_to_messages method not handle "ResponseReasoningItemParam" #1165

@goooodle

Description

@goooodle

Please read this first

  • Have you read the docs?Agents SDK docs
  • Have you searched for related issues? Others may have faced similar issues.

Yes

Describe the bug

Image @classmethod def items_to_messages( cls, items: str | Iterable[TResponseInputItem], ) -> list[ChatCompletionMessageParam]:

This method does not handle "ResponseReasoningItemParam",
So raise UserError(f"Unhandled item type or structure: {item}")

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions