Public declaration syntax from forge-rs/crates/forge-flowers/src/handler.rs Original source SHA-256: 58f5c133b108a7556c9c311f0b5c5c0ca7c52268fd78f0db2103a7aed73a30b7 Function bodies and constant values are omitted. This is not the complete implementation. Source line 70 pub trait ForgeAgentFactory: Send + Sync { /// Creates a Forge agent whose LLM calls and tool invocations are /// routed through the Flowers execution context for journaling. /// /// # Arguments /// /// * `ctx` - The Flowers execution context for this workflow execution. /// /// # Returns /// /// A boxed [`Agent`] ready for execution within a Flowers workflow. /// /// # Errors /// /// Returns [`ForgeBridgeError::HandlerCreationFailed`] if agent /// construction fails (e.g., missing configuration, provider not found). fn build(&self, ctx: &ExecutionContext) -> Result, ForgeBridgeError>; } Source line 110 pub struct ForgeWorkflowHandler { } Source line 131 pub fn new( factory: Arc, config: AgentConfig, prompt: impl Into, ) -> Self; Source line 145 #[must_use] pub fn config(&self) -> &AgentConfig; Source line 151 #[must_use] pub fn prompt(&self) -> &str; Source line 203 pub struct BrewWorkflowHandler { } Source line 227 pub fn new(plan: ResolvedBrewPlan, provider: Arc) -> Self; Source line 239 #[must_use] pub fn plan(&self) -> &ResolvedBrewPlan; Source line 245 #[must_use] pub fn with_tool_registry(mut self, tool_registry: ToolRegistry) -> Self; Source line 252 #[must_use] pub fn with_approval_handler(mut self, approval: Arc) -> Self; Source line 259 #[must_use] pub fn with_sub_plan(mut self, plan: ResolvedBrewPlan) -> Self; Source line 266 #[must_use] pub fn with_sub_plans(mut self, plans: Vec) -> Self;