@perstack/core 0.0.21 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -1
- package/dist/src/index.d.ts +898 -682
- package/dist/src/index.js +265 -24
- package/dist/src/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,13 +47,32 @@ export const apiExpertSchema = expertSchema.omit({
|
|
|
47
47
|
- `Message`, `ToolCall`, `ToolResult` - Runtime execution types
|
|
48
48
|
|
|
49
49
|
2. **Domain Common Types**: Types that represent core domain concepts used throughout the system, for example:
|
|
50
|
+
- `Job` - Top-level execution unit containing Runs
|
|
51
|
+
- `Run` - Single Expert execution within a Job
|
|
50
52
|
- `Checkpoint` - Execution state snapshots
|
|
51
53
|
- `Usage` - Resource usage tracking
|
|
52
54
|
- `ProviderConfig` - LLM provider configurations
|
|
53
55
|
|
|
54
56
|
3. **Configuration Schemas**: System-wide configuration structures, for example:
|
|
55
57
|
- `PerstackToml` - Project configuration file schema
|
|
56
|
-
- `
|
|
58
|
+
- `JobSetting` - Job execution parameters
|
|
59
|
+
- `RunSetting` - Run execution parameters
|
|
60
|
+
|
|
61
|
+
4. **Adapter Abstractions**: Runtime adapter interfaces and base classes:
|
|
62
|
+
- `RuntimeAdapter` - Interface for runtime adapters
|
|
63
|
+
- `BaseAdapter` - Abstract base class for CLI-based adapters
|
|
64
|
+
- `AdapterRunParams`, `AdapterRunResult` - Adapter execution types
|
|
65
|
+
- Event creators for normalized checkpoint/event handling
|
|
66
|
+
|
|
67
|
+
### Execution Hierarchy
|
|
68
|
+
|
|
69
|
+
| Schema | Description |
|
|
70
|
+
| ------------ | --------------------------------------------------- |
|
|
71
|
+
| `Job` | Top-level execution unit. Contains all Runs. |
|
|
72
|
+
| `Run` | Single Expert execution within a Job. |
|
|
73
|
+
| `Checkpoint` | Snapshot at step end within a Run. |
|
|
74
|
+
|
|
75
|
+
For the full hierarchy and execution model, see [State Management](https://docs.perstack.ai/using-experts/state-management).
|
|
57
76
|
|
|
58
77
|
### What Core Should NOT Contain
|
|
59
78
|
|