kota 0.1.3

A lightweight, highly extensible ai code agent, built in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use rig::agent::StreamingPromptHook;
use rig::completion::CompletionModel;

/// Session-aware hook that logs tool calls and completions with session context
#[derive(Clone)]
pub struct SessionIdHook {
    pub session_id: String,
}

impl SessionIdHook {
    pub fn new(session_id: String) -> Self {
        Self { session_id }
    }
}

impl<M: CompletionModel> StreamingPromptHook<M> for SessionIdHook {}