-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
Copy pathtest_agent_serialization.json
416 lines (416 loc) · 14.7 KB
/
test_agent_serialization.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
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
{
"agent_type": "memgpt_agent",
"core_memory": [
{
"created_at": "2025-03-28T01:11:04.570593+00:00",
"description": "A default test block",
"is_template": false,
"label": "default_label",
"limit": 1000,
"metadata_": {
"type": "test"
},
"template_name": null,
"updated_at": "2025-03-28T01:11:04.570593+00:00",
"value": "Default Block Content"
},
{
"created_at": "2025-03-28T01:11:04.609286+00:00",
"description": null,
"is_template": false,
"label": "human",
"limit": 5000,
"metadata_": {},
"template_name": null,
"updated_at": "2025-03-28T01:11:04.609286+00:00",
"value": "BananaBoy"
},
{
"created_at": "2025-03-28T01:11:04.612946+00:00",
"description": null,
"is_template": false,
"label": "persona",
"limit": 5000,
"metadata_": {},
"template_name": null,
"updated_at": "2025-03-28T01:11:04.612946+00:00",
"value": "I am a helpful assistant"
}
],
"created_at": "2025-03-28T01:11:04.624794+00:00",
"description": "test_description",
"embedding_config": {
"embedding_endpoint_type": "openai",
"embedding_endpoint": "https://api.openai.com/v1",
"embedding_model": "text-embedding-ada-002",
"embedding_dim": 1536,
"embedding_chunk_size": 300,
"handle": null,
"azure_endpoint": null,
"azure_version": null,
"azure_deployment": null
},
"llm_config": {
"model": "gpt-4o-mini",
"model_endpoint_type": "openai",
"model_endpoint": "https://api.openai.com/v1",
"model_wrapper": null,
"context_window": 128000,
"put_inner_thoughts_in_kwargs": true,
"handle": null,
"temperature": 0.7,
"max_tokens": 4096,
"enable_reasoner": false,
"max_reasoning_tokens": 0
},
"message_buffer_autoclear": true,
"in_context_message_indices": [0, 1],
"messages": [
{
"created_at": "2025-03-28T01:11:04.654912+00:00",
"group_id": null,
"model": "gpt-4o-mini",
"name": null,
"role": "system",
"content": [
{
"type": "text",
"text": "test system\n### Memory [last modified: 2025-03-27 06:11:04 PM PDT-0700]\n0 previous messages between you and the user are stored in recall memory (use functions to access them)\n0 total memories you created are stored in archival memory (use functions to access them)\n\n\nCore memory shown below (limited in size, additional information stored in archival / recall memory):\n<default_label characters=\"21/1000\">\nDefault Block Content\n</default_label>\n<human characters=\"9/5000\">\nBananaBoy\n</human>\n<persona characters=\"24/5000\">\nI am a helpful assistant\n</persona>"
}
],
"tool_call_id": null,
"tool_calls": [],
"tool_returns": [],
"updated_at": "2025-03-28T01:11:04.654783+00:00"
},
{
"created_at": "2025-03-28T01:11:04.654966+00:00",
"group_id": null,
"model": "gpt-4o-mini",
"name": null,
"role": "user",
"content": [
{
"type": "text",
"text": "{\n \"type\": \"user_message\",\n \"message\": \"hello world\",\n \"time\": \"2025-03-27 06:11:04 PM PDT-0700\"\n}"
}
],
"tool_call_id": null,
"tool_calls": [],
"tool_returns": [],
"updated_at": "2025-03-28T01:11:04.654783+00:00"
}
],
"metadata_": {
"test_key": "test_value"
},
"multi_agent_group": null,
"name": "EffervescentYacht",
"system": "test system",
"tags": [
{
"tag": "a"
},
{
"tag": "b"
}
],
"tool_exec_environment_variables": [
{
"created_at": "2025-03-28T01:11:04.638338+00:00",
"description": null,
"key": "test_env_var_key_a",
"updated_at": "2025-03-28T01:11:04.638338+00:00",
"value": ""
},
{
"created_at": "2025-03-28T01:11:04.638338+00:00",
"description": null,
"key": "test_env_var_key_b",
"updated_at": "2025-03-28T01:11:04.638338+00:00",
"value": ""
}
],
"tool_rules": [
{
"tool_name": "archival_memory_search",
"type": "continue_loop"
},
{
"tool_name": "archival_memory_insert",
"type": "continue_loop"
},
{
"tool_name": "send_message",
"type": "exit_loop"
},
{
"tool_name": "conversation_search",
"type": "continue_loop"
}
],
"tools": [
{
"args_json_schema": null,
"created_at": "2025-03-28T01:11:04.575001+00:00",
"description": "Fetches the current weather for a given location.",
"json_schema": {
"name": "get_weather",
"description": "Fetches the current weather for a given location.",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "The location to get the weather for."
},
"request_heartbeat": {
"type": "boolean",
"description": "Request an immediate heartbeat after function execution. Set to `True` if you want to send a follow-up message or run a follow-up function."
}
},
"required": ["location", "request_heartbeat"]
},
"type": null,
"required": []
},
"name": "get_weather",
"return_char_limit": 6000,
"source_code": "def get_weather(location: str) -> str:\n \"\"\"\n Fetches the current weather for a given location.\n\n Parameters:\n location (str): The location to get the weather for.\n\n Returns:\n str: A formatted string describing the weather in the given location.\n\n Raises:\n RuntimeError: If the request to fetch weather data fails.\n \"\"\"\n import requests\n\n url = f\"https://wttr.in/{location}?format=%C+%t\"\n\n response = requests.get(url)\n if response.status_code == 200:\n weather_data = response.text\n return f\"The weather in {location} is {weather_data}.\"\n else:\n raise RuntimeError(f\"Failed to get weather data, status code: {response.status_code}\")\n",
"source_type": "python",
"tags": [],
"tool_type": "custom",
"updated_at": "2025-03-28T01:11:04.575001+00:00",
"metadata_": {}
},
{
"args_json_schema": null,
"created_at": "2025-03-28T01:11:04.579856+00:00",
"description": "Add to archival memory. Make sure to phrase the memory contents such that it can be easily queried later.",
"json_schema": {
"name": "archival_memory_insert",
"description": "Add to archival memory. Make sure to phrase the memory contents such that it can be easily queried later.",
"parameters": {
"type": "object",
"properties": {
"content": {
"type": "string",
"description": "Content to write to the memory. All unicode (including emojis) are supported."
},
"request_heartbeat": {
"type": "boolean",
"description": "Request an immediate heartbeat after function execution. Set to `True` if you want to send a follow-up message or run a follow-up function."
}
},
"required": ["content", "request_heartbeat"]
},
"type": null,
"required": []
},
"name": "archival_memory_insert",
"return_char_limit": 1000000,
"source_code": null,
"source_type": "python",
"tags": ["letta_core"],
"tool_type": "letta_core",
"updated_at": "2025-03-28T01:11:04.579856+00:00",
"metadata_": {}
},
{
"args_json_schema": null,
"created_at": "2025-03-28T01:11:04.583369+00:00",
"description": "Search archival memory using semantic (embedding-based) search.",
"json_schema": {
"name": "archival_memory_search",
"description": "Search archival memory using semantic (embedding-based) search.",
"parameters": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "String to search for."
},
"page": {
"type": "integer",
"description": "Allows you to page through results. Only use on a follow-up query. Defaults to 0 (first page)."
},
"start": {
"type": "integer",
"description": "Starting index for the search results. Defaults to 0."
},
"request_heartbeat": {
"type": "boolean",
"description": "Request an immediate heartbeat after function execution. Set to `True` if you want to send a follow-up message or run a follow-up function."
}
},
"required": ["query", "request_heartbeat"]
},
"type": null,
"required": []
},
"name": "archival_memory_search",
"return_char_limit": 1000000,
"source_code": null,
"source_type": "python",
"tags": ["letta_core"],
"tool_type": "letta_core",
"updated_at": "2025-03-28T01:11:04.583369+00:00",
"metadata_": {}
},
{
"args_json_schema": null,
"created_at": "2025-03-28T01:11:04.586573+00:00",
"description": "Search prior conversation history using case-insensitive string matching.",
"json_schema": {
"name": "conversation_search",
"description": "Search prior conversation history using case-insensitive string matching.",
"parameters": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "String to search for."
},
"page": {
"type": "integer",
"description": "Allows you to page through results. Only use on a follow-up query. Defaults to 0 (first page)."
},
"request_heartbeat": {
"type": "boolean",
"description": "Request an immediate heartbeat after function execution. Set to `True` if you want to send a follow-up message or run a follow-up function."
}
},
"required": ["query", "request_heartbeat"]
},
"type": null,
"required": []
},
"name": "conversation_search",
"return_char_limit": 1000000,
"source_code": null,
"source_type": "python",
"tags": ["letta_core"],
"tool_type": "letta_core",
"updated_at": "2025-03-28T01:11:04.586573+00:00",
"metadata_": {}
},
{
"args_json_schema": null,
"created_at": "2025-03-28T01:11:04.589876+00:00",
"description": "Append to the contents of core memory.",
"json_schema": {
"name": "core_memory_append",
"description": "Append to the contents of core memory.",
"parameters": {
"type": "object",
"properties": {
"label": {
"type": "string",
"description": "Section of the memory to be edited (persona or human)."
},
"content": {
"type": "string",
"description": "Content to write to the memory. All unicode (including emojis) are supported."
},
"request_heartbeat": {
"type": "boolean",
"description": "Request an immediate heartbeat after function execution. Set to `True` if you want to send a follow-up message or run a follow-up function."
}
},
"required": ["label", "content", "request_heartbeat"]
},
"type": null,
"required": []
},
"name": "core_memory_append",
"return_char_limit": 1000000,
"source_code": null,
"source_type": "python",
"tags": ["letta_memory_core"],
"tool_type": "letta_memory_core",
"updated_at": "2025-03-28T01:11:04.589876+00:00",
"metadata_": {}
},
{
"args_json_schema": null,
"created_at": "2025-03-28T01:11:04.593153+00:00",
"description": "Replace the contents of core memory. To delete memories, use an empty string for new_content.",
"json_schema": {
"name": "core_memory_replace",
"description": "Replace the contents of core memory. To delete memories, use an empty string for new_content.",
"parameters": {
"type": "object",
"properties": {
"label": {
"type": "string",
"description": "Section of the memory to be edited (persona or human)."
},
"old_content": {
"type": "string",
"description": "String to replace. Must be an exact match."
},
"new_content": {
"type": "string",
"description": "Content to write to the memory. All unicode (including emojis) are supported."
},
"request_heartbeat": {
"type": "boolean",
"description": "Request an immediate heartbeat after function execution. Set to `True` if you want to send a follow-up message or run a follow-up function."
}
},
"required": [
"label",
"old_content",
"new_content",
"request_heartbeat"
]
},
"type": null,
"required": []
},
"name": "core_memory_replace",
"return_char_limit": 1000000,
"source_code": null,
"source_type": "python",
"tags": ["letta_memory_core"],
"tool_type": "letta_memory_core",
"updated_at": "2025-03-28T01:11:04.593153+00:00",
"metadata_": {}
},
{
"args_json_schema": null,
"created_at": "2025-03-28T01:11:04.596458+00:00",
"description": "Sends a message to the human user.",
"json_schema": {
"name": "send_message",
"description": "Sends a message to the human user.",
"parameters": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Message contents. All unicode (including emojis) are supported."
},
"request_heartbeat": {
"type": "boolean",
"description": "Request an immediate heartbeat after function execution. Set to `True` if you want to send a follow-up message or run a follow-up function."
}
},
"required": ["message", "request_heartbeat"]
},
"type": null,
"required": []
},
"name": "send_message",
"return_char_limit": 1000000,
"source_code": null,
"source_type": "python",
"tags": ["letta_core"],
"tool_type": "letta_core",
"updated_at": "2025-03-28T01:11:04.596458+00:00",
"metadata_": {}
}
],
"updated_at": "2025-03-28T01:11:04.680766+00:00",
"version": "0.6.45"
}