A high-performance inference engine for AI models
mod classification;
mod decision;
pub mod chat;
pub use classification::encoding::ClassificationEncoding;
pub use decision::{encoding::DecisionEncoding, error::DecisionEncodingError};
pub trait Encoding {
type Config;
type Input;
type Output;
type State;
type Error;
fn state(&self) -> &Self::State;
fn reset(&mut self) -> Result<(), Self::Error>;
fn encode(
&mut self,
value: Self::Input,
) -> Result<(), Self::Error>;
fn decode(
&mut self,
value: Self::Output,
) -> Result<(), Self::Error>;
fn supports_tool_calls(&self) -> bool;
fn supports_multiple_tool_calls(&self) -> bool;
}