1. Agent steps
  2. Tools and skills

An agent starts with only its signature. Tools, skills and files are how you give it more.

Give the agentWithIt is
Toolstools=[...]Your Python functions
Skillsskills=[...]Reusable instructions, loaded when needed
Filesava.File fields in the signatureDocuments in, documents out
Outside servicesintegrations=[...]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
  • def and async def both 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
RuntimeSkills
ClaudeAgentSupported
OpenAIAgentSupported
PredictRLMUses 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
SkillFor
skills.pdfPDF files
skills.docxWord documents
skills.spreadsheetExcel 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()
TypeCarries
ava.FileOne file
list[ava.File]Several files
ava.WorkspaceA whole folder the agent works in