Base: codex-main originale (prima del fork aKode)

This commit is contained in:
Andrea
2026-11-09 10:37:42 +01:00
commit 7874033c81
10166 changed files with 2728937 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
//! Serializable capability overrides for custom Responses-compatible providers.
//!
//! Unspecified capabilities inherit the provider's existing defaults. Model and
//! turn settings may further restrict the capabilities declared here.
use schemars::JsonSchema;
use serde::Deserialize;
use serde::Serialize;
/// Overrides for the optional API features supported by a custom provider.
#[derive(Debug, Clone, Copy, Default, Deserialize, Serialize, PartialEq, Eq, JsonSchema)]
#[schemars(deny_unknown_fields)]
pub struct ModelProviderCapabilities {
/// Whether the provider accepts explicit `access_programs.cyber` selections.
/// Defaults to enabled for the built-in OpenAI provider and disabled otherwise.
/// This does not grant program access or change authentication.
pub cyber_access_programs: Option<bool>,
/// Whether hosted web search may access the live web.
pub external_web_access: Option<bool>,
/// Remote context-compaction protocol; omission preserves provider defaults.
pub remote_compaction: Option<RemoteCompactionSupport>,
}
/// Remote context-compaction protocols supported by a model provider.
#[derive(Debug, Clone, Copy, Deserialize, Serialize, PartialEq, Eq, JsonSchema)]
#[serde(rename_all = "snake_case")]
pub enum RemoteCompactionSupport {
/// Use local compaction instead of a provider compaction protocol.
Unsupported,
/// Send `compaction_trigger` items over the Responses endpoint.
V2,
}