pub struct RunInput {
pub inputs: IndexMap<String, Value>,
pub sys: IndexMap<String, Value>,
pub env: IndexMap<String, Value>,
pub conversation: IndexMap<String, Value>,
pub run_id: Option<String>,
pub resume: Option<ResumeFrom>,
}Expand description
Input for a run.
Fields§
§inputs: IndexMap<String, Value>Values for the start node’s declared variables (written into the entry node’s namespace).
sys: IndexMap<String, Value>System variables (sys.*), e.g. query, files, user_id, conversation_id.
env: IndexMap<String, Value>Environment variables (env.*); override document defaults. Never persisted.
conversation: IndexMap<String, Value>Conversation variables (conversation.*); override document defaults.
run_id: Option<String>Explicit run id (generated when absent).
resume: Option<ResumeFrom>Resume a paused run.
Implementations§
Source§impl RunInput
impl RunInput
pub fn new() -> Self
Sourcepub fn input(self, name: impl Into<String>, value: impl Into<Value>) -> Self
pub fn input(self, name: impl Into<String>, value: impl Into<Value>) -> Self
Add a start input.
Sourcepub fn sys(self, name: impl Into<String>, value: impl Into<Value>) -> Self
pub fn sys(self, name: impl Into<String>, value: impl Into<Value>) -> Self
Add a system variable.
Trait Implementations§
Auto Trait Implementations§
impl Forget for RunInput
impl Freeze for RunInput
impl Move for RunInput
impl RefUnwindSafe for RunInput
impl Send for RunInput
impl Sync for RunInput
impl Unpin for RunInput
impl UnsafeUnpin for RunInput
impl UnwindSafe for RunInput
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