pub struct Prepared {
pub runner: Arc<dyn LlmProvider>,
pub chat: ChatRequest,
pub model: String,
pub session_id: String,
pub id: String,
pub metadata: Map<String, Value>,
pub requested_model: Option<String>,
pub skills: Option<StagedSkills>,
}Expand description
Everything a task needs once the harness and session are settled.
Fields§
§runner: Arc<dyn LlmProvider>The runner that will answer.
chat: ChatRequestThe request to hand it.
model: StringThe model that will run.
session_id: StringThe session this task belongs to.
id: StringThe response id, allocated before the work starts.
metadata: Map<String, Value>Session id, ignored fields, and any model substitution.
requested_model: Option<String>What the client asked for, when it differs from what will run.
skills: Option<StagedSkills>The harness’s skill bundles, staged where the runner reads them and removed once this task is done with them.
Auto Trait Implementations§
impl !RefUnwindSafe for Prepared
impl !UnwindSafe for Prepared
impl Freeze for Prepared
impl Send for Prepared
impl Sync for Prepared
impl Unpin for Prepared
impl UnsafeUnpin for Prepared
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.