pub struct AppServerTurnRequest {
pub folder: PathBuf,
pub live_transcript: Option<Arc<dyn LiveTranscript>>,
pub main_checkout_root: Option<PathBuf>,
pub model: String,
pub prompt: TurnPrompt,
pub request_kind: AgentRequestKind,
pub replay_transcript: Option<String>,
pub provider_conversation_id: Option<String>,
pub persisted_instruction_conversation_id: Option<String>,
pub reasoning_level: ReasoningLevel,
pub session_id: String,
}Expand description
Input payload for one app-server turn execution.
Fields§
§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.
prompt: TurnPromptStructured prompt payload for this turn.
request_kind: AgentRequestKindCanonical request kind that drives transport behavior and protocol semantics for this turn.
replay_transcript: Option<String>Replayable transcript text captured when the turn was queued.
provider_conversation_id: Option<String>Provider-native thread/session id used to resume context in a newly started runtime.
persisted_instruction_conversation_id: Option<String>Persisted provider-native conversation id that already received the full instruction bootstrap, when available.
reasoning_level: ReasoningLevelReasoning effort preference for this turn.
Ignored by providers/models that do not support reasoning effort.
session_id: StringStable agentty session id.
Trait Implementations§
Source§impl Clone for AppServerTurnRequest
impl Clone for AppServerTurnRequest
Source§fn clone(&self) -> AppServerTurnRequest
fn clone(&self) -> AppServerTurnRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more