mirror of
https://github.com/openai/codex.git
synced 2026-11-05 20:10:33 +00:00
17 lines
474 B
Rust
17 lines
474 B
Rust
use crate::environment_selection::TurnEnvironmentSnapshot;
|
|
use crate::session::turn_context::TurnContext;
|
|
|
|
/// Request-scoped state that may change between model sampling requests.
|
|
#[derive(Debug)]
|
|
pub(crate) struct StepContext {
|
|
pub(crate) environments: TurnEnvironmentSnapshot,
|
|
}
|
|
|
|
impl StepContext {
|
|
pub(crate) fn from_turn_context(turn_context: &TurnContext) -> Self {
|
|
Self {
|
|
environments: turn_context.environments.clone(),
|
|
}
|
|
}
|
|
}
|