- Agent steps
- Tools and skills
Agent steps
Tools and skills
What you can give an agent step - functions to call, instructions to load, files to read and write.
An agent starts with only its signature. Tools, skills and files are how you give it more.
| Give the agent | With | It is |
|---|---|---|
| Tools | tools=[...] | Your Python functions |
| Skills | skills=[...] | Reusable instructions, loaded when needed |
| Files | ava.File fields in the signature | Documents in, documents out |
| Outside services | integrations=[...] | Your own API, an MCP server. See Integrations. |
Tools
A tool is a plain Python function. The agent sees its name, its parameters and its docstring, and decides when to call it.
def lookup_vendor(name: str) -> dict:
"""Find a vendor by name. Returns its ID and payment terms."""
return VENDORS[name]
@ava.agent_step(ExtractInvoice, tools=[lookup_vendor])
async def extract_invoice(text: str, *, agent: ava.Agent) -> Invoice:
return (await agent(text=text)).outputs.invoice
defandasync defboth work.- Tools run in your process, with your permissions. Keep them narrow, and read-only where you can.
- Every call, with its arguments and result, is recorded in the trace.
Skills
A skill is a named set of instructions, in the open Agent Skills format. The agent sees the name and description, and loads the full instructions only when it needs them.
house_style = ava.agent.Skill(
name="house-style",
description="How we write customer emails. Use for any customer-facing text.",
instructions="Short sentences. No jargon. Sign with the team name.",
)
@ava.agent_step(DraftReply, runtime=ava.runtimes.ClaudeAgent(), skills=[house_style])
async def draft_reply(ticket: str, *, agent: ava.Agent) -> str:
return (await agent(ticket=ticket)).outputs.reply
Load a skill folder that already exists:
house_style = ava.agent.Skill.from_dir("skills/house-style") # a folder with a SKILL.md
| Runtime | Skills |
|---|---|
ClaudeAgent | Supported |
OpenAIAgent | Supported |
PredictRLM | Uses its own skills, set on the runtime (below) |
PredictRLM skills
PredictRLM ships three document skills. They add instructions and the Python packages the sandbox needs.
from avalanche.runtimes.predict_rlm import skills
@ava.agent_step(
ReadContract,
runtime=ava.runtimes.PredictRLM(lm="openai/gpt-5.5", skills=[skills.pdf]),
)
async def read_contract(contract: ava.File, *, agent: ava.Agent) -> list[str]:
return (await agent(contract=contract)).outputs.deadlines
| Skill | For |
|---|---|
skills.pdf | PDF files |
skills.docx | Word documents |
skills.spreadsheet | Excel workbooks |
Files
Declare a file as a field of the signature. The agent reads input files and writes output files;
you get them back as ava.File.
class FillReport(ava.Signature):
"""Fill the report template with the figures from the workbook."""
workbook: ava.File = ava.InputField()
report: ava.File = ava.OutputField()
| Type | Carries |
|---|---|
ava.File | One file |
list[ava.File] | Several files |
ava.Workspace | A whole folder the agent works in |
