feat: feed dependency manifests to LLM for capability-accurate displayNames - #621
Closed
Yimin-Jin wants to merge 1 commit into
Closed
feat: feed dependency manifests to LLM for capability-accurate displayNames#621Yimin-Jin wants to merge 1 commit into
Yimin-Jin wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Improves LLM-generated
displayName/descriptionquality by feeding each sample's dependency manifests to the model, not just its README. This mirrors how a human reviewer verifies a name — a PM audit (gist) found that 2 of 4 "voicelive" samples don't actually use Azure Voice Live, so naming by folder/README alone is misleading. The real capability lives in the deps.Changes
requirements.txt,pyproject.toml,*.csproj,azure.yaml; lockfiles excluded). Stored in module state so they never leak into the catalog JSON.fetchDependencySignalsfetches those files (reusing the existing retryingfetchText), each capped at 3000 chars, 10000 chars total — generous enough that a normal manifest is never truncated, while bounding pathological upstream inputs so per-request cost stays predictable (well within the 182k TPM limit).dependencyPromptSectionhelper. Falls back cleanly to README-only when no manifest is available.DISPLAY_NAME_GUIDANCEupdated to surface real capabilities (MCP/RAG/Voice Live) only when the deps back them, with two capability-driven few-shot examples (04-foundry-toolbox→ "MCP Toolbox Integration";pipecat-webrtc→ "Real-Time Voice Agent", NOT "Voice Live").AZURE_OPENAI_DEPLOYMENTfallback default fromgpt-4o-minitogpt-5.4-minito match the deployed model.Notes
fetchText,callLLMForJson, and the shared guidance/prompt helpers (DRY).node --checkpasses; no type/lint errors.