beforeAgent
open suspend override fun beforeAgent(context: CallbackContext): CallbackChoice<EventActions, Content>
Callback executed before a specific agent starts processing.
This callback can be used for logging, setup, or short-circuiting the agent's execution.
Return
A CallbackChoice where returning CallbackChoice.Break with custom Content bypasses the agent's regular execution entirely and directly yields the provided content. Returning CallbackChoice.Continue with EventActions allows normal execution to proceed, merging any actions into the running context.
Parameters
context
The context of the current agent call.