pub struct LlmBatchProcessor<D: LlmDecider> { /* private fields */ }Expand description
Ollama Batch Processor
Ollama は真の Batch API を持たないため、仮想バッチとして実装。
内部で LlmDecider を使用して並列/順次処理を行う。
Implementations§
Source§impl<D: LlmDecider> LlmBatchProcessor<D>
impl<D: LlmDecider> LlmBatchProcessor<D>
Sourcepub fn with_config(self, config: LlmBatchProcessorConfig) -> Self
pub fn with_config(self, config: LlmBatchProcessorConfig) -> Self
設定を指定して作成
Trait Implementations§
Source§impl<D: LlmDecider + 'static> BatchProcessor for LlmBatchProcessor<D>
impl<D: LlmDecider + 'static> BatchProcessor for LlmBatchProcessor<D>
Source§fn process(
&self,
request: BatchDecisionRequest,
) -> Pin<Box<dyn Future<Output = BatchProcessResult> + Send + '_>>
fn process( &self, request: BatchDecisionRequest, ) -> Pin<Box<dyn Future<Output = BatchProcessResult> + Send + '_>>
Batch リクエストを処理 Read more
Source§fn plan_dependencies(
&self,
task: &str,
actions: &[ActionDef],
hint: Option<&SelectResult>,
) -> Pin<Box<dyn Future<Output = Option<DependencyGraph>> + Send + '_>>
fn plan_dependencies( &self, task: &str, actions: &[ActionDef], hint: Option<&SelectResult>, ) -> Pin<Box<dyn Future<Output = Option<DependencyGraph>> + Send + '_>>
タスクとアクション一覧からアクション依存グラフを生成 Read more
Auto Trait Implementations§
impl<D> Freeze for LlmBatchProcessor<D>
impl<D> RefUnwindSafe for LlmBatchProcessor<D>where
D: RefUnwindSafe,
impl<D> Send for LlmBatchProcessor<D>
impl<D> Sync for LlmBatchProcessor<D>
impl<D> Unpin for LlmBatchProcessor<D>
impl<D> UnwindSafe for LlmBatchProcessor<D>where
D: RefUnwindSafe,
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
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