Async start the shell session and run startup commands.
abefore_agent(
self,
state: ShellToolState[ResponseT],
runtime: Runtime[ContextT]
) -> dict[str, Any] | None| Name | Type | Description |
|---|---|---|
state* | ShellToolState[ResponseT] | The current agent state. |
runtime* | Runtime[ContextT] | The runtime context. |