Before Agent • Rust AI Agent SDK

before_agent: Run before-agent hooks

before_agent

Method

</div>

This is a method of the HookRunner class in the hooks module.

Run before-agent hooks

Diagram

Input Data

Agent: before_agent

Output Result

Signature

python
def before_agent(
        &self,
        session_id: &str,
        agent_name: &str,
        message: &str,
    ) -> Result<HookResult>

Parameters

ParamField &str

No description available.

ParamField &str

No description available.

ParamField &str

No description available.

Returns

Rust Agent Rust Overview Rust Quickstart Rust Installation Rust Autonomy