Skip to content

Commit 85fbc74

Browse files
committed
Merge branch 'main' of github.com:huggingface/huggingface.js into tiny-agents-doc
2 parents b146667 + b20d7c5 commit 85fbc74

File tree

14 files changed

+126
-121
lines changed

14 files changed

+126
-121
lines changed

packages/tasks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@huggingface/tasks",
33
"packageManager": "[email protected]",
4-
"version": "0.19.9",
4+
"version": "0.19.10",
55
"description": "List of ML tasks for huggingface.co/tasks",
66
"repository": "https://github.com/huggingface/huggingface.js.git",
77
"publishConfig": {

packages/tiny-agents/README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,22 @@ npx @huggingface/tiny-agents run ./my-agent
8787

8888
Voilà! 🔥
8989

90+
91+
## Tiny Agents collection
92+
93+
Browse our curated collection of Tiny Agents at https://huggingface.co/datasets/tiny-agents/tiny-agents. Each agent is stored in its own subdirectory, following the structure outlined above. Running an agent from the Hub is as simple as using its `agent_id`. For example, to run the [`julien-c/flux-schnell-generator`](https://huggingface.co/datasets/tiny-agents/tiny-agents/tree/main/julien-c/flux-schnell-generator) agent:
94+
95+
```bash
96+
npx @huggingface/tiny-agents run "julien-c/flux-schnell-generator"
97+
```
98+
9099
<Tip>
91100

92101
Note: You can contribute your agent to the community by opening a Pull Request in the [tiny-agents](https://huggingface.co/datasets/tiny-agents/tiny-agents) Hugging Face dataset.
93102

94103
</Tip>
95104

96-
### Advanced: Programmatic Usage
105+
## Advanced: Programmatic Usage
97106

98107
```typescript
99108
import { Agent } from '@huggingface/tiny-agents';

packages/tiny-agents/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"@huggingface/inference": "workspace:^",
5555
"@huggingface/mcp-client": "workspace:^",
5656
"@huggingface/tasks": "workspace:^",
57+
"@huggingface/hub": "workspace:^",
5758
"@modelcontextprotocol/sdk": "^1.11.4",
5859
"zod": "^3.25.7"
5960
}

packages/tiny-agents/pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/tiny-agents/src/agents/evalstate/hf-search/PROMPT.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/tiny-agents/src/agents/evalstate/hf-search/agent.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

packages/tiny-agents/src/agents/evalstate/hf.js-assistant/PROMPT.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/tiny-agents/src/agents/evalstate/hf.js-assistant/agent.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

packages/tiny-agents/src/agents/julien-c/flux-schnell-generator/agent.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

packages/tiny-agents/src/agents/julien-c/local-coder/PROMPT.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)