pub struct TurnRequest {
pub continuation: TurnContinuation,
pub folder: PathBuf,
pub main_checkout_root: Option<PathBuf>,
pub model: String,
pub prompt: TurnPrompt,
pub reasoning_level: ReasoningLevel,
pub request_kind: AgentRequestKind,
}Expand description
Input payload for one provider-agnostic agent turn.
Fields§
§continuation: TurnContinuationPrior context needed to continue this turn.
folder: PathBufSession worktree folder where the agent runs.
main_checkout_root: Option<PathBuf>Main repository checkout that must remain read-only during the turn, when Agentty can resolve it.
model: StringProvider-specific model identifier.
prompt: TurnPromptStructured prompt payload for the turn.
reasoning_level: ReasoningLevelReasoning effort preference for the turn.
Ignored by providers/models that do not support reasoning effort.
request_kind: AgentRequestKindCanonical request kind that drives transport behavior and protocol semantics for this turn.
Trait Implementations§
Source§impl Clone for TurnRequest
impl Clone for TurnRequest
Source§fn clone(&self) -> TurnRequest
fn clone(&self) -> TurnRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for TurnRequest
impl !UnwindSafe for TurnRequest
impl Freeze for TurnRequest
impl Send for TurnRequest
impl Sync for TurnRequest
impl Unpin for TurnRequest
impl UnsafeUnpin for TurnRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.