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 personality: PersonalityPrompt,
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.
personality: PersonalityPromptPersonality 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.