Generate elements from an async iterable, and a boolean indicating if it is the last element.
Check the response from the completion call.
Generate elements from an iterable, and a boolean indicating if it is the last element.
Convert a dict to a message.
Convert a message chunk to a message.
Convert a message to a dict.