fix: Extract text from assistant wrapper when no tool call present
When the model returns a response in the format:
assistant: [{'type': 'text', 'text': '...'}]
but without a tool call, extract just the text content
instead of returning the raw wrapper format.
Showing
Please
register
or
sign in
to comment