pub struct AgentMeta {
pub name: String,
pub description: String,
pub system: String,
pub model: Option<String>,
pub temperature: Option<f32>,
pub max_tokens: Option<u32>,
pub scope: Scope,
pub storage: AgentStorage,
}Expand description
The [agent] section.
Fields§
§name: String§description: StringHuman description, surfaced in docs and discovery responses.
system: StringSystem prompt this agent always answers under.
model: Option<String>Legacy per-agent model override.
Kept for compatibility with older agent files. New overrides belong in
the top-level [ai] table of the agent file, which can also override
the provider, endpoint, key and timeout.
temperature: Option<f32>Legacy per-agent temperature override.
max_tokens: Option<u32>Legacy per-agent max_tokens override.
scope: ScopeWhether persisted threads/messages belong to an organisation or are shared deployment-wide. Only meaningful when storage is enabled.
storage: AgentStorageTrait Implementations§
Source§impl<'de> Deserialize<'de> for AgentMeta
impl<'de> Deserialize<'de> for AgentMeta
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 AgentMeta
impl RefUnwindSafe for AgentMeta
impl Send for AgentMeta
impl Sync for AgentMeta
impl Unpin for AgentMeta
impl UnsafeUnpin for AgentMeta
impl UnwindSafe for AgentMeta
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