before_model(
self,
state: AgentState[Any],
runtime: Runtime[Any]
) | Name | Type | Description |
|---|---|---|
state* | AgentState[Any] | |
runtime* | Runtime[Any] |
Moderate user input and tool results before the model is called.
Current agent state containing messages.
Agent runtime context.