Agent Context & Message Compilers
AgentContext
AgentContext holds the conversation data: messages, system prompt, metadata, and an optional response format.
Message Compilers
Before each LLM call, the driver uses aCanCompileMessages implementation to transform AgentState into the final Messages sent to the LLM.
Custom Compiler
ImplementCanCompileMessages for custom message assembly: