pub enum ExternalContentError {
Show 14 variants
InvalidSourceUrl,
InvalidSourceTitle,
InvalidSourceText,
InvalidContinuationIdentifier,
InvalidHostedToolIdentity,
HostedToolArgumentsMustBeObject,
TooManyHostedToolSources,
InvalidHostedToolError,
InvalidCitationRange,
InvalidWebFetchMetadata,
InvalidWebFetchTitle,
InvalidWebFetchBody,
InvalidWebFetchRedirect,
JsonBounds(ProtocolMetadataError),
}Expand description
Validation failure for hosted tool, source, citation, or continuation content.
Variants§
InvalidSourceUrl
Source URL is not a bounded HTTP(S) URL.
InvalidSourceTitle
Source title is empty, oversized, or contains controls.
InvalidSourceText
Source snippet or cited text is empty, oversized, or contains a null character.
InvalidContinuationIdentifier
Provider or continuation format identifier is not canonical.
InvalidHostedToolIdentity
Hosted tool provider id or tool name is invalid.
HostedToolArgumentsMustBeObject
Hosted tool arguments must be a JSON object.
TooManyHostedToolSources
Hosted tool source collection exceeds protocol bounds.
InvalidHostedToolError
Hosted tool error code or message is invalid.
InvalidCitationRange
Citation range is missing one endpoint, empty, or reversed.
InvalidWebFetchMetadata
Client web-fetch metadata, MIME type, or URL is invalid.
InvalidWebFetchTitle
Client web-fetch title is empty, oversized, or contains controls.
InvalidWebFetchBody
Client web-fetch extracted body exceeds durable bounds or contains a null.
InvalidWebFetchRedirect
Client web-fetch redirect metadata is invalid or exceeds its count bound.
JsonBounds(ProtocolMetadataError)
JSON payload exceeds encoded size or nesting limits.
Trait Implementations§
Source§impl Debug for ExternalContentError
impl Debug for ExternalContentError
Source§impl Display for ExternalContentError
impl Display for ExternalContentError
Source§impl Error for ExternalContentError
impl Error for ExternalContentError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()