Skip to main content

Crate anda_core

Crate anda_core 

Source
Expand description

Core traits, data models, and utility helpers for the Anda agent framework.

anda_core defines the stable interfaces shared by Anda runtimes, agents, tools, model adapters, and clients. It intentionally keeps runtime orchestration and provider integrations out of this crate; those pieces are implemented by higher-level crates such as anda_engine.

The main building blocks are:

Re-exports§

pub use agent::*;
pub use context::*;
pub use http::*;
pub use json::*;
pub use model::*;
pub use tool::*;

Modules§

agent
Agent traits and registries.
context
Execution context traits for agents and tools.
http
HTTP utilities for CBOR and Candid RPC calls.
json
model
Core data models shared by agents, tools, and model adapters.
tool
Tool traits and registries.

Functions§

path_join
Joins two object-store paths without percent-encoding and lowercases the result.
path_lowercase
Returns a lowercase copy of an object-store path.
validate_function_name
Validates an agent or tool function name.
validate_path_part
Validates a single path component used in agent, tool, or user namespaces.

Type Aliases§

BoxError
A type alias for a boxed error that is thread-safe and sendable across threads. This is commonly used as a return type for functions that can return various error types.
BoxPinFut
A type alias for a boxed future that is thread-safe and sendable across threads.