-
Notifications
You must be signed in to change notification settings - Fork 472
Update tiny-agent format to follow VSCode format #1556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clean!
@@ -4,6 +4,7 @@ import * as readline from "node:readline/promises"; | |||
import { stdin, stdout } from "node:process"; | |||
import { z } from "zod"; | |||
import { PROVIDERS_OR_POLICIES } from "@huggingface/inference"; | |||
import type { ServerConfig } from "@huggingface/mcp-client"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a bit confusing to have the same name for something different in mcp-client vs. tiny-agent, but I guess this one's on me 😀
i guess we could potentially rename the one in mcp-client to McpServerConfig but 🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, thank you!
EDIT: We should remove the "config" nested mapping in https://github.com/huggingface/huggingface.js/blob/main/packages/tiny-agents/test/ServerConfigSchema.spec.ts
Indeed! Done in 477c01d |
Fix docs example after huggingface/huggingface_hub#3166 / #1556. Since release [0.33.2](https://github.com/huggingface/huggingface_hub/releases/tag/v0.33.2) `tiny-agents` config follow VSCode format. We made the change without a proper deprecation warning as it's still experimental and we wanted to harmonize with VSCode as quickly as possible (to avoid future conflicts). Related PRs: - huggingface/hub-docs#1816 - huggingface/transformers#39245 - huggingface/huggingface_hub#3205 - #1599
Same PR as huggingface/huggingface_hub#3166 in Python.
This PR introduces breaking changes but I think it's best to do it now. Goal is to have the same format as VSCode MCP config e.g.
breaking changes:
config
nested mapping => everything at root levelheaders
at root level instead of inside options.requestInitOnce this PR and huggingface/huggingface_hub#3166 are approved, we can merge + release them at the same time + update the config in https://huggingface.co/datasets/tiny-agents/tiny-agents to follow the new convention. For now, only wauplin/library-pr-reviewer has been updated for testing.
EDIT: PR merged and released. Made a release on Python SDK as well and updated all configs in https://huggingface.co/datasets/tiny-agents/tiny-agents.