Expand description
Request conversion: Responses API → Chat API.
Functions§
- convert_
input_ to_ messages - Convert input (with optional instructions) to Chat messages.
- convert_
tool_ choice - Convert Responses API tool choice to Chat API tool choice.
- convert_
tools - Convert Responses API tools to Chat API tools.
- extract_
content - Extract text content from Response API content.
- is_
tool_ choice_ none - Check if the tool choice is “none” (no tools).
- response_
to_ chat - Convert a Responses API request to a Chat API request.