pub struct DefaultBatchManagerAgent { /* private fields */ }Expand description
Core層の ManagerAgent デフォルト実装
§特徴
- LLM非依存(LLM呼び出しは BatchInvoker が担当)
- TaskContext から BatchDecisionRequest を生成
- DecisionResponse を Guidance に変換
Implementations§
Source§impl DefaultBatchManagerAgent
impl DefaultBatchManagerAgent
Sourcepub fn with_config(self, config: DefaultManagerConfig) -> Self
pub fn with_config(self, config: DefaultManagerConfig) -> Self
設定を指定
Sourcepub fn with_interval(self, ticks: u64) -> Self
pub fn with_interval(self, ticks: u64) -> Self
処理間隔を設定
Trait Implementations§
Source§impl ManagerAgent for DefaultBatchManagerAgent
impl ManagerAgent for DefaultBatchManagerAgent
Source§fn prepare(&self, context: &TaskContext) -> BatchDecisionRequest
fn prepare(&self, context: &TaskContext) -> BatchDecisionRequest
TaskContext を見て Batch リクエストを生成(軽量、同期) Read more
Source§fn finalize(
&self,
context: &TaskContext,
responses: Vec<(WorkerId, DecisionResponse)>,
) -> ManagementDecision
fn finalize( &self, context: &TaskContext, responses: Vec<(WorkerId, DecisionResponse)>, ) -> ManagementDecision
Batch 結果受取後: 指示を生成(軽量、同期) Read more
Auto Trait Implementations§
impl !Freeze for DefaultBatchManagerAgent
impl !RefUnwindSafe for DefaultBatchManagerAgent
impl Send for DefaultBatchManagerAgent
impl Sync for DefaultBatchManagerAgent
impl Unpin for DefaultBatchManagerAgent
impl !UnwindSafe for DefaultBatchManagerAgent
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