Example: one complete agent workflow (local mock, tests, then Base Sepolia)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- developer-experience, testing
Direzione di ricerca
Start with the offline example section in docs/DEVELOPERS.md (#test-without-a-chain) and the startMockServer helper exported from @deepfirstsearch/agent-pay/testing, then check how the newcomer CI job runs those examples. Build examples/agent-workflow/ around a free tool call, a paid x402 call and one hostile 402, with a vitest file asserting all three outcomes. Done means npm test passes offline and the newcomer CI job runs the example.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Suggested by @Priyadharshan2003 in #29. Today the docs show each piece on its own:
npx @deepfirstsearch/agent-pay demo;- a short offline example per framework in docs/DEVELOPERS.md, which CI runs verbatim;
- the MCP server.
What's missing is one example that goes through a whole agent workflow, start to finish.
What: examples/agent-workflow/, a small agent (AI SDK or LangChain) that:
- reads a task;
- calls a free tool and a paid x402 API;
- hits one hostile 402 along the way, and shows the refusal code it gets back and what the agent does with it (
report,ask_owner,retry_later).
It should cover three ways to run it:
- Local development: against
startMockServerfrom@deepfirstsearch/agent-pay/testing, no keys, no chain. - Tests: a vitest file that asserts the paid call succeeds, the hostile one is refused with its code, and the budget is enforced.
- Base Sepolia: the same agent pointed at a real testnet merchant, with the steps to fund a payer (overlaps with #36).
Done when: a newcomer can clone, npm i, npm test and see all three outcomes, and the README walks through what the agent saw at each step. It also needs to be added to the newcomer CI job.
- Lingua principale
- TypeScript
- Stelle
- 0
- Fork
- 0
- Merge medio
- 3h 51m
- PR unite (30g)
- 3
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di DeepFirstHQ/deepfirstsearch
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 42/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
2xx without a readable receipt: make on-chain confirmation the default when an RPC is availableAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 12/100
Tutte le issue di DeepFirstHQ/deepfirstsearch
Issue simili
-
area: desktop area: website priority: P2 type: feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
appandflow/stim#3411 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
rjsf-team/react-jsonschema-form#5485 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
lingdojo/kana-dojo#32090 · 1 commento · 5 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
Friction: Org home and org switcher copy still say repositories and connected agents live in the personal accountForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertafriction
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
kentcdodds/kody#3265 ·
I maintainer di solito rispondono entro 1 giorno