Before Agent • Rust AI Agent SDK

before_agent: Called before agent execution

before_agent

Method

</div>

This is a method of the HookPluginProtocol class in the plugins module.

Called before agent execution

Diagram

Input Data

Agent: before_agent

Output Result

Signature

python
def before_agent(&self, _agent_name: &str, _input: &str) -> Result<Option<String>, String>

Parameters

ParamField &str

No description available.

ParamField &str

No description available.

Returns

Rust Agent Rust Overview Rust Quickstart Rust Installation Rust Autonomy