ai-agent 0.88.0

Idiomatic agent sdk inspired by the claude code source leak
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![allow(dead_code)]

use std::collections::HashMap;

pub struct TransportConfig {
    pub url: String,
    pub timeout_ms: u64,
}

pub trait Transport {
    fn connect(&mut self) -> Result<(), Box<dyn std::error::Error>>;
    fn send(&mut self, data: &[u8]) -> Result<(), Box<dyn std::error::Error>>;
    fn receive(&mut self) -> Result<Vec<u8>, Box<dyn std::error::Error>>;
    fn close(&mut self) -> Result<(), Box<dyn std::error::Error>>;
}