Ask a question to get started
Enter to send•Shift+Enter new line
Process messages before model invocation, potentially triggering summarization.
before_model( self, state: AgentState[Any], runtime: Runtime[ContextT] ) -> dict[str, Any] | None
state
AgentState[Any]
The agent state.
runtime
Runtime[ContextT]
The runtime environment.