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
