pub struct ScriptedPorts { /* private fields */ }Expand description
The per-node scripted-port handle a GraphConstructor receives (D-31).
Wraps ONE scenario’s resolved crate::scenario::LlmScript as a
ScenarioLlm “root”: ScriptedPorts::for_node hands out a
ScenarioLlm::for_node clone sharing that root’s cursors, call counters
and captured-request log, so a code-built Function node can call
.generate() directly with the exact same per-node routing a compiled
graph_doc’s Paladin nodes receive automatically.
Implementations§
Source§impl ScriptedPorts
impl ScriptedPorts
Sourcepub fn for_node(&self, node_id: impl Into<String>) -> ScenarioLlm
pub fn for_node(&self, node_id: impl Into<String>) -> ScenarioLlm
Return a ScenarioLlm attributed to node_id, sharing this handle’s
underlying script, cursors and captured-request log.
Auto Trait Implementations§
impl Forget for ScriptedPorts
impl Freeze for ScriptedPorts
impl RefUnwindSafe for ScriptedPorts
impl Send for ScriptedPorts
impl Sync for ScriptedPorts
impl Unpin for ScriptedPorts
impl UnsafeUnpin for ScriptedPorts
impl UnwindSafe for ScriptedPorts
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more