#[non_exhaustive]pub enum AgentBuildError {
Tool(ToolRegistrationError),
Route(AgentRegistrationError),
CallableNameCollision(String),
EmptyName,
ZeroMaxTurns,
Retrieval(RetrievalError),
}Expand description
Failure while assembling an Agent.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Tool(ToolRegistrationError)
Tool registration failed.
Route(AgentRegistrationError)
Child Agent route registration failed.
CallableNameCollision(String)
One model-facing name was used by both a Tool and an Agent.
EmptyName
The Agent name is blank.
ZeroMaxTurns
The configured turn limit cannot execute any model turn.
Retrieval(RetrievalError)
A static or dynamic context registration was invalid.
Trait Implementations§
Source§impl Clone for AgentBuildError
impl Clone for AgentBuildError
Source§fn clone(&self) -> AgentBuildError
fn clone(&self) -> AgentBuildError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentBuildError
impl Debug for AgentBuildError
Source§impl Display for AgentBuildError
impl Display for AgentBuildError
impl Eq for AgentBuildError
Source§impl Error for AgentBuildError
impl Error for AgentBuildError
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<AgentBuildError> for AgentPromptError
impl From<AgentBuildError> for AgentPromptError
Source§fn from(source: AgentBuildError) -> Self
fn from(source: AgentBuildError) -> Self
Converts to this type from the input type.
Source§impl From<AgentRegistrationError> for AgentBuildError
impl From<AgentRegistrationError> for AgentBuildError
Source§fn from(source: AgentRegistrationError) -> Self
fn from(source: AgentRegistrationError) -> Self
Converts to this type from the input type.
Source§impl From<RetrievalError> for AgentBuildError
impl From<RetrievalError> for AgentBuildError
Source§fn from(source: RetrievalError) -> Self
fn from(source: RetrievalError) -> Self
Converts to this type from the input type.
Source§impl From<ToolRegistrationError> for AgentBuildError
impl From<ToolRegistrationError> for AgentBuildError
Source§fn from(source: ToolRegistrationError) -> Self
fn from(source: ToolRegistrationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AgentBuildError
impl PartialEq for AgentBuildError
impl StructuralPartialEq for AgentBuildError
Auto Trait Implementations§
impl Freeze for AgentBuildError
impl RefUnwindSafe for AgentBuildError
impl Send for AgentBuildError
impl Sync for AgentBuildError
impl Unpin for AgentBuildError
impl UnsafeUnpin for AgentBuildError
impl UnwindSafe for AgentBuildError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.