liveBook · Manning

Code agency

As explained in Agent Design Patterns

The form of agency in which currently executing program code determines what happens next.

Code agency is the program-control mode in which the currently executing code decides what happens next. It contrasts with model agency, where AI-model outputs guide the next action; an agent can alternate between the two. section 1.1.1

Personal assistant control flow

Code invokes speech-to-text, then passes the query to an LLM. After the LLM interprets it, code calls the calendar tool and returns the result to the LLM to produce a reply. section 1.1.1

How Agent Design Patterns covers it

How deep it goes
Defines the control mode and illustrates it through an assistant workflow, without detailing implementation.
Examples
Uses a personal assistant flow involving speech-to-text, an LLM, and a calendar tool.
What you can do after
Understand how control can alternate between program code and AI models in an agent workflow.
How it connects
Contrasts code agency with model agency and connects both to AI agents.

This explainer was generated by Manning's knowledge graph from the text of Agent Design Patterns. The section links point to the parts of the book it draws on.