Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
CodeAgent
Defined in the agents module.
Rust AI Agent SDK
A specialized agent for code generation and execution.
Fields
| Name | Type | Description |
|---|
name | String | Agent name |
model | String | LLM model |
config | CodeConfig | Code configuration |
instructions | Option<String> | System instructions |
verbose | bool | Verbose output |
Methods
new
fn new() -> CodeAgentBuilder
Create a new CodeAgent builder
name
Get agent name
generate
fn generate(&self, description: &str) -> Result<String>
Generate code from a description (placeholder)
Parameters:
execute
fn execute(&self, _code: &str) -> Result<CodeExecutionResult>
Execute code (placeholder - would require sandbox)
Parameters:
review
fn review(&self, code: &str) -> Result<String>
Review code (placeholder)
Parameters:
Source
View on GitHub
praisonai/src/agents/mod.rs at line 776