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>) -> SwarmError
pub fn llm_transient(msg: impl Into<String>) -> SwarmError
LLM 一時的エラー
Sourcepub fn llm_permanent(msg: impl Into<String>) -> SwarmError
pub fn llm_permanent(msg: impl Into<String>) -> SwarmError
LLM 恒久的エラー
Sourcepub fn network_transient(msg: impl Into<String>) -> SwarmError
pub fn network_transient(msg: impl Into<String>) -> SwarmError
ネットワーク一時的エラー
Sourcepub fn timeout(msg: impl Into<String>) -> SwarmError
pub fn timeout(msg: impl Into<String>) -> SwarmError
タイムアウトエラー
Sourcepub fn config(msg: impl Into<String>) -> SwarmError
pub fn config(msg: impl Into<String>) -> SwarmError
設定エラー
Sourcepub fn parse(msg: impl Into<String>) -> SwarmError
pub fn parse(msg: impl Into<String>) -> SwarmError
パースエラー
Sourcepub fn validation(msg: impl Into<String>) -> SwarmError
pub fn validation(msg: impl Into<String>) -> SwarmError
バリデーションエラー
Sourcepub fn async_task(msg: impl Into<String>) -> SwarmError
pub fn async_task(msg: impl Into<String>) -> SwarmError
非同期タスクエラー
Sourcepub fn internal(msg: impl Into<String>) -> SwarmError
pub fn internal(msg: impl Into<String>) -> SwarmError
内部エラー
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) -> SwarmError
fn from(source: ActionValidationError) -> SwarmError
Converts to this type from the input type.
Source§impl From<AsyncTaskError> for SwarmError
impl From<AsyncTaskError> for SwarmError
Source§fn from(err: AsyncTaskError) -> SwarmError
fn from(err: AsyncTaskError) -> SwarmError
Converts to this type from the input type.
Source§impl From<BatchInvokeError> for SwarmError
impl From<BatchInvokeError> for SwarmError
Source§fn from(err: BatchInvokeError) -> SwarmError
fn from(err: BatchInvokeError) -> SwarmError
Converts to this type from the input type.
Source§impl From<BatchProcessError> for SwarmError
impl From<BatchProcessError> for SwarmError
Source§fn from(err: BatchProcessError) -> SwarmError
fn from(err: BatchProcessError) -> SwarmError
Converts to this type from the input type.
Source§impl From<ConfigError> for SwarmError
impl From<ConfigError> for SwarmError
Source§fn from(source: ConfigError) -> SwarmError
fn from(source: ConfigError) -> SwarmError
Converts to this type from the input type.
Source§impl From<DependencyGraphError> for SwarmError
impl From<DependencyGraphError> for SwarmError
Source§fn from(source: DependencyGraphError) -> SwarmError
fn from(source: DependencyGraphError) -> SwarmError
Converts to this type from the input type.
Source§impl From<LlmError> for SwarmError
impl From<LlmError> for SwarmError
Source§fn from(err: LlmError) -> SwarmError
fn from(err: LlmError) -> SwarmError
Converts to this type from the input type.
Source§impl From<RegistryError> for SwarmError
impl From<RegistryError> for SwarmError
Source§fn from(err: RegistryError) -> SwarmError
fn from(err: RegistryError) -> SwarmError
Converts to this type from the input type.
Source§impl From<StoreError> for SwarmError
impl From<StoreError> for SwarmError
Source§fn from(e: StoreError) -> SwarmError
fn from(e: StoreError) -> SwarmError
Converts to this type from the input type.
Source§impl From<SwarmError> for AsyncTaskError
impl From<SwarmError> for AsyncTaskError
Source§fn from(err: SwarmError) -> AsyncTaskError
fn from(err: SwarmError) -> AsyncTaskError
Converts to this type from the input type.
Source§impl From<SwarmError> for BatchInvokeError
impl From<SwarmError> for BatchInvokeError
Source§fn from(err: SwarmError) -> BatchInvokeError
fn from(err: SwarmError) -> BatchInvokeError
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.