pub struct LlmNode {
pub id: String,
pub base_url: String,
pub default_model: String,
pub prompt: String,
pub model: Option<String>,
pub json_mode: bool,
pub evidence_required: bool,
pub max_tokens: Option<usize>,
pub timeout_ms: u64,
pub input_key: String,
pub output_key: String,
pub ctx: RunContext,
}Fields§
§id: String§base_url: String§default_model: String§prompt: String§model: Option<String>§json_mode: bool§evidence_required: bool§max_tokens: Option<usize>§timeout_ms: u64§input_key: String§output_key: String§ctx: RunContextTrait Implementations§
Source§impl Node for LlmNode
impl Node for LlmNode
Source§fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 AgentState,
_: &'life2 GraphConfig,
) -> Pin<Box<dyn Future<Output = Result<NodeOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 AgentState,
_: &'life2 GraphConfig,
) -> Pin<Box<dyn Future<Output = Result<NodeOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Execute this node
Auto Trait Implementations§
impl Freeze for LlmNode
impl RefUnwindSafe for LlmNode
impl Send for LlmNode
impl Sync for LlmNode
impl Unpin for LlmNode
impl UnsafeUnpin for LlmNode
impl UnwindSafe for LlmNode
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