Skip to main content

Crate tau_agent_base

Crate tau_agent_base 

Source
Expand description

Shared types, wire protocol, and utilities for the tau agent workspace.

This is the leaf crate that every other tau workspace crate depends on. Dependencies are kept minimal: serde, serde_json, thiserror, and futures (for async JSON-line I/O helpers used by the client and plugin crates).

Re-exports§

pub use usage_totals::UsageTotals;
pub use types::*;

Modules§

config_chain
Three-tier config resolution: operator > project > global.
model_resolve
Model id / alias → concrete Model resolver.
paths
Shared XDG path resolution for tau directories.
plugin_protocol
Plugin wire protocol types.
plugin_service
Plugin RPC services for the myelin-based plugin transport.
project
Project configuration, discovery, and initialization.
protocol
JSON-lines wire protocol over unix domain socket.
subscription_usage
Subscription usage types and OAuth token detection.
tool_prompt
Tool prompt contribution type.
types
usage_totals
Cumulative usage tracking shared by the tau agent frontends.

Enums§

Error

Functions§

read_json_line
Read a single JSON line (sync). Returns Ok(None) on EOF.
read_json_line_async
Read a single JSON line (async). Returns Ok(None) on EOF.
truncate_str
Truncate s to at most max_bytes bytes, rounding down to a char boundary.
truncate_str_end
Truncate s to at most max_bytes bytes from the end, rounding up to a char boundary.
write_json_line
Serialize val as a single JSON line and flush the writer (sync).
write_json_line_async
Serialize val as a single JSON line and flush the writer (async).

Type Aliases§

Result