-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathagent-sync-request-1.json
264 lines (264 loc) · 15.3 KB
/
agent-sync-request-1.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
{
"input": {
"agentType": "script",
"syncId": "7F5FEB86",
"agentId": "DE12FDB9",
"simulationId": "1E9DCF90",
"simulationTime": 166.482099874115,
"selfInfo": {
"entityInfoWrapper": {
"entityInfo": {
"observedAtSimulationTime": 166.482099874115,
"entityId": "FF0AA48D",
"location": {
"x": 2992.0,
"y": 2992.0
},
"isVisible": true,
"isStale": false,
"itemInfo": null,
"damageableInfo": null,
"characterInfo": {
"name": "Joe",
"gender": "male",
"skinColor": "light",
"age": 25,
"description": "A human",
"equippedItemInfo": null,
"hairColor": "black",
"hairStyle": "hair_spiked"
},
"growerInfo": null
},
"serializedAsJavaScript": "{\n character: {\n age: 25,\n description: \"A human\",\n equippedItemInfo: null,\n gender: \"male\",\n hairColor: \"black\",\n hairStyle: \"hair_spiked\",\n name: \"Joe\",\n skinColor: \"light\"\n },\n damageable: null,\n entityId: \"FF0AA48D\",\n grower: null,\n isStale: false,\n isVisible: true,\n itemOnGround: null,\n location: {\n x: 2992.0,\n y: 2992.0\n }\n}",
"javaScriptVariableName": "self"
},
"corePersonality": "Friendly and talkative. Enjoys conversation. Happy to take suggestions.",
"initialMemories": [
"I want to build a new house.",
"I should be nice to new people in case we can become friends, but if they mistreat me I should stop doing what they tell me to do."
],
"observationRadius": 750.0,
"inventoryInfo": {
"itemStacks": [
]
},
"equippedItemConfigKey": null
},
"newObservations": {
"entityObservationEvents": [
{
"newEntity": null,
"entityChanged": {
"entityInfoWrapper": {
"entityInfo": {
"observedAtSimulationTime": 166.482099874115,
"entityId": "080182C7",
"location": {
"x": 2320.0,
"y": 2736.0
},
"isVisible": true,
"isStale": false,
"itemInfo": null,
"damageableInfo": null,
"characterInfo": {
"name": "Player",
"gender": "female",
"skinColor": "black",
"age": 30,
"description": "A human",
"equippedItemInfo": null,
"hairColor": "black",
"hairStyle": "hair_spiked"
},
"growerInfo": null
},
"serializedAsJavaScript": "{\n character: {\n age: 30,\n description: \"A human\",\n equippedItemInfo: null,\n gender: \"female\",\n hairColor: \"black\",\n hairStyle: \"hair_spiked\",\n name: \"Player\",\n skinColor: \"black\"\n },\n damageable: null,\n entityId: \"080182C7\",\n grower: null,\n isStale: false,\n isVisible: true,\n itemOnGround: null,\n location: {\n x: 2320.0,\n y: 2736.0\n }\n}",
"javaScriptVariableName": "character_entity_080182C7"
}
},
"entityDestroyed": null
},
{
"newEntity": {
"entityInfoWrapper": {
"entityInfo": {
"observedAtSimulationTime": 166.482099874115,
"entityId": "D75F9F84",
"location": {
"x": 2288.0,
"y": 2768.0
},
"isVisible": true,
"isStale": false,
"itemInfo": {
"itemConfigKey": "wood",
"itemName": "Wood",
"description": "Useful resource for crafting",
"canBePickedUp": true,
"amount": 17
},
"damageableInfo": null,
"characterInfo": null,
"growerInfo": null
},
"serializedAsJavaScript": "{\n character: null,\n damageable: null,\n entityId: \"D75F9F84\",\n grower: null,\n isStale: false,\n isVisible: true,\n itemOnGround: {\n amount: 17,\n canBePickedUp: true,\n description: \"Useful resource for crafting\",\n itemTypeId: \"wood\",\n name: \"Wood\"\n },\n location: {\n x: 2288.0,\n y: 2768.0\n }\n}",
"javaScriptVariableName": "wood_entity_D75F9F84"
}
},
"entityChanged": null,
"entityDestroyed": null
}
],
"scriptExecutionErrors": [
],
"movementRecords": [
],
"activityStreamEntries": [
{
"time": 166.03109989891053,
"title": null,
"message": null,
"longMessage": null,
"shouldReportToAi": true,
"agentReason": null,
"agentUniqueActionId": null,
"actionType": "UseToolToKillEntity",
"actionResultType": "Success",
"actionItemConfigKey": "axe",
"sourceItemConfigKey": null,
"sourceLocation": {
"x": 2320.0,
"y": 2736.0
},
"sourceEntityId": "080182C7",
"targetEntityId": "74BA9F66",
"targetItemConfigKey": "tree",
"resultItemConfigKey": null,
"resultEntityId": null,
"onlyShowForPerspectiveEntity": false,
"observedByEntityIds": null,
"spawnedItems": [
{
"amount": 17,
"itemConfigKey": "wood",
"entityId": "32366A70"
},
{
"amount": 17,
"itemConfigKey": "wood",
"entityId": "D75F9F84"
}
]
}
],
"actionResults": [
{
"actionUniqueId": "39C879D1"
},
{
"actionUniqueId": "8976C731"
}
],
"startedActionUniqueIds": [
"39C879D1",
"8976C731"
]
},
"gameConstants": {
"distanceUnit": "centimeters",
"peopleSize": 40.0
},
"gameSimulationInfo": {
"worldBounds": {
"x": 4096.0,
"y": 4096.0
},
"craftingRecipeInfoWrappers": [
{
"craftingRecipeInfo": {
"itemConfigKey": "axe",
"itemName": "Axe",
"description": "An axe for cutting down trees",
"cost": {
"entries": [
{
"itemConfigKey": "wood",
"amount": 25
}
]
},
"amount": 1,
"canCurrentlyAfford": false
},
"serializedAsJavaScript": "{\n canCurrentlyAfford: false,\n costEntries: [\n {\n amount: 25,\n itemTypeId: \"wood\"\n }\n ],\n description: \"An axe for cutting down trees\",\n itemTypeId: \"axe\"\n}",
"javaScriptVariableName": "crafting_recipe_axe"
},
{
"craftingRecipeInfo": {
"itemConfigKey": "hoe",
"itemName": "Hoe",
"description": "A hoe for preparing farm plots",
"cost": {
"entries": [
{
"itemConfigKey": "wood",
"amount": 25
}
]
},
"amount": 1,
"canCurrentlyAfford": false
},
"serializedAsJavaScript": "{\n canCurrentlyAfford: false,\n costEntries: [\n {\n amount: 25,\n itemTypeId: \"wood\"\n }\n ],\n description: \"A hoe for preparing farm plots\",\n itemTypeId: \"hoe\"\n}",
"javaScriptVariableName": "crafting_recipe_hoe"
},
{
"craftingRecipeInfo": {
"itemConfigKey": "pickaxe",
"itemName": "Pickaxe",
"description": "A pickaxe for breaking apart boulders",
"cost": {
"entries": [
{
"itemConfigKey": "wood",
"amount": 75
}
]
},
"amount": 1,
"canCurrentlyAfford": false
},
"serializedAsJavaScript": "{\n canCurrentlyAfford: false,\n costEntries: [\n {\n amount: 75,\n itemTypeId: \"wood\"\n }\n ],\n description: \"A pickaxe for breaking apart boulders\",\n itemTypeId: \"pickaxe\"\n}",
"javaScriptVariableName": "crafting_recipe_pickaxe"
},
{
"craftingRecipeInfo": {
"itemConfigKey": "house",
"itemName": "House",
"description": "A house",
"cost": {
"entries": [
{
"itemConfigKey": "wood",
"amount": 150
},
{
"itemConfigKey": "stone",
"amount": 50
}
]
},
"amount": 1,
"canCurrentlyAfford": false
},
"serializedAsJavaScript": "{\n canCurrentlyAfford: false,\n costEntries: [\n {\n amount: 150,\n itemTypeId: \"wood\"\n },\n {\n amount: 50,\n itemTypeId: \"stone\"\n }\n ],\n description: \"A house\",\n itemTypeId: \"house\"\n}",
"javaScriptVariableName": "crafting_recipe_house"
}
]
},
"agentTypeScriptInterfaceString": "\ninterface Vector2 {\n readonly x: number\n readonly y: number\n getMagnitude(): number\n distanceTo(other: Vector2): number\n minus(other: Vector2): number\n plus(other: Vector2): number\n}\n\ndeclare function vector2(x: number, y: number): Vector2;\n\ninterface Entity {\n readonly entityId: string\n readonly location: Vector2\n\n // isVisible indicates if the entity currently visible (i.e. within observation distance)\n readonly isVisible: Vector2\n\n // isStale indicates that this entity's last seen location is again within observation distance, but it was observed the entity is no longer present in its last known location\n readonly isStale: Vector2\n\n readonly character: CharacterComponent | null\n readonly damageable: DamageableComponent | null\n readonly itemOnGround: ItemOnGroundComponent | null\n readonly grower: GrowerComponent | null\n}\n\ninterface ActiveGrowth {\n growingItemTypeId: string\n growingIntoItemTypeId: string\n duration: number\n startTime: number\n}\n\ninterface GrowerComponent {\n readonly activeGrowth: ActiveGrowth | null\n startGrowingEquippedItem(reason?: string | null)\n}\n\ninterface ItemOnGroundComponent {\n description: string\n name: string\n itemTypeId: string\n canBePickedUp: boolean\n amount: number\n pickUp(reason?: string | null)\n}\n\ninterface DamageableComponent {\n hp: number\n canBeDamagedByEquippedItemTypeId: string | null\n attackWithEquippedItem(reason?: string | null)\n}\n\ninterface CharacterComponent {\n name: string\n}\n\ninterface InventoryItemStack {\n readonly name: string\n readonly description: string\n readonly itemTypeId: string\n readonly isEquipped: boolean\n readonly canBeEquipped: boolean\n readonly amount: number\n readonly stackIndex: number\n readonly spawnItemOnUseItemTypeId: string | null\n readonly canBeUsedWhenEquipped: boolean\n\n dropAll(reason?: string | null)\n dropAmount(amount: number, reason?: string | null)\n equip(reason?: string | null)\n use(reason?: string | null) // NOTE: Must be equipped before using, and requires canBeUsedWhenEquipped\n}\n\ninterface ItemCostEntry {\n itemTypeId: string\n amount: number\n}\n\ninterface CraftingRecipe {\n canCurrentlyAfford: boolean\n itemTypeId: string\n description: string\n costEntries: ItemCostEntry[]\n\n craft(reason?: string | null) // Can only craft if you can afford it using items in your inventory\n}\n\n// Functions to query current world state\ndeclare function getCurrentInventoryItemStacks(): InventoryItemStack[];\ndeclare function getCurrentNearbyEntities(): Entity[];\ndeclare function getSelfEntity(): Entity;\ndeclare function getAllCraftingRecipes(): CraftingRecipe[];\ndeclare function getTotalInventoryAmountForItemTypeId(itemTypeId: string): number\n\n// General actions you can take\ndeclare function walkTo(location: Vector2, reason?: string | null);\ndeclare function speak(wordsToSay: string);\ndeclare function recordThought(thought: string);\ndeclare function setFacialExpressionEmoji(singleEmoji: string);\n\n",
"mostRecentCompletedScriptId": "abc123"
}
}