Commit b20d7c5
authored
Load tiny-agents from Hub (#1472)
As discussed offline, this PR moves the curated collection of
tiny-agents to the Hub. Agents must now be contributed to
https://huggingface.co/datasets/huggingface/tiny-agents. This will be
helpful to maintain the collection independently from the
`@huggingface/tiny-agents` releases. It also makes them available for
the incoming Python equivalent
(huggingface/huggingface_hub#3098).
File resolution is still the same:
1. if agent_id is a file => load it as a `agent.json` file
2. if agent_id is a directory => load from it
3. if agent_id is a subdirectory in
https://huggingface.co/datasets/huggingface/tiny-agents/tree/main =>
load from it
4. otherwise raise exception
Usage is still:
```bash
npx @huggingface/tiny-agents run "julien-c/flux-schnell-generator"
```1 parent 6ba8619 commit b20d7c5
File tree
13 files changed
+126
-121
lines changed- packages/tiny-agents
- src
- agents
- evalstate
- hf-search
- hf.js-assistant
- julien-c
- flux-schnell-generator
- local-coder
- lib
13 files changed
+126
-121
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
88 | 97 | | |
89 | | - | |
| 98 | + | |
90 | 99 | | |
91 | | - | |
| 100 | + | |
92 | 101 | | |
93 | 102 | | |
94 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 0 additions & 13 deletions
This file was deleted.
0 commit comments