pub struct InferenceTurnContext<'a> {
pub thread_id: &'a str,
pub turn_id: &'a str,
pub tool_executor: Option<Arc<dyn TurnToolExecutor>>,
}Fields§
§thread_id: &'a str§turn_id: &'a str§tool_executor: Option<Arc<dyn TurnToolExecutor>>Optional callback that executes a single tool call through Roder’s tool
registry and policy, returning its result. Provided by the runtime for
providers that drive their own in-stream agent loop (e.g. the Cursor
bidi agent-runtime client, which must execute read/write/shell exec
requests mid-stream rather than ending the turn). Most providers ignore
it and surface tool calls as ToolCallCompleted events instead.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for InferenceTurnContext<'a>
impl<'a> !UnwindSafe for InferenceTurnContext<'a>
impl<'a> Freeze for InferenceTurnContext<'a>
impl<'a> Send for InferenceTurnContext<'a>
impl<'a> Sync for InferenceTurnContext<'a>
impl<'a> Unpin for InferenceTurnContext<'a>
impl<'a> UnsafeUnpin for InferenceTurnContext<'a>
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