Runnable Agent Protocol • Rust AI Agent SDK
RunnableAgentProtocol: Extended Protocol for agents that support run/start methods.
RunnableAgentProtocol
Defined in the protocols module.
Rust AI Agent SDK
Extended Protocol for agents that support run/start methods.
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
input["Input Data"] --> agent["Agent: RunnableAgentProtocol"]
agent --> output["Output Result"]
style agent fill:#8B0000,color:#fff
style input fill:#8B0000,color:#fff
style output fill:#8B0000,color:#fffMethods
run
fn run(&self, prompt: &str) -> Result<String>Run the agent with a prompt (alias for chat in most cases)
Parameters:
| Name | Type |
|---|---|
prompt | &str |
Source
View on GitHubpraisonai/src/protocols/mod.rs at line 0