pub struct AgentFile {
pub agentforge_schema_version: String,
pub name: String,
pub version: String,
pub model: ModelConfig,
pub system_prompt: String,
pub tools: Vec<ToolDefinition>,
pub output_schema: Option<Value>,
pub constraints: Vec<String>,
pub eval_hints: Option<EvalHints>,
pub metadata: Option<HashMap<String, Value>>,
}Expand description
The AgentForge native agent file schema (v1). Also the normalized representation after parsing any supported format.
Fields§
§agentforge_schema_version: String§name: String§version: String§model: ModelConfig§system_prompt: String§tools: Vec<ToolDefinition>§output_schema: Option<Value>§constraints: Vec<String>§eval_hints: Option<EvalHints>§metadata: Option<HashMap<String, Value>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentFile
impl<'de> Deserialize<'de> for AgentFile
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
impl StructuralPartialEq for AgentFile
Auto Trait Implementations§
impl Freeze for AgentFile
impl RefUnwindSafe for AgentFile
impl Send for AgentFile
impl Sync for AgentFile
impl Unpin for AgentFile
impl UnsafeUnpin for AgentFile
impl UnwindSafe for AgentFile
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