Feature request: Support for server hosted tool calling and results #16287
bilyana-ilieva
started this conversation in
Feature Requests & Suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
Our custom Responses-API-compatible backend executes some tool calls server-side and streams them back using a custom item type prefixed with its implementor slug (e.g.
implementor_slug:function_call) — following the Open Responses spec's extensibility guidelines for hosted tools and extended item types.We have implemented a concept which intercepts these events at the fetch/stream layer and rewrites them in-flight to look like standard mcp_call items (with the real packet stashed under a hidden carrier key), so the existing MCP UI/parsing/history-replay code paths handle them with zero new frontend work. Wiring lives in
packages/api/src/agents/run.ts: it's only activated when an agent's baseURL matchesMY_API_INTERNAL_BASE_URLanduseResponsesApi: true.Will this enhancement be valuable to other contributors?
Is it planned that LibreChat will eventually support server hosted tool calling and results?
Thanks in advance!
All reactions