mirror of
https://github.com/openai/codex.git
synced 2026-04-25 23:24:55 +00:00
WIP
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
use codex_core::config_types::SandboxMode;
|
||||
use codex_core::protocol::AskForApproval;
|
||||
use codex_core::protocol::ReviewDecision;
|
||||
use mcp_types::Tool;
|
||||
use mcp_types::ToolInputSchema;
|
||||
use schemars::JsonSchema;
|
||||
@@ -156,6 +157,14 @@ impl CodexToolCallParam {
|
||||
}
|
||||
}
|
||||
|
||||
/// Client-supplied configuration for a `codex/experimental/approve_patch` tool-call.
|
||||
#[derive(Debug, Clone, Deserialize, JsonSchema)]
|
||||
#[serde(rename_all = "kebab-case")]
|
||||
pub(crate) struct CodexApprovePatchToolCallParam {
|
||||
/// The user's decision in response to the patch approval request.
|
||||
pub review_decision: ReviewDecision,
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
Reference in New Issue
Block a user