Skip to content

catalog

Structs

Enums


firma_sidecar::composio::catalog::CatalogEntry

Section titled “firma_sidecar::composio::catalog::CatalogEntry”

Struct

A validated mapped Composio tool.

Fields:

  • toolkit: String - Toolkit identifier.
  • version: String - Pinned toolkit version.
  • action_class: String - Manually reviewed semantic action class.

firma_sidecar::composio::catalog::CatalogError

Section titled “firma_sidecar::composio::catalog::CatalogError”

Enum

Pinned catalog validation failure.

Variants:

  • MalformedSource - Source JSON could not be decoded.
  • MalformedMapping - Mapping JSON could not be decoded.
  • VersionMismatch - Source and mapping identify different toolkit versions.
  • DuplicateSlug - A source contains a duplicate slug.
  • WrongToolkitPrefix - A slug does not use its toolkit prefix.
  • ToolMetadataMismatch - A tool repeats mismatched toolkit or version metadata.
  • UnknownActionClass - A mapping names a non-canonical class.
  • MissingMapping - A mapping was left unclassified.
  • SourceMappingDifference - Source and mapping slug sets differ.

Traits: Eq, Copy, Error

Trait Implementations:

  • Display
    • fn fmt(self: &Self, __formatter: & mut ::core::fmt::Formatter) -> ::core::fmt::Result
  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
  • PartialEq
    • fn eq(self: &Self, other: &CatalogError) -> bool
  • Clone
    • fn clone(self: &Self) -> CatalogError

firma_sidecar::composio::catalog::ComposioCatalogs

Section titled “firma_sidecar::composio::catalog::ComposioCatalogs”

Struct

Validated pinned Composio catalogs indexed by exact tool slug.

Methods:

  • fn builtin() -> Result<Self, CatalogError> - Load the reviewed catalogs shipped with the Sidecar.
  • fn from_json_pairs<'a, impl IntoIterator<Item = (&'a str, &'a str)>>(pairs: impl Trait) -> Result<Self, CatalogError> - Load and validate source/mapping JSON pairs.
  • fn lookup(self: &Self, slug: &str) -> Option<&CatalogEntry> - Return the reviewed entry for an exact tool slug.
  • fn len(self: &Self) -> usize - Return the number of reviewed tools.
  • fn is_empty(self: &Self) -> bool - Return whether no tools were loaded.

Trait Implementations:

  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
  • Clone
    • fn clone(self: &Self) -> ComposioCatalogs