Skip to main content

SwarmError

Enum SwarmError 

Source
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 リクエスト失敗(一時的)

Fields

§message: String
§

NetworkTransient

ネットワークエラー(一時的)

Fields

§message: String
§

Timeout

タイムアウト

Fields

§message: String
§

ResourceBusy

リソース一時的不足

Fields

§message: String
§

LlmPermanent

LLM リクエスト失敗(恒久的)

Fields

§message: String
§

Config

設定エラー

Fields

§message: String
§

Parse

パースエラー

Fields

§message: String
§

Validation

バリデーションエラー

Fields

§message: String
§

UnknownAction

不明なアクション

Fields

§action: String
§

MissingParam

必須パラメータ不足

Fields

§param: String
§

InvalidParam

無効なパラメータ

Fields

§param: String
§

AsyncTask

非同期タスクエラー

Fields

§message: String
§

Internal

内部エラー

Fields

§message: String
§

MissingDependencyGraph

DependencyGraph が必須だが利用不可

ExplorationSpace の自動生成には DependencyGraph が必要です。 以下のいずれかを設定してください:

  • OrchestratorBuilder::dependency_provider(provider)
  • OrchestratorBuilder::batch_invoker(invoker) (plan_dependencies をサポート)
  • OrchestratorBuilder::extension(DependencyGraph) (静的グラフ)

Fields

§hint: String
§

NoWorkers

Worker が設定されていない

§

OrchestratorConfig

Orchestrator の設定が不正

Fields

§message: String
§

ActionValidation(ActionValidationError)

Action バリデーションエラー

§

DependencyGraph(DependencyGraphError)

依存グラフエラー

§

ConfigFile(ConfigError)

設定ファイルエラー

Implementations§

Source§

impl SwarmError

Source

pub fn llm_transient(msg: impl Into<String>) -> Self

LLM 一時的エラー

Source

pub fn llm_permanent(msg: impl Into<String>) -> Self

LLM 恒久的エラー

Source

pub fn network_transient(msg: impl Into<String>) -> Self

ネットワーク一時的エラー

Source

pub fn timeout(msg: impl Into<String>) -> Self

タイムアウトエラー

Source

pub fn config(msg: impl Into<String>) -> Self

設定エラー

Source

pub fn parse(msg: impl Into<String>) -> Self

パースエラー

Source

pub fn validation(msg: impl Into<String>) -> Self

バリデーションエラー

Source

pub fn async_task(msg: impl Into<String>) -> Self

非同期タスクエラー

Source

pub fn internal(msg: impl Into<String>) -> Self

内部エラー

Source

pub fn is_transient(&self) -> bool

リトライ可能かどうか

Source

pub fn message(&self) -> String

エラーメッセージを取得

Source

pub fn kind(&self) -> &'static str

エラーの種類を取得

Trait Implementations§

Source§

impl Debug for SwarmError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for SwarmError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for SwarmError

Source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<ActionValidationError> for SwarmError

Source§

fn from(source: ActionValidationError) -> Self

Converts to this type from the input type.
Source§

impl From<AsyncTaskError> for SwarmError

Source§

fn from(err: AsyncTaskError) -> Self

Converts to this type from the input type.
Source§

impl From<BatchInvokeError> for SwarmError

Source§

fn from(err: BatchInvokeError) -> Self

Converts to this type from the input type.
Source§

impl From<ConfigError> for SwarmError

Source§

fn from(source: ConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<DependencyGraphError> for SwarmError

Source§

fn from(source: DependencyGraphError) -> Self

Converts to this type from the input type.
Source§

impl From<StoreError> for SwarmError

Source§

fn from(e: StoreError) -> Self

Converts to this type from the input type.
Source§

impl From<SwarmError> for AsyncTaskError

Source§

fn from(err: SwarmError) -> Self

Converts to this type from the input type.
Source§

impl From<SwarmError> for BatchInvokeError

Source§

fn from(err: SwarmError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more