Skip to main content
Agents are the fundamental building blocks of the Runflow SDK. Each agent is configured with:
  • Name: Agent identifier
  • Instructions: Behavior instructions (system prompt)
  • Model: LLM model to use (OpenAI, Anthropic, Bedrock, Groq, Gemini, Azure OpenAI, or custom)
  • Tools: Available tools for the agent
  • Memory: Memory configuration
  • RAG: Knowledge base search configuration

Complete Agent Configuration

Supported Models

See LLM Providers for full details on configuring providers, credentials, and named configurations.

Agent Methods

Multi-Agent Systems (Supervisor Pattern)

Add the agents field to create a supervisor that automatically routes requests to specialized child agents using LLM-based intent classification:
Each child agent can have its own model, tools, RAG, and memory. The supervisor uses a cheap model for routing while specialists use powerful models for quality responses.
See the dedicated Supervisor guide for routing logic, cost optimization, fallback behavior, and configuration reference.

Debug Mode

Invoking other agents

An agent can invoke any other agent in the same tenant via the cross-agent SDK. Useful for reviewer / metrics / follow-up patterns where one agent orchestrates another.
All operations are tenant-scoped. See Cross-Agent SDK for invocation, executions reading, threads, memory administration, and the full security model.

Next Steps

Memory

Learn about memory management

Cross-Agent SDK

Invoke other agents, read executions, manage their memory

Tools

Create custom tools