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.
CodeConfig
Defined in the agents module.
Rust AI Agent SDK
Configuration for code execution settings.
Fields
| Name | Type | Description |
|---|
sandbox | bool | Enable sandboxed execution |
timeout | u32 | Execution timeout in seconds |
allowed_languages | Vec<String> | Allowed programming languages |
max_output_length | usize | Maximum output length |
working_directory | Option<String> | Working directory |
environment | HashMap<String | Environment variables |
Methods
new
Create a new CodeConfig
sandbox
fn sandbox(mut self, sandbox: bool) -> Self
Set sandbox mode
Parameters:
timeout
fn timeout(mut self, timeout: u32) -> Self
Set timeout
Parameters:
allowed_languages
fn allowed_languages(mut self, languages: Vec<String>) -> Self
Set allowed languages
Parameters:
| Name | Type |
|---|
languages | Vec<String> |
Source
View on GitHub
praisonai/src/agents/mod.rs at line 721