Skip to main content

Config

Struct Config 

Source
pub struct Config {
Show 24 fields pub analytics: Option<AnalyticsConfig>, pub approval_policy: Option<AskForApproval>, pub approvals_reviewer: Option<ApprovalsReviewer>, pub apps: Option<AppsConfig>, pub compact_prompt: Option<String>, pub desktop: Option<Map<String, Value>>, pub developer_instructions: Option<String>, pub forced_chatgpt_workspace_id: Option<ForcedChatgptWorkspaceIds>, pub forced_login_method: Option<ForcedLoginMethod>, pub instructions: Option<String>, pub model: Option<String>, pub model_auto_compact_token_limit: Option<i64>, pub model_auto_compact_token_limit_scope: Option<AutoCompactTokenLimitScope>, pub model_context_window: Option<i64>, pub model_provider: Option<String>, pub model_reasoning_effort: Option<ReasoningEffort>, pub model_reasoning_summary: Option<ReasoningSummary>, pub model_verbosity: Option<Verbosity>, pub review_model: Option<String>, pub sandbox_mode: Option<SandboxMode>, pub sandbox_workspace_write: Option<SandboxWorkspaceWrite>, pub service_tier: Option<String>, pub tools: Option<ToolsV2>, pub web_search: Option<WebSearchMode>,
}
Expand description

Config

JSON schema
{
 "type": "object",
 "properties": {
   "analytics": {
     "anyOf": [
       {
         "$ref": "#/definitions/AnalyticsConfig"
       },
       {
         "type": "null"
       }
     ]
   },
   "approval_policy": {
     "anyOf": [
       {
         "$ref": "#/definitions/AskForApproval"
       },
       {
         "type": "null"
       }
     ]
   },
   "approvals_reviewer": {
     "description": "[UNSTABLE] Optional default for where approval requests are routed for review.",
     "anyOf": [
       {
         "$ref": "#/definitions/ApprovalsReviewer"
       },
       {
         "type": "null"
       }
     ]
   },
   "apps": {
     "default": null,
     "anyOf": [
       {
         "$ref": "#/definitions/AppsConfig"
       },
       {
         "type": "null"
       }
     ]
   },
   "compact_prompt": {
     "type": [
       "string",
       "null"
     ]
   },
   "desktop": {
     "type": [
       "object",
       "null"
     ],
     "additionalProperties": true
   },
   "developer_instructions": {
     "type": [
       "string",
       "null"
     ]
   },
   "forced_chatgpt_workspace_id": {
     "anyOf": [
       {
         "$ref": "#/definitions/ForcedChatgptWorkspaceIds"
       },
       {
         "type": "null"
       }
     ]
   },
   "forced_login_method": {
     "anyOf": [
       {
         "$ref": "#/definitions/ForcedLoginMethod"
       },
       {
         "type": "null"
       }
     ]
   },
   "instructions": {
     "type": [
       "string",
       "null"
     ]
   },
   "model": {
     "type": [
       "string",
       "null"
     ]
   },
   "model_auto_compact_token_limit": {
     "type": [
       "integer",
       "null"
     ],
     "format": "int64"
   },
   "model_auto_compact_token_limit_scope": {
     "anyOf": [
       {
         "$ref": "#/definitions/AutoCompactTokenLimitScope"
       },
       {
         "type": "null"
       }
     ]
   },
   "model_context_window": {
     "type": [
       "integer",
       "null"
     ],
     "format": "int64"
   },
   "model_provider": {
     "type": [
       "string",
       "null"
     ]
   },
   "model_reasoning_effort": {
     "anyOf": [
       {
         "$ref": "#/definitions/ReasoningEffort"
       },
       {
         "type": "null"
       }
     ]
   },
   "model_reasoning_summary": {
     "anyOf": [
       {
         "$ref": "#/definitions/ReasoningSummary"
       },
       {
         "type": "null"
       }
     ]
   },
   "model_verbosity": {
     "anyOf": [
       {
         "$ref": "#/definitions/Verbosity"
       },
       {
         "type": "null"
       }
     ]
   },
   "review_model": {
     "type": [
       "string",
       "null"
     ]
   },
   "sandbox_mode": {
     "anyOf": [
       {
         "$ref": "#/definitions/SandboxMode"
       },
       {
         "type": "null"
       }
     ]
   },
   "sandbox_workspace_write": {
     "anyOf": [
       {
         "$ref": "#/definitions/SandboxWorkspaceWrite"
       },
       {
         "type": "null"
       }
     ]
   },
   "service_tier": {
     "type": [
       "string",
       "null"
     ]
   },
   "tools": {
     "anyOf": [
       {
         "$ref": "#/definitions/ToolsV2"
       },
       {
         "type": "null"
       }
     ]
   },
   "web_search": {
     "anyOf": [
       {
         "$ref": "#/definitions/WebSearchMode"
       },
       {
         "type": "null"
       }
     ]
   }
 },
 "additionalProperties": true
}

Fields§

§analytics: Option<AnalyticsConfig>§approval_policy: Option<AskForApproval>§approvals_reviewer: Option<ApprovalsReviewer>

[UNSTABLE] Optional default for where approval requests are routed for review.

§apps: Option<AppsConfig>§compact_prompt: Option<String>§desktop: Option<Map<String, Value>>§developer_instructions: Option<String>§forced_chatgpt_workspace_id: Option<ForcedChatgptWorkspaceIds>§forced_login_method: Option<ForcedLoginMethod>§instructions: Option<String>§model: Option<String>§model_auto_compact_token_limit: Option<i64>§model_auto_compact_token_limit_scope: Option<AutoCompactTokenLimitScope>§model_context_window: Option<i64>§model_provider: Option<String>§model_reasoning_effort: Option<ReasoningEffort>§model_reasoning_summary: Option<ReasoningSummary>§model_verbosity: Option<Verbosity>§review_model: Option<String>§sandbox_mode: Option<SandboxMode>§sandbox_workspace_write: Option<SandboxWorkspaceWrite>§service_tier: Option<String>§tools: Option<ToolsV2>§web_search: Option<WebSearchMode>

Trait Implementations§

Source§

impl Clone for Config

Source§

fn clone(&self) -> Config

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Config

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Config

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Config

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Config

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,