You'll install n00dles, define three agents, chain them into a pipeline, and run it. No YAML, no classes, no configuration files.
pip install n00dles
.env file.# Anthropic (recommended) export ANTHROPIC_API_KEY="sk-ant-api03-..." # Or OpenAI export OPENAI_API_KEY="sk-proj-..."
pipeline.py. An agent is just a decorated function — the docstring becomes the prompt.from n00dles import agent, pipeline, run # One decorator. That's the whole API. @agent(model="claude-haiku-4-5") def researcher(topic: str) -> str: """Research the given topic. Return 3 key facts as bullet points."""
>>. n00dles passes the output of each agent as input to the next.@agent(model="claude-sonnet-4-6") def writer(research: str) -> str: """Write a 200-word article based on the research.""" @agent(model="claude-haiku-4-5") def editor(draft: str) -> str: """Polish the draft. Fix any awkward phrasing.""" # >> chains output → input sequentially content_pipeline = pipeline( researcher >> writer >> editor, retry=3, timeout=60 )
run() and execute your file. n00dles will call each agent in sequence, retrying on failures.# One line to run the whole pipeline result = run(content_pipeline, topic="The future of multi-agent AI") print(result.output) print(f"Ran in {result.duration_ms}ms — {result.total_tokens} tokens")
python pipeline.py
noodles deploy wraps your pipeline as a serverless function and gives you a live endpoint.noodles deploy pipeline.py --name content-pipeline # → Deployed to https://run.n00dles.io/your-org/content-pipeline # → POST requests trigger your pipeline # → Logs and traces in your dashboard
noodles account? Sign up free — no credit card required.