pub struct InProcessDagExecutor { /* private fields */ }Expand description
インプロセス DAG 実行エンジン。
単一プロンプトでの複合推論を避け、軽量モデルによる多段判定と Rust 側での決定論的ブール論理・制御フローをミリ秒台で実行する。
Implementations§
Source§impl InProcessDagExecutor
impl InProcessDagExecutor
Sourcepub fn new(
engine: Arc<InferenceEngine>,
tokenizer: Arc<JevTokenizer>,
calib_config: CalibrationConfig,
) -> Self
pub fn new( engine: Arc<InferenceEngine>, tokenizer: Arc<JevTokenizer>, calib_config: CalibrationConfig, ) -> Self
Sourcepub fn with_max_steps(self, max_steps: usize) -> Self
pub fn with_max_steps(self, max_steps: usize) -> Self
実行ステップ数の安全上限を設定する。既定値は 50。
Sourcepub async fn execute(
&self,
state: &str,
dag: &DagDefinition,
) -> Result<DagExecutionResult, DagError>
pub async fn execute( &self, state: &str, dag: &DagDefinition, ) -> Result<DagExecutionResult, DagError>
DAG を実行し、実行結果を返却する。
実行前に静的検証を行い、DAG 全体を dag.timeout_ms の制限時間でラップして実行する。
§引数
state: 入力コンテキスト文。dag: 宣言的 DAG 定義。
Auto Trait Implementations§
impl Freeze for InProcessDagExecutor
impl RefUnwindSafe for InProcessDagExecutor
impl Send for InProcessDagExecutor
impl Sync for InProcessDagExecutor
impl Unpin for InProcessDagExecutor
impl UnsafeUnpin for InProcessDagExecutor
impl UnwindSafe for InProcessDagExecutor
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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