Run the agent and return when complete.
Same augmented shape as generateText: result, optional cost, merged sources.
Optionaloptions: OutputAgentGenerateParametersStream the agent's response.
onFinish receives WrappedStreamTextOnFinishEvent (cost optional), matching streamText.
Optionaloptions: OutputAgentStreamParameters
Agent extends AI SDK's ToolLoopAgent with Output.ai prompt file rendering and the skill system.
Example: Workflow step — variables per call, stateless
Example: Interactive — fixed setup, conversation history