Code Execution Step • Rust AI Agent SDK
CodeExecutionStep: Represents a code execution step during research
CodeExecutionStep
Defined in the extras module.
Rust AI Agent SDK
Represents a code execution step during research
Fields
| Name | Type | Description |
|---|---|---|
input_code | String | The input code |
output | Option<String> | The output (if any) |
Methods
new
fn new(input_code: impl Into<String>) -> SelfCreate a new code execution step
Parameters:
| Name | Type |
|---|---|
input_code | impl Into<String> |
with_output
fn with_output(input_code: impl Into<String>, output: impl Into<String>) -> SelfCreate with output
Parameters:
| Name | Type |
|---|---|
input_code | impl Into<String> |
output | impl Into<String> |
Source
View on GitHubpraisonai/src/parity/extras.rs at line 92