pub struct AgentInstanceSection {
pub name: Option<String>,
pub agent_profile: Option<String>,
pub profile: Option<ProfileSection>,
pub system_prompt: Option<String>,
pub provider: Option<String>,
pub workspace: Option<String>,
}Expand description
A named agent instance that can reference or override a profile.
Fields§
§name: Option<String>Instance name (for identification).
agent_profile: Option<String>Reference to a profile instance via {{...}} protocol
(e.g., "{{agent_profile.coder}}" or "{{coder}}").
profile: Option<ProfileSection>Override profile for this instance (inline, not a reference).
system_prompt: Option<String>Override system prompt for this instance.
provider: Option<String>Override provider reference for this instance (supports {{...}} protocol).
workspace: Option<String>Per-instance workspace directory. Overrides [agent].workspace for this instance.
Used for file: resolution in system prompts and script callbacks.
Trait Implementations§
Source§impl Clone for AgentInstanceSection
impl Clone for AgentInstanceSection
Source§fn clone(&self) -> AgentInstanceSection
fn clone(&self) -> AgentInstanceSection
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 AgentInstanceSection
impl Debug for AgentInstanceSection
Source§impl Default for AgentInstanceSection
impl Default for AgentInstanceSection
Source§fn default() -> AgentInstanceSection
fn default() -> AgentInstanceSection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgentInstanceSectionwhere
AgentInstanceSection: Default,
impl<'de> Deserialize<'de> for AgentInstanceSectionwhere
AgentInstanceSection: 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
Auto Trait Implementations§
impl Freeze for AgentInstanceSection
impl RefUnwindSafe for AgentInstanceSection
impl Send for AgentInstanceSection
impl Sync for AgentInstanceSection
impl Unpin for AgentInstanceSection
impl UnsafeUnpin for AgentInstanceSection
impl UnwindSafe for AgentInstanceSection
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