@elizaos/schemas 2.0.0-alpha.10
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 +199 -0
- package/buf.gen.yaml +28 -0
- package/buf.yaml +16 -0
- package/eliza/v1/agent.proto +119 -0
- package/eliza/v1/components.proto +111 -0
- package/eliza/v1/database.proto +199 -0
- package/eliza/v1/environment.proto +91 -0
- package/eliza/v1/events.proto +235 -0
- package/eliza/v1/ipc.proto +212 -0
- package/eliza/v1/knowledge.proto +25 -0
- package/eliza/v1/memory.proto +91 -0
- package/eliza/v1/message_service.proto +48 -0
- package/eliza/v1/messaging.proto +67 -0
- package/eliza/v1/model.proto +183 -0
- package/eliza/v1/payment.proto +45 -0
- package/eliza/v1/plugin.proto +94 -0
- package/eliza/v1/primitives.proto +94 -0
- package/eliza/v1/prompts.proto +43 -0
- package/eliza/v1/service.proto +43 -0
- package/eliza/v1/service_interfaces.proto +752 -0
- package/eliza/v1/settings.proto +44 -0
- package/eliza/v1/state.proto +86 -0
- package/eliza/v1/task.proto +38 -0
- package/eliza/v1/tee.proto +64 -0
- package/eliza/v1/testing.proto +16 -0
- package/package.json +29 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// settings.proto - Runtime and onboarding settings for elizaOS
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
|
|
4
|
+
package eliza.v1;
|
|
5
|
+
|
|
6
|
+
import "google/protobuf/struct.proto";
|
|
7
|
+
|
|
8
|
+
// Runtime settings provided as key/value strings (typically from env).
|
|
9
|
+
message RuntimeSettings {
|
|
10
|
+
map<string, string> values = 1;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// Definition for a configurable setting (metadata only).
|
|
14
|
+
message SettingDefinition {
|
|
15
|
+
string name = 1;
|
|
16
|
+
string description = 2;
|
|
17
|
+
string usage_description = 3;
|
|
18
|
+
bool required = 4;
|
|
19
|
+
optional bool public = 5;
|
|
20
|
+
optional bool secret = 6;
|
|
21
|
+
repeated string depends_on = 7;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Concrete setting value (value may be string, bool, or null).
|
|
25
|
+
message Setting {
|
|
26
|
+
string name = 1;
|
|
27
|
+
string description = 2;
|
|
28
|
+
string usage_description = 3;
|
|
29
|
+
bool required = 4;
|
|
30
|
+
optional bool public = 5;
|
|
31
|
+
optional bool secret = 6;
|
|
32
|
+
repeated string depends_on = 7;
|
|
33
|
+
google.protobuf.Value value = 8;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// World settings configuration map.
|
|
37
|
+
message WorldSettings {
|
|
38
|
+
map<string, Setting> settings = 1;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// Onboarding configuration with setting definitions.
|
|
42
|
+
message OnboardingConfig {
|
|
43
|
+
map<string, SettingDefinition> settings = 1;
|
|
44
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// state.proto - State and context types for elizaOS
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
|
|
4
|
+
package eliza.v1;
|
|
5
|
+
|
|
6
|
+
import "eliza/v1/components.proto";
|
|
7
|
+
import "eliza/v1/environment.proto";
|
|
8
|
+
import "google/protobuf/struct.proto";
|
|
9
|
+
|
|
10
|
+
// Single step in an action plan
|
|
11
|
+
message ActionPlanStep {
|
|
12
|
+
string action = 1;
|
|
13
|
+
string status = 2;
|
|
14
|
+
optional string error = 3;
|
|
15
|
+
optional ActionResult result = 4;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// Multi-step action plan
|
|
19
|
+
message ActionPlan {
|
|
20
|
+
string thought = 1;
|
|
21
|
+
int32 total_steps = 2;
|
|
22
|
+
int32 current_step = 3;
|
|
23
|
+
repeated ActionPlanStep steps = 4;
|
|
24
|
+
google.protobuf.Struct metadata = 5;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// Provider result cache entry
|
|
28
|
+
message ProviderCacheEntry {
|
|
29
|
+
optional string text = 1;
|
|
30
|
+
google.protobuf.Struct values = 2;
|
|
31
|
+
google.protobuf.Struct data = 3;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Working memory item for multi-step action execution
|
|
35
|
+
message WorkingMemoryItem {
|
|
36
|
+
// Name of the action that created this entry
|
|
37
|
+
string action_name = 1;
|
|
38
|
+
// Result from the action execution
|
|
39
|
+
ActionResult result = 2;
|
|
40
|
+
// Timestamp when the entry was created
|
|
41
|
+
int64 timestamp = 3;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Structured data cached in state by providers and actions
|
|
45
|
+
message StateData {
|
|
46
|
+
// Cached room data from providers
|
|
47
|
+
optional Room room = 1;
|
|
48
|
+
// Cached world data from providers
|
|
49
|
+
optional World world = 2;
|
|
50
|
+
// Cached entity data from providers
|
|
51
|
+
optional Entity entity = 3;
|
|
52
|
+
// Provider results cache keyed by provider name
|
|
53
|
+
map<string, ProviderCacheEntry> providers = 4;
|
|
54
|
+
// Current action plan for multi-step actions
|
|
55
|
+
optional ActionPlan action_plan = 5;
|
|
56
|
+
// Results from previous action executions
|
|
57
|
+
repeated ActionResult action_results = 6;
|
|
58
|
+
// Working memory for temporary state during multi-step action execution
|
|
59
|
+
map<string, WorkingMemoryItem> working_memory = 7;
|
|
60
|
+
// Dynamic properties for plugin extensions
|
|
61
|
+
google.protobuf.Struct extra = 8;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// State values populated by providers
|
|
65
|
+
message StateValues {
|
|
66
|
+
// Agent name
|
|
67
|
+
optional string agent_name = 1;
|
|
68
|
+
// Action names available to the agent
|
|
69
|
+
optional string action_names = 2;
|
|
70
|
+
// Provider names used
|
|
71
|
+
optional string providers = 3;
|
|
72
|
+
// Other dynamic values
|
|
73
|
+
google.protobuf.Struct extra = 4;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// Represents the current state or context of a conversation or agent interaction
|
|
77
|
+
message State {
|
|
78
|
+
// Key-value store for state variables populated by providers
|
|
79
|
+
StateValues values = 1;
|
|
80
|
+
// Structured data cache with typed properties
|
|
81
|
+
StateData data = 2;
|
|
82
|
+
// String representation of the current context
|
|
83
|
+
string text = 3;
|
|
84
|
+
// Dynamic properties for template expansion
|
|
85
|
+
google.protobuf.Struct extra = 4;
|
|
86
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// task.proto - Task types for elizaOS
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
|
|
4
|
+
package eliza.v1;
|
|
5
|
+
|
|
6
|
+
import "google/protobuf/struct.proto";
|
|
7
|
+
|
|
8
|
+
// Task status enumeration
|
|
9
|
+
enum TaskStatus {
|
|
10
|
+
TASK_STATUS_UNSPECIFIED = 0;
|
|
11
|
+
TASK_STATUS_PENDING = 1;
|
|
12
|
+
TASK_STATUS_IN_PROGRESS = 2;
|
|
13
|
+
TASK_STATUS_COMPLETED = 3;
|
|
14
|
+
TASK_STATUS_FAILED = 4;
|
|
15
|
+
TASK_STATUS_CANCELLED = 5;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// Task metadata
|
|
19
|
+
message TaskMetadata {
|
|
20
|
+
// Custom metadata values
|
|
21
|
+
google.protobuf.Struct values = 1;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Represents a task
|
|
25
|
+
message Task {
|
|
26
|
+
optional string id = 1;
|
|
27
|
+
string name = 2;
|
|
28
|
+
optional string description = 3;
|
|
29
|
+
TaskStatus status = 4;
|
|
30
|
+
optional string room_id = 5;
|
|
31
|
+
optional string world_id = 6;
|
|
32
|
+
optional string entity_id = 7;
|
|
33
|
+
repeated string tags = 8;
|
|
34
|
+
optional TaskMetadata metadata = 9;
|
|
35
|
+
optional int64 created_at = 10;
|
|
36
|
+
optional int64 updated_at = 11;
|
|
37
|
+
optional int64 due_at = 12;
|
|
38
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// tee.proto - Trusted Execution Environment types for elizaOS
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
|
|
4
|
+
package eliza.v1;
|
|
5
|
+
|
|
6
|
+
import "google/protobuf/struct.proto";
|
|
7
|
+
|
|
8
|
+
// Registration details for an agent within a TEE context.
|
|
9
|
+
message TeeAgent {
|
|
10
|
+
string id = 1;
|
|
11
|
+
string agent_id = 2;
|
|
12
|
+
string agent_name = 3;
|
|
13
|
+
int64 created_at = 4;
|
|
14
|
+
string public_key = 5;
|
|
15
|
+
string attestation = 6;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// Operational modes for a TEE.
|
|
19
|
+
enum TEEMode {
|
|
20
|
+
TEE_MODE_UNSPECIFIED = 0;
|
|
21
|
+
TEE_MODE_OFF = 1;
|
|
22
|
+
TEE_MODE_LOCAL = 2;
|
|
23
|
+
TEE_MODE_DOCKER = 3;
|
|
24
|
+
TEE_MODE_PRODUCTION = 4;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// Quote obtained during remote attestation.
|
|
28
|
+
message RemoteAttestationQuote {
|
|
29
|
+
string quote = 1;
|
|
30
|
+
int64 timestamp = 2;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// Data used to derive a key within a TEE.
|
|
34
|
+
message DeriveKeyAttestationData {
|
|
35
|
+
string agent_id = 1;
|
|
36
|
+
string public_key = 2;
|
|
37
|
+
optional string subject = 3;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Message content attested by a TEE.
|
|
41
|
+
message AttestedMessage {
|
|
42
|
+
string entity_id = 1;
|
|
43
|
+
string room_id = 2;
|
|
44
|
+
string content = 3;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// Represents a message that has been attested by a TEE.
|
|
48
|
+
message RemoteAttestationMessage {
|
|
49
|
+
string agent_id = 1;
|
|
50
|
+
int64 timestamp = 2;
|
|
51
|
+
AttestedMessage message = 3;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Types or vendors of TEEs.
|
|
55
|
+
enum TeeType {
|
|
56
|
+
TEE_TYPE_UNSPECIFIED = 0;
|
|
57
|
+
TEE_TYPE_TDX_DSTACK = 1;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// Configuration for a TEE plugin.
|
|
61
|
+
message TeePluginConfig {
|
|
62
|
+
optional string vendor = 1;
|
|
63
|
+
google.protobuf.Struct vendor_config = 2;
|
|
64
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// testing.proto - Test suite metadata for elizaOS
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
|
|
4
|
+
package eliza.v1;
|
|
5
|
+
|
|
6
|
+
// Represents a test case definition (handler is runtime-only).
|
|
7
|
+
message TestCase {
|
|
8
|
+
string name = 1;
|
|
9
|
+
optional string handler_id = 2;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// Represents a suite of related test cases.
|
|
13
|
+
message TestSuite {
|
|
14
|
+
string name = 1;
|
|
15
|
+
repeated TestCase tests = 2;
|
|
16
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@elizaos/schemas",
|
|
3
|
+
"version": "2.0.0-alpha.10",
|
|
4
|
+
"description": "Protocol Buffer schemas for elizaOS - single source of truth for all types",
|
|
5
|
+
"files": [
|
|
6
|
+
"eliza",
|
|
7
|
+
"buf.yaml",
|
|
8
|
+
"buf.gen.yaml",
|
|
9
|
+
"README.md"
|
|
10
|
+
],
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"lint": "buf lint",
|
|
16
|
+
"format": "buf format -w",
|
|
17
|
+
"breaking": "buf breaking --against '.git#branch=main'",
|
|
18
|
+
"generate": "buf generate",
|
|
19
|
+
"generate:ts": "buf generate --template buf.gen.ts.yaml",
|
|
20
|
+
"generate:py": "buf generate --template buf.gen.py.yaml",
|
|
21
|
+
"generate:rs": "buf generate --template buf.gen.rs.yaml",
|
|
22
|
+
"clean": "rm -rf ../typescript/src/types/generated ../python/elizaos/types/generated ../rust/src/types/generated",
|
|
23
|
+
"build": "npm run lint && npm run generate",
|
|
24
|
+
"test": "buf lint"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@bufbuild/buf": "^1.47.2"
|
|
28
|
+
}
|
|
29
|
+
}
|