What is the primary function of a managed agent?	It runs the agent loop on Anthropic's infrastructure, delegating the process away from the user's server.
When should a developer use a managed agent over a manual loop?	For long-running, complex tasks that involve state, file writing, or need to resume after network hiccups.
Name the four core primitives that make up the managed agent workflow.	Agent, Environment, Session, and Events.
In the managed agent flow, what component is defined as the "unit of work"?	The Session.
Which component (Agent, Environment, or Session) is reusable across multiple runs?	The Agent (which holds the model, system prompt, and toolset).
What is the critical timing rule when interacting with the event stream?	The event stream must be opened *before* sending the kickoff message.
Name three critical event types to monitor when consuming the event stream.	agent.message, agent.tool_use, and session.status_idle.
When should a developer choose a manual, custom agent loop?	When full, granular control over every step of the process is required.
