Files
openclaw/src/agents
Rain 27453f5a31 fix(web-search): handle xAI Responses API format in Grok provider
The xAI /v1/responses API returns content in a structured format with
typed output blocks (type: 'message') containing typed content blocks
(type: 'output_text') and url_citation annotations. The previous code
only checked output[0].content[0].text without filtering by type,
which could miss content in responses with multiple output entries.

Changes:
- Update GrokSearchResponse type to include annotations on content blocks
- Filter output blocks by type='message' and content by type='output_text'
- Extract url_citation annotations as fallback citations when top-level
  citations array is empty
- Deduplicate annotation-derived citation URLs
- Update tests for the new structured return type

Closes #13520
2026-02-11 11:59:07 +01:00
..
2026-02-09 09:58:58 +09:00
2026-01-20 10:51:25 +00:00
2026-02-11 11:46:56 +01:00
2026-01-30 03:16:21 +01:00
2026-02-09 09:58:58 +09:00
2026-02-01 22:23:16 +00:00
2026-02-09 18:56:58 -08:00