cognis-core 0.2.0

Core traits and types for the Cognis LLM framework
Documentation
pub mod base;
pub mod convert;
pub mod derive_support;
pub mod function;
pub mod render;
pub mod retriever;
pub mod schema;
pub mod schema_gen;
pub mod simple;
pub mod structured;
pub mod types;
pub mod validation;

pub use base::{BaseTool, BaseToolkit, ToolSchema};
pub use convert::{convert_runnable_to_tool, convert_to_openai_tool, convert_to_openai_tools};
pub use derive_support::ToolJsonSchema;
pub use function::{tool_from_function, FunctionTool};
pub use render::{render_text_description, render_text_description_and_args, ToolsRenderer};
pub use retriever::{create_retriever_tool, RetrieverTool};
pub use schema::{
    SchemaObject, SchemaRegistry, SchemaValidator, ToolSchemaGenerator, ValidationError,
};
pub use schema_gen::{
    json_schema_from_properties, quick_tool_schema, JsonSchemaType, PropertySchema,
    ToolSchemaBuilder,
};
pub use simple::SimpleTool;
pub use structured::StructuredTool;
pub use types::{ErrorHandler, ResponseFormat, ToolCallInput, ToolInput, ToolOutput};
pub use validation::{Format, ValidateArgs};