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
sandbox
| Name | Type |
|---|---|
sandbox | bool |
timeout
| Name | Type |
|---|---|
timeout | u32 |
allowed_languages
| Name | Type |
|---|---|
languages | Vec<String> |
Source
View on GitHub
praisonai/src/agents/mod.rs at line 721
