theater 0.3.9

A WebAssembly actor system for AI agents
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package theater:simple;

interface environment {
    // Get a specific environment variable
    // Returns None if the variable doesn't exist or access is denied
    get-var: func(name: string) -> option<string>;
    
    // List all accessible environment variables
    // Returns empty list if list_all is not enabled in config
    list-vars: func() -> list<tuple<string, string>>;
    
    // Check if a specific environment variable exists (and is accessible)
    exists: func(name: string) -> bool;
}