pub struct AppServerTurnRequest {Show 16 fields
pub execution_policy: ExecutionPolicy,
pub folder: PathBuf,
pub live_transcript: Option<Arc<dyn LiveTranscript>>,
pub main_checkout_root: Option<PathBuf>,
pub model: String,
pub permission_mode: PermissionMode,
pub persisted_instruction_conversation_id: Option<String>,
pub agent_profile: AgentDefinitionPrompt,
pub prompt: TurnPrompt,
pub provider_call_budget: Option<ProviderCallBudget>,
pub provider_conversation_id: Option<String>,
pub reasoning_level: ReasoningLevel,
pub replay_transcript: Option<String>,
pub request_kind: AgentRequestKind,
pub session_id: String,
pub speed_mode: SpeedMode,
}Expand description
Input payload for one app-server turn execution.
Fields§
§execution_policy: ExecutionPolicyWorker-selected policy, preserved across runtime restarts and repairs.
folder: PathBufSession worktree folder where the provider runtime executes.
live_transcript: Option<Arc<dyn LiveTranscript>>Live in-memory transcript source updated by the streaming consumer.
When set, restart-and-retry reads the latest accumulated transcript from this source instead of the queued snapshot, ensuring content streamed before the crash is included in the replay prompt.
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.
permission_mode: PermissionModeFilesystem and command permission policy for this turn.
persisted_instruction_conversation_id: Option<String>Persisted provider-native conversation id that already received the full instruction bootstrap, when available.
agent_profile: AgentDefinitionPromptAgent prompt state resolved for this turn.
prompt: TurnPromptStructured prompt payload for this turn.
provider_call_budget: Option<ProviderCallBudget>Optional shared limit, charged for every underlying attempt and retry.
provider_conversation_id: Option<String>Provider-native thread/session id used to resume context in a newly started runtime.
reasoning_level: ReasoningLevelReasoning effort preference for this turn.
Ignored by providers/models that do not support reasoning effort.
replay_transcript: Option<String>Replayable transcript text captured when the turn was queued.
request_kind: AgentRequestKindCanonical request kind that drives transport behavior and protocol semantics for this turn.
session_id: StringStable agentty session id.
speed_mode: SpeedModeResponse-speed preference for this turn.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AppServerTurnRequest
impl !UnwindSafe for AppServerTurnRequest
impl Forget for AppServerTurnRequest
impl Freeze for AppServerTurnRequest
impl Send for AppServerTurnRequest
impl Sync for AppServerTurnRequest
impl Unpin for AppServerTurnRequest
impl UnsafeUnpin for AppServerTurnRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more