pub struct Intelligence {
pub endpoints: Vec<String>,
pub model: Option<String>,
pub dialect: Option<String>,
pub token: Option<Secret>,
pub token_file: Option<String>,
pub headers: BTreeMap<String, String>,
pub auth: Option<Auth>,
pub swap_policy: Option<String>,
pub structured_output: StructuredOutput,
pub budget: Budget,
pub pricing: BTreeMap<String, Pricing>,
pub timeout: Option<Dur>,
}Fields§
§endpoints: Vec<String>§model: Option<String>§dialect: Option<String>The wire dialect (RFC 0031 §8): openai (default), anthropic, or
bedrock (native Amazon Bedrock Converse — pair with auth: {kind: aws, service: bedrock}). Unset ⇒ OpenAI-compatible.
token: Option<Secret>§token_file: Option<String>§headers: BTreeMap<String, String>§auth: Option<Auth>A unified credential provider (RFC 0031 §5) for the LLM endpoint — e.g.
oauth2 device-login for an enterprise gateway. Obtained via
agentd login intelligence; the resolved bearer overrides token.
swap_policy: Option<String>§structured_output: StructuredOutput§budget: Budget§pricing: BTreeMap<String, Pricing>§timeout: Option<Dur>Implementations§
Source§impl Intelligence
impl Intelligence
Trait Implementations§
Source§impl Clone for Intelligence
impl Clone for Intelligence
Source§fn clone(&self) -> Intelligence
fn clone(&self) -> Intelligence
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Intelligence
impl Debug for Intelligence
Source§impl Default for Intelligence
impl Default for Intelligence
Source§fn default() -> Intelligence
fn default() -> Intelligence
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Intelligencewhere
Intelligence: Default,
impl<'de> Deserialize<'de> for Intelligencewhere
Intelligence: Default,
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
Source§impl PartialEq for Intelligence
impl PartialEq for Intelligence
impl StructuralPartialEq for Intelligence
Auto Trait Implementations§
impl Freeze for Intelligence
impl RefUnwindSafe for Intelligence
impl Send for Intelligence
impl Sync for Intelligence
impl Unpin for Intelligence
impl UnsafeUnpin for Intelligence
impl UnwindSafe for Intelligence
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