Crate kodegen_candle_agent

Crate kodegen_candle_agent 

Source
Expand description

Fluent AI Candle Library This crate provides Candle ML framework integration for AI services. All Candle-prefixed domain types, builders, and providers are defined here to ensure complete independence from the main cyrup packages.

Re-exports§

pub use crate::async_stream::empty;
pub use crate::async_stream::from_iter;
pub use crate::async_stream::once;
pub use crate::async_stream::spawn_stream;
pub use capability::registry::pool::Pool;
pub use capability::registry::pool::PoolError;
pub use capability::registry::pool::init_maintenance;
pub use kodegen_simd;
pub use prelude::*;

Modules§

async_stream
Async stream utilities using tokio streams Candle Async Stream - Pure tokio streaming utilities
builders
Candle builders for zero-allocation construction patterns Builder patterns for candle components
capability
Candle macros for ARCHITECTURE.md syntax support Candle capabilities organized by what models can do Capability-based Model Organization
cli
CLI module for interactive chat applications CLI module for interactive chat applications
core
Chat functionality is now available through domain::chat Core components (engine, generation, etc.) Core domain types and traits
domain
Candle domain types (replaces cyrup_domain dependency) Fluent AI Candle Domain Library
extensions
Extension integration for Raycast and Alfred (macOS)
image
Image processing utilities
macros
memory
Memory system with cognitive features and vector storage Cognitive Memory System - A revolutionary memory architecture with quantum-inspired routing, emergent agent evolution, and self-modifying capabilities.
prelude
prompt
Prompt processing utilities
runtime
Shared Tokio runtime for avoiding multiple runtime creation DEPRECATED: Shared Tokio runtime module
tools
MCP tools for memory operations Memory tools for candle-agent MCP server
util
Utility modules for common operations Utility modules for domain types and operations
workflow
Real workflow execution system with streams-only architecture Candle workflow execution system - streams-only architecture

Macros§

bail_model_err
Helper for creating error results
critical_error
Convenience macro for creating critical errors
error
Convenience macro for creating errors with location
model_err
Helper for creating error messages with static strings
parallel
Internal macro for recursive parallel operation tree construction
permanent_error
Convenience macro for creating permanent errors
retriable_error
Convenience macro for creating retriable errors
static_str
Compile-time string validation for static strings

Traits§

Stream
A stream of values produced asynchronously.
StreamExt
An extension trait for the Stream trait that provides a variety of convenient combinator functions.

Functions§

init_candle
Initialize library-wide performance optimizations
start_server
Start the candle-agent HTTP server programmatically for embedded mode
start_server_with_listener
Start candle-agent HTTP server using pre-bound listener (TOCTOU-safe)