pub struct Config {
pub api_key: String,
pub model: String,
pub base_url: String,
pub log_level: String,
pub plugins_path: PathBuf,
pub max_concurrent_requests: Option<usize>,
}
Expand description
Configuration schema for the OpenAI Agents crate.
Fields§
§api_key: String
OpenAI API key (optional if using local/unauthenticated endpoint).
model: String
Model name to use (e.g., “gpt-4o-mini”).
base_url: String
Base URL for OpenAI-compatible API (e.g., “https://api.openai.com/v1” or local OSS server).
log_level: String
Logging level (e.g., “info”, “debug”).
plugins_path: PathBuf
Directory where plugins are stored.
max_concurrent_requests: Option<usize>
Optional maximum number of concurrent requests.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more