[ 
https://issues.apache.org/jira/browse/CAMEL-24670?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Federico Mariani reassigned CAMEL-24670:
----------------------------------------

    Assignee: Federico Mariani

> camel-openai: complete the Responses API support
> ------------------------------------------------
>
>                 Key: CAMEL-24670
>                 URL: https://issues.apache.org/jira/browse/CAMEL-24670
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-openai
>            Reporter: Federico Mariani
>            Assignee: Federico Mariani
>            Priority: Major
>
> The {{responses}} operation misses several Responses API features and 
> silently ignores some endpoint options. This ticket groups the fixes, one 
> small commit each.
> *Fixes*
> * {{CamelOpenAIResponseModel}} and the GenAI span carry the SDK union type 
> string instead of the model id.
> * {{hostedMcpTools}} only sends {{server_label}}, {{server_url}} and 
> {{server_description}}, dropping {{require_approval}} (API default 
> {{always}}), {{allowed_tools}}, {{headers}} and {{authorization}}. Every 
> field is now sent and the option is marked secret.
> * A response holding only {{mcp_approval_request}} items completes the 
> exchange with an empty body. It now fails, naming the pending calls.
> * {{developerMessage}} and {{conversationMemory}} are ignored.
> * A PDF {{byte[]}} body is silently dropped when {{userMessage}} is set.
> *Improvements*
> * Citations of {{web_search}} / {{file_search}} in the 
> {{CamelOpenAIResponseAnnotations}} header.
> * PDF bodies sent as {{input_file}}.
> * {{conversationId}} option for the Conversations API.
> * {{conversationMemory}} chains {{previous_response_id}}.
> * MCP servers ({{mcpServer.*}}) and route tools ({{tags}}) run in a tool 
> loop, as for {{chat-completion}}.
> * {{background}} option, {{CamelOpenAIResponseStatus}} header, and 
> {{responses-retrieve}} / {{responses-cancel}} operations.
> *Tests*
> * camel-test-infra-openai-mock: request recording, Responses output items, 
> function calls, retrieve/cancel/background, error replies.
> * Opt-in {{OpenAIResponsesExternalServiceIT}} and 
> {{OpenAIResponsesMcpExternalServiceIT}}, verified against vLLM Metal with 
> Qwen3-4B-Instruct-2507.
> Branch: https://github.com/Croway/camel/tree/openai-improvements
> _Claude Code on behalf of Federico Mariani (Croway)_



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to