| Crates.io | thulp-workspace |
| lib.rs | thulp-workspace |
| version | 0.2.0 |
| created_at | 2026-01-15 00:10:40.528685+00 |
| updated_at | 2026-01-15 07:14:39.048489+00 |
| description | Workspace management for thulp execution contexts |
| homepage | |
| repository | https://github.com/dirmacs/thulp |
| max_upload_size | |
| id | 2044228 |
| size | 24,643 |
Workspace and session management for thulp execution contexts.
This crate provides functionality for managing agent workspaces, including context, state, and session persistence. Workspaces allow AI agents to maintain state between tool executions and organize their working environment.
use thulp_workspace::{Workspace, WorkspaceManager};
use std::path::PathBuf;
// Create a new workspace
let workspace = Workspace::new("my_project", "My Project", PathBuf::from("/path/to/project"))
.with_metadata("version", "1.0")
.with_context("api_key", serde_json::json!("secret123"));
// Save to file
workspace.save_to_file("workspace.json").unwrap();
// Load from file
let loaded = Workspace::load_from_file("workspace.json").unwrap();
// Manage workspaces
let mut manager = WorkspaceManager::new();
manager.create(workspace);
manager.set_active("my_project").unwrap();
A workspace contains:
Licensed under either of:
at your option.