Skip to content

Create a tiny-agents package #1451

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

Merged
merged 16 commits into from
May 20, 2025
Merged

Create a tiny-agents package #1451

merged 16 commits into from
May 20, 2025

Conversation

julien-c
Copy link
Member

image

@julien-c julien-c requested a review from evalstate May 13, 2025 18:39
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Available Commands:
run Run the Agent in command-line
serve Run the Agent as an OpenAI-compatible HTTP server
Copy link
Collaborator

@evalstate evalstate May 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

being able to run OR serve from the same config is 👌

@@ -0,0 +1,13 @@
{
Copy link
Collaborator

@evalstate evalstate May 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://gitmcp.io/ <-- for demo this is a nice remote server for a coding agent. (it makes any github repo an MCP server!). (just announced it now supports streaming http!)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good can you add it as a suggestion so i can commit it?

@julien-c julien-c marked this pull request as ready for review May 20, 2025 10:59
@julien-c
Copy link
Member Author

CI failure is unrelated as far as I can tell @coyotte508, merging

@julien-c julien-c merged commit ec546dd into main May 20, 2025
5 of 6 checks passed
@julien-c julien-c deleted the tiny-agents-package branch May 20, 2025 13:15
Copy link
Contributor

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arrrg, I arrived 1 minute late 😭

Comment on lines +2 to +3
"model": "Qwen/Qwen3-32B",
"provider": "novita",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to try tiny-agent but got an error:

Error: model features function calling not support
    at innerStreamingRequest (/home/wauplin/projects/huggingface.js/packages/inference/dist/index.cjs:1839:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async chatCompletionStream (/home/wauplin/projects/huggingface.js/packages/inference/dist/index.cjs:2115:3)
    at async Agent.processSingleTurnWithTools (/home/wauplin/projects/huggingface.js/packages/mcp-client/dist/src/index.js:198:22)
    at async Agent.run (/home/wauplin/projects/huggingface.js/packages/mcp-client/dist/src/index.js:328:9)
    at mainCliLoop (/home/wauplin/projects/huggingface.js/packages/tiny-agents/src/lib/mainCliLoop.ts:53:20)
    at main (/home/wauplin/projects/huggingface.js/packages/tiny-agents/src/cli.ts:146:3)

Node.js v20.11.1
 ELIFECYCLE  Command failed with exit code 7.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"model": "Qwen/Qwen3-32B",
"provider": "novita",
"model": "Qwen/Qwen2.5-72B-Instruct",
"provider": "nebius",

changing to this made it work for me

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

feel free to open a PR to add your own agent @Wauplin 😁

Does the other one work for you?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

opened a separate PR: #1466

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.

5 participants