Increment tool call counts after a model call and check limits.
after_model(
self,
state: ToolCallLimitState[ResponseT],
runtime: Runtime[ContextT]
) -> dict[str, Any] | None| Name | Type | Description |
|---|---|---|
state* | ToolCallLimitState[ResponseT] | The current agent state. |
runtime* | Runtime[ContextT] | The langgraph runtime. |