pub enum SwarmError {
Show 19 variants
LlmTransient {
message: String,
},
NetworkTransient {
message: String,
},
Timeout {
message: String,
},
ResourceBusy {
message: String,
},
LlmPermanent {
message: String,
},
Config {
message: String,
},
Parse {
message: String,
},
Validation {
message: String,
},
UnknownAction {
action: String,
},
MissingParam {
param: String,
},
InvalidParam {
param: String,
},
AsyncTask {
message: String,
},
Internal {
message: String,
},
MissingDependencyGraph {
hint: String,
},
NoWorkers,
OrchestratorConfig {
message: String,
},
ActionValidation(ActionValidationError),
DependencyGraph(DependencyGraphError),
ConfigFile(ConfigError),
}Expand description
SwarmEngine 統一エラー型
Variants§
LlmTransient
LLM リクエスト失敗(一時的)
NetworkTransient
ネットワークエラー(一時的)
Timeout
タイムアウト
ResourceBusy
リソース一時的不足
LlmPermanent
LLM リクエスト失敗(恒久的)
Config
設定エラー
Parse
パースエラー
Validation
バリデーションエラー
UnknownAction
不明なアクション
MissingParam
必須パラメータ不足
InvalidParam
無効なパラメータ
AsyncTask
非同期タスクエラー
Internal
内部エラー
MissingDependencyGraph
DependencyGraph が必須だが利用不可
ExplorationSpace の自動生成には DependencyGraph が必要です。 以下のいずれかを設定してください:
OrchestratorBuilder::dependency_provider(provider)OrchestratorBuilder::batch_invoker(invoker)(plan_dependencies をサポート)OrchestratorBuilder::extension(DependencyGraph)(静的グラフ)
NoWorkers
Worker が設定されていない
OrchestratorConfig
Orchestrator の設定が不正
ActionValidation(ActionValidationError)
Action バリデーションエラー
DependencyGraph(DependencyGraphError)
依存グラフエラー
ConfigFile(ConfigError)
設定ファイルエラー
Implementations§
Source§impl SwarmError
impl SwarmError
Sourcepub fn llm_transient(msg: impl Into<String>) -> Self
pub fn llm_transient(msg: impl Into<String>) -> Self
LLM 一時的エラー
Sourcepub fn llm_permanent(msg: impl Into<String>) -> Self
pub fn llm_permanent(msg: impl Into<String>) -> Self
LLM 恒久的エラー
Sourcepub fn network_transient(msg: impl Into<String>) -> Self
pub fn network_transient(msg: impl Into<String>) -> Self
ネットワーク一時的エラー
Sourcepub fn validation(msg: impl Into<String>) -> Self
pub fn validation(msg: impl Into<String>) -> Self
バリデーションエラー
Sourcepub fn async_task(msg: impl Into<String>) -> Self
pub fn async_task(msg: impl Into<String>) -> Self
非同期タスクエラー
Sourcepub fn is_transient(&self) -> bool
pub fn is_transient(&self) -> bool
リトライ可能かどうか
Trait Implementations§
Source§impl Debug for SwarmError
impl Debug for SwarmError
Source§impl Display for SwarmError
impl Display for SwarmError
Source§impl Error for SwarmError
impl Error for SwarmError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ActionValidationError> for SwarmError
impl From<ActionValidationError> for SwarmError
Source§fn from(source: ActionValidationError) -> Self
fn from(source: ActionValidationError) -> Self
Converts to this type from the input type.
Source§impl From<AsyncTaskError> for SwarmError
impl From<AsyncTaskError> for SwarmError
Source§fn from(err: AsyncTaskError) -> Self
fn from(err: AsyncTaskError) -> Self
Converts to this type from the input type.
Source§impl From<BatchInvokeError> for SwarmError
impl From<BatchInvokeError> for SwarmError
Source§fn from(err: BatchInvokeError) -> Self
fn from(err: BatchInvokeError) -> Self
Converts to this type from the input type.
Source§impl From<ConfigError> for SwarmError
impl From<ConfigError> for SwarmError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<DependencyGraphError> for SwarmError
impl From<DependencyGraphError> for SwarmError
Source§fn from(source: DependencyGraphError) -> Self
fn from(source: DependencyGraphError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for SwarmError
impl From<StoreError> for SwarmError
Source§fn from(e: StoreError) -> Self
fn from(e: StoreError) -> Self
Converts to this type from the input type.
Source§impl From<SwarmError> for AsyncTaskError
impl From<SwarmError> for AsyncTaskError
Source§fn from(err: SwarmError) -> Self
fn from(err: SwarmError) -> Self
Converts to this type from the input type.
Source§impl From<SwarmError> for BatchInvokeError
impl From<SwarmError> for BatchInvokeError
Source§fn from(err: SwarmError) -> Self
fn from(err: SwarmError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SwarmError
impl !RefUnwindSafe for SwarmError
impl Send for SwarmError
impl Sync for SwarmError
impl Unpin for SwarmError
impl !UnwindSafe for SwarmError
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