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
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
input["Input Data"] --> agent["Agent: before_agent"]
agent --> output["Output Result"]
style agent fill:#8B0000,color:#fff
style input fill:#8B0000,color:#fff
style output fill:#8B0000,color:#fffSignature
def before_agent(&self, _agent_name: &str, _input: &str) -> Result<Option<String>, String>Parameters
ParamField
&strNo description available.
ParamField
&strNo description available.