Crate kowalski

Crate kowalski 

Source
Expand description

Kowalski - A Rust-based agent framework for interacting with Ollama models

This crate provides a comprehensive framework for building AI agents with various capabilities:

§Core Components

  • Core: Basic agent infrastructure and types
  • Agent Template: Templates for building custom agents
  • Tools: Various tools for web scraping, data processing, and more
  • Federation: Multi-agent coordination and communication

§Specialized Agents

  • Academic Agent: Research and academic paper analysis
  • Code Agent: Code analysis, refactoring, and generation
  • Data Agent: Data analysis and processing (optional feature)
  • Web Agent: Web research and information gathering

§Usage

use kowalski::core::BaseAgent;
use kowalski::agent_template::AgentBuilder;
 
// Create a basic agent
let agent = AgentBuilder::new()
    .with_model("llama2")
    .build()?;

§Features

  • data: Enable data analysis capabilities (includes kowalski-data-agent)

Re-exports§

pub use kowalski_core as core;
pub use kowalski_agent_template as agent_template;
pub use kowalski_tools as tools;
pub use kowalski_federation as federation;
pub use kowalski_academic_agent as academic_agent;
pub use kowalski_code_agent as code_agent;
pub use kowalski_web_agent as web_agent;
pub use kowalski_data_agent as data_agent;

Structs§

AgentBuilder
BaseAgent
The base agent implementation that provides common functionality.
Config
Core configuration for the Kowalski system
Conversation
Conversation: The AI’s memory of what it’s been talking about. “Conversations are like dreams - they make sense at the time but are hard to explain later.”
Message
Role
Role: The AI’s personality for this conversation. “Roles are like costumes - they change how you act but not who you are.”
ToolChain
A chain of tools that can be executed in sequence

Enums§

KowalskiError

Constants§

VERSION

Traits§

Tool
A tool that can be executed by the agent

Type Aliases§

Result