liveBook · Manning

Agent workflow

As explained in Spring AI in Action

An agentic workflow pattern is a design for organizing an AI agent's actions into a coordinated problem-solving process.

An agentic workflow organizes an AI agent’s actions into a coordinated process for achieving a goal. Its core component interacts with an LLM, while the workflow determines how work is composed. section 12.0 section 12.4

The workflow builds on an augmented LLM equipped with retrieval, tools, and memory. These capabilities provide context, enable interaction with data and APIs, and preserve historical context. section 12.1

Common workflow patterns include:

  • Prompt chaining submits prompts in sequence, using one model output as the next input. section 12.1
  • Routing sends a prompt to the specialized task best suited to handle it. section 12.1
  • Parallelization divides work into tasks that can execute in parallel. section 12.1
  • Orchestrator-workers delegates tasks from an orchestrator LLM to worker LLMs and aggregates their results. section 12.1
  • Evaluator-optimizer loops between response generation, evaluation, and feedback. section 12.1

Prompt chaining with Spring AI

Start with prompt chaining as a foundational implementation pattern, then compose it with routing or parallelization to form more advanced workflows. Spring AI’s ChatClient can serve as the LLM-interacting component. section 12.2 section 12.4

How Spring AI in Action covers it

How deep it goes
Defines several patterns and begins implementation with prompt chaining, while stopping short of exhaustively implementing every pattern.
Examples
Uses prompt chaining, routing, parallelization, orchestrator-workers, and evaluator-optimizer as workflow patterns.
What it assumes
Builds on retrieval, tools, and memory capabilities previously used to augment LLMs.
What you can do after
Apply agentic patterns through Spring AI’s ChatClient and compose foundational workflows into larger solutions.
How it connects
Connects augmented LLMs, retrieval, tools, memory, ChatClient, prompt chaining, routing, parallelization, and agentic planning.

Also explained in

Compare how 3 books explain agent workflow →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Spring AI in Action. The section links point to the parts of the book it draws on.