pub struct StepContextBuilder { /* private fields */ }Expand description
Step Context Builder - extracts learnings when steps are discovered
Implementations§
Source§impl StepContextBuilder
impl StepContextBuilder
Sourcepub fn with_config(config: StepContextConfig) -> Self
pub fn with_config(config: StepContextConfig) -> Self
Create with custom config
Sourcepub fn build_context(
&self,
execution_id: ExecutionId,
step_id: StepId,
step_type: &str,
input: &str,
output: Option<&str>,
tool_calls: &[ToolCallInfo],
error: Option<&str>,
metadata: &HashMap<String, String>,
) -> StepContextResult
pub fn build_context( &self, execution_id: ExecutionId, step_id: StepId, step_type: &str, input: &str, output: Option<&str>, tool_calls: &[ToolCallInfo], error: Option<&str>, metadata: &HashMap<String, String>, ) -> StepContextResult
Build context from step data
Sourcepub fn build_child_context(
&self,
parent_execution_id: ExecutionId,
parent_step_id: StepId,
child_step_id: StepId,
task: &str,
parent_context: &[ContextSegment],
) -> StepContextResult
pub fn build_child_context( &self, parent_execution_id: ExecutionId, parent_step_id: StepId, child_step_id: StepId, task: &str, parent_context: &[ContextSegment], ) -> StepContextResult
Build context for a child step being spawned
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StepContextBuilder
impl RefUnwindSafe for StepContextBuilder
impl Send for StepContextBuilder
impl Sync for StepContextBuilder
impl Unpin for StepContextBuilder
impl UnsafeUnpin for StepContextBuilder
impl UnwindSafe for StepContextBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more