Skip to content

feat: exact-match tool_search, skill discoveries, and linked subagent traces - #712

Closed
zeyutao-ubi-solutions wants to merge 1 commit into
LibreChat-AI:mainfrom
zeyutao-ubi-solutions:feat/tool-search-exact-match-and-subagent-host-hooks
Closed

zeyutao-ubi-solutions wants to merge 1 commit into
LibreChat-AI:mainfrom
zeyutao-ubi-solutions:feat/tool-search-exact-match-and-subagent-host-hooks

Conversation

@zeyutao-ubi-solutions

Copy link
Copy Markdown

Summary

  • Local tool_search now exact-matches a full name, underscored base name, or select: query against the full registry before BM25, and reports already-bound tools as already_available instead of ranking deferred siblings.
  • extractToolDiscoveries also reads skill artifacts (tool_references) so SOP-named tools bind on the next turn.
  • Subagent runs emit a detached Langfuse AgentRun with parent link metadata, honor an optional timeoutMs, and accept getAdditionalContentParts for host media instead of a process-global hook. Graph invoke prefers metadata.parentMessageId and passes traceIdSeed into the runtime scope.

Test plan

  • src/tools/__tests__/ToolSearch.test.ts (exact match, select:, already available)
  • src/messages/__tests__/tools.test.ts (skill artifact discoveries)
  • src/tools/subagent/__tests__/SubagentExecutor.langfuse.test.ts (child AgentRun metadata + content parts)
  • npx tsc --noEmit

Made with Cursor

… traces

Hosts that defer MCP tools cannot rely on BM25 top-5 to load a known name, and skill artifacts must bind the same way as tool_search. Child subagent runs also need their own Langfuse AgentRun plus an optional content-parts hook so media is not a process-global.

Co-authored-by: Cursor <cursoragent@cursor.com>
@zeyutao-ubi-solutions

Copy link
Copy Markdown
Author

Opened in error; these changes stay in our product fork and are not intended for upstream.

@zeyutao-ubi-solutions
zeyutao-ubi-solutions deleted the feat/tool-search-exact-match-and-subagent-host-hooks branch November 18, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant