Expand description
Unified Agent Execution Context (Task 16)
Stateful session management for agentic use cases:
- Session variables and working directory
- Transaction scope (ACID across all operations)
- Permissions and sandboxing
- Audit logging for reproducibility
§Example
Agent session abc123:
cwd: /agents/abc123
vars: $model = "gpt-4", $budget = 1000
permissions: fs:rw, db:rw, calc:*
audit: [read /data/users, write /agents/abc123/cache]Structs§
- Agent
Context - Agent session context
- Agent
Permissions - Agent permissions
- Audit
Entry - Audit trail entry
- DbPermissions
- Database permissions
- FsPermissions
- Filesystem permissions
- Network
Permissions - Network permissions (for future use)
- Operation
Budget - Operation budget tracking
- Pending
Write - Pending write for transaction rollback
- Session
Manager - Session manager for multiple agent contexts
- Tool
Call Record - Record of a tool call made during the session
- Tool
Definition - Definition of a tool available to the agent
- Transaction
Scope - Transaction scope
Enums§
- Audit
Operation - Audit operation types
- Audit
Result - Audit result
- Context
Error - Context error
- Context
Value - Context variable value
- Resource
Type - Resource type
Type Aliases§
- Session
Id - Session identifier (UUID v7 for time-ordering)