Types of AI Agents

developer2026-10-28

On this page

The main types of AI agents are reflex, model-based reflex, goal-based, utility-based, and learning agents. Most developers now add a language model that picks tools at runtime. The practical choice is therefore which decision loop the agent runs. The type depends on how the agent picks its next step.

The classic agent types

Reflex agents choose an action from the current input alone. A thermostat that switches heating on below a set temperature is a reflex agent. It keeps no memory of earlier states.

Model-based reflex agents keep an internal state. That state tracks facts the agent cannot observe directly, such as a previous reading or an open session. The agent combines this state with its rules before it acts.

Goal-based agents pick actions that move them toward a target state. They search or plan over possible actions to reach the goal. A route planner that finds a path to a destination works this way.

Utility-based agents score possible outcomes and pick the action with the highest expected score. They handle trade-offs, such as cost against speed or accuracy against latency. A pricing engine that weighs margin against conversion behaves like this.

Learning agents improve from feedback. They contain a performance element that acts and a learning element that updates the rules or the model. A recommendation system that adjusts after user clicks is one example.

Agent types built on language models

Language-model agents usually combine three parts: a model, a set of tools, and a loop. The model reads the task, chooses a tool, reads the result, and decides the next step. Developers call this a tool-calling loop.

A single-tool agent calls one function per task. It suits narrow jobs, such as looking up an order status. Its failure modes are few because the decision space is small.

A ReAct-style agent alternates between short reasoning steps and tool calls until it reaches an answer. Each observation feeds the next step. This type handles open questions that need several lookups in sequence.

A planner-executor agent writes a plan first, then runs each step with a narrower worker. The planner stays out of the tool loop. This design reduces wasted calls on long tasks, although a poor plan still produces poor results.

A multi-agent system splits work across specialist agents. An orchestrator assigns subtasks and merges the results. Use this type when subtasks need separate tools or separate permissions. Otherwise, one agent with clear instructions is easier to debug.

Workflow-driven agents follow a fixed graph of steps, and the model fills in content at each node. Autonomous agents choose their own path through the task. Workflow-driven agents are easier to test. Autonomous agents cover more inputs but need more review.

Choosing a type for your build

Start with the decision the agent must make. Match the type to that decision. Three questions narrow the choice:

  • Does the next step depend on earlier steps? If not, a reflex or single-tool agent fits.
  • Do the steps follow a known order? If yes, a workflow-driven design fits.
  • Does the agent trade cost against quality? If yes, add a utility score to its choices.

Keep the first version small. Add memory, planning, or extra agents only after a test shows that the simpler design fails on real inputs.

Giving each agent type tools through MCP

Every type above needs tools to act on the outside world. The Model Context Protocol gives an agent a standard way to discover and call tools. APIbase is an MCP gateway. It offers a large catalog of tools from many providers across many categories. An agent reaches these tools through one interface instead of one integration per provider.

Pricing uses a range. The current price range is 0 to 29.99 USD. Check the live price before you budget a build, because a tool-calling loop multiplies calls.

Tool access does not change the agent type. A reflex agent with one MCP tool stays a reflex agent. Planning, memory, and evaluation remain in your code.

Limits and failure modes

Loops cost money. A tool-calling agent can repeat calls when a result stays unclear. Set a step limit and a spending limit before the agent runs in production.

Permissions need the same care. Give each agent only the tools its task requires. A research agent should not hold write access to billing.

Test each type on real inputs. Log every tool call and its result. Read those logs when the agent returns a wrong answer, because the failing step usually appears there first.

Live pricing — developer

Price per call, developer tools Horizontal bar chart of the price per call and the cache-hit price, in US dollars, for 12 developer tools. The same values are in the table below the chart. Price per call Cache-hit price $0.0 $0.0005 $0.001 Usage Time SeriesUsage Time Series $0.0 $0.0 Per-Tool Usage BreakdownPer-Tool Usage Breakdown $0.0 $0.0 Usage SummaryUsage Summary $0.0 $0.0 Discover ToolsDiscover Tools $0.0 $0.0 Batch Tool CallsBatch Tool Calls $0.0 $0.0 Tool Quality MetricsTool Quality Metrics $0.0 $0.0 Tool Quality RankingsTool Quality Rankings $0.0 $0.0 List Programming LanguagesList Programming Languages $0.001 $0.0001 Check CVE ID Reservation Stat…Check CVE ID Reservation Status $0.001 $0.0001 Security Advisories (deps.dev)Security Advisories (deps.dev) $0.001 $0.0001 Dependency Tree (deps.dev)Dependency Tree (deps.dev) $0.001 $0.0001 Package Info (deps.dev)Package Info (deps.dev) $0.001 $0.0001 US dollars per call
Price per call for developer tools, cheapest first.

Data source: live tool catalog snapshot, fetched 2026-10-28.

Chart data as a table
ToolPrice per callCache-hit price
Usage Time Series$0.0$0.0
Per-Tool Usage Breakdown$0.0$0.0
Usage Summary$0.0$0.0
Discover Tools$0.0$0.0
Batch Tool Calls$0.0$0.0
Tool Quality Metrics$0.0$0.0
Tool Quality Rankings$0.0$0.0
List Programming Languages$0.001$0.0001
Check CVE ID Reservation Status$0.001$0.0001
Security Advisories (deps.dev)$0.001$0.0001
Dependency Tree (deps.dev)$0.001$0.0001
Package Info (deps.dev)$0.001$0.0001
ToolProviderPrice/callCache-hit
Usage Time Seriesaccount$0$0
Per-Tool Usage Breakdownaccount$0$0
Usage Summaryaccount$0$0
Discover Toolsapibase$0$0
Batch Tool Callsplatform$0$0
Tool Quality Metricsplatform$0$0
Tool Quality Rankingsplatform$0$0
List Programming Languagesjudge0$0.001$0.0001
Check CVE ID Reservation Statuscve-mitre$0.001$0.0001
Security Advisories (deps.dev)depsdev$0.001$0.0001
Dependency Tree (deps.dev)depsdev$0.001$0.0001
Package Info (deps.dev)depsdev$0.001$0.0001

Connect via MCP

How a tool call worksAn AI agent sends a tool call to the APIbase gateway. The gateway checks payment, calls the provider API, and returns the JSON result to the agent.Your agentAPIbase gatewayProvider API1. tool call2. paid call3. JSON result flows back to the agent
Diagram: the path of one tool call.

Data source: gateway design, no measured values.

$ curl -X POST https://apibase.pro/api/v1/tools/account.timeseries/call \
  -H "Content-Type: application/json" -d '{"params": {}}'

FAQ

What are the main types of AI agents?

The classic types are reflex, model-based reflex, goal-based, utility-based, and learning agents. Language-model agents add practical types such as single-tool agents, ReAct-style agents, planner-executor agents, and multi-agent systems.

Which type should a developer build first?

Build the simplest type that fits the decision. A single-tool agent or a workflow-driven design often works for a first version. Add planning or extra agents only after tests show that the simpler design fails.

Does adding MCP tools change the agent type?

No. Tools give an agent more actions, but the type depends on how it chooses its next step. Planning, memory, and evaluation remain in your application code.

How do I control the cost of a tool-calling agent?

Set a maximum number of steps and a spending limit for each run. Log every tool call so you can see where repeated calls occur. Check the current price range before you budget, which is 0 to 29.99 USD.

  1. STEP 1/2 Connect your MCP client
  2. STEP 2/2 Browse the full catalog

Published: 2026-10-28Source: live apibase.pro catalog snapshot