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
16
17
18
#![allow(dead_code)]

use std::collections::HashMap;

pub struct EnvVar {
    pub key: String,
    pub value: String,
}

pub fn get_all_env_vars() -> Vec<EnvVar> {
    std::env::vars()
        .map(|(key, value)| EnvVar { key, value })
        .collect()
}

pub fn set_env_var(key: &str, value: &str) {
    std::env::set_var(key, value);
}