letta-client 0.1.2__py3-none-any.whl → 0.1.6__py3-none-any.whl

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.
Files changed (65) hide show
  1. letta/__init__.py +40 -34
  2. letta/agents/__init__.py +55 -3
  3. letta/agents/client.py +513 -35
  4. letta/agents/messages/__init__.py +36 -2
  5. letta/agents/messages/client.py +46 -0
  6. letta/agents/messages/types/__init__.py +37 -3
  7. letta/agents/messages/types/letta_streaming_response.py +132 -14
  8. letta/agents/messages/types/messages_list_response_item.py +114 -7
  9. letta/agents/types/__init__.py +36 -2
  10. letta/agents/types/{agents_create_version_response.py → agents_get_agent_variables_response.py} +2 -5
  11. letta/agents/types/agents_search_deployed_agents_request_combinator.py +5 -0
  12. letta/agents/types/agents_search_deployed_agents_request_search_item.py +67 -0
  13. letta/agents/types/agents_search_deployed_agents_request_search_item_name.py +23 -0
  14. letta/agents/types/agents_search_deployed_agents_request_search_item_name_operator.py +7 -0
  15. letta/agents/types/agents_search_deployed_agents_request_search_item_order_by.py +26 -0
  16. letta/agents/types/agents_search_deployed_agents_request_search_item_order_by_direction.py +5 -0
  17. letta/agents/types/agents_search_deployed_agents_request_search_item_order_by_value.py +7 -0
  18. letta/{types/letta_response_tool_call.py → agents/types/agents_search_deployed_agents_request_search_item_version.py} +4 -6
  19. letta/client.py +8 -8
  20. letta/core/client_wrapper.py +7 -18
  21. letta/environment.py +1 -1
  22. letta/types/__init__.py +18 -32
  23. letta/types/agent_environment_variable.py +68 -0
  24. letta/types/agent_state.py +15 -9
  25. letta/types/assistant_message_output.py +1 -2
  26. letta/types/block.py +9 -9
  27. letta/types/context_window_overview.py +5 -0
  28. letta/types/embedding_config.py +13 -8
  29. letta/types/internal_server_error_body.py +1 -1
  30. letta/types/job.py +5 -5
  31. letta/types/letta_response.py +10 -97
  32. letta/types/letta_response_messages_item.py +120 -0
  33. letta/types/letta_schemas_message_message.py +10 -10
  34. letta/types/letta_schemas_tool_tool.py +5 -5
  35. letta/types/letta_usage_statistics.py +4 -4
  36. letta/types/llm_config.py +12 -7
  37. letta/types/not_found_error_body.py +2 -3
  38. letta/types/passage.py +8 -8
  39. letta/types/reasoning_message.py +4 -5
  40. letta/types/sandbox_environment_variable.py +4 -4
  41. letta/types/sandbox_environment_variable_update.py +0 -4
  42. letta/types/source.py +6 -6
  43. letta/types/system_message_output.py +4 -5
  44. letta/types/tool_call_message.py +4 -5
  45. letta/types/tool_return_message.py +8 -9
  46. letta/types/user.py +3 -3
  47. letta/types/user_message_output.py +4 -5
  48. {letta_client-0.1.2.dist-info → letta_client-0.1.6.dist-info}/METADATA +1 -1
  49. {letta_client-0.1.2.dist-info → letta_client-0.1.6.dist-info}/RECORD +50 -56
  50. {letta_client-0.1.2.dist-info → letta_client-0.1.6.dist-info}/WHEEL +1 -1
  51. letta/types/letta_response_assistant_message.py +0 -23
  52. letta/types/letta_response_letta_usage_statistics.py +0 -47
  53. letta/types/letta_response_reasoning_message.py +0 -32
  54. letta/types/letta_response_system_message.py +0 -32
  55. letta/types/letta_response_tool_call_delta.py +0 -21
  56. letta/types/letta_response_tool_call_message.py +0 -33
  57. letta/types/letta_response_tool_call_message_tool_call.py +0 -9
  58. letta/types/letta_response_tool_call_message_tool_call_one.py +0 -21
  59. letta/types/letta_response_tool_call_message_tool_call_zero.py +0 -21
  60. letta/types/letta_response_tool_return_message.py +0 -41
  61. letta/types/letta_response_tool_return_message_status.py +0 -5
  62. letta/types/letta_response_usage_message.py +0 -40
  63. letta/types/letta_response_usage_message_usage.py +0 -47
  64. letta/types/letta_response_user_message.py +0 -32
  65. letta/types/usage_message.py +0 -31
@@ -1,8 +1,8 @@
1
- letta/__init__.py,sha256=63TqVCq01i3bJG8Igb4oMgG5qI4T_EV3jU1aHhIqBuM,7980
2
- letta/agents/__init__.py,sha256=vSxT3hKDFFddAdGQJvwQaqLe2X-sFwskLUhgoCvjnq4,789
1
+ letta/__init__.py,sha256=200FVZvi781F6tcPmiPXkJtKFfMqYfDkikbvQfWEDrY,8792
2
+ letta/agents/__init__.py,sha256=povU6SmZAhz8Om7iF7yBstqhJ33e9CEKN05KSXajGJQ,3258
3
3
  letta/agents/archival_memory/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
4
4
  letta/agents/archival_memory/client.py,sha256=CsqziY9xSs4u9zXGsvCnp2gzf_OL-vtfzQZrzYOX7Fo,18797
5
- letta/agents/client.py,sha256=7HkwJ5VAmbUgsqywep303uDwc7nJW2mf7DGyINt4t7M,75684
5
+ letta/agents/client.py,sha256=SCmxLC1-qoLFlK5UI5JWS_kAKHT0PXib9s9gPBSJZzw,91638
6
6
  letta/agents/context/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
7
7
  letta/agents/context/client.py,sha256=qcqechypp6hJx7aPoubsfmaV7ZF8_i9o1ww0147iWTQ,4755
8
8
  letta/agents/memory/__init__.py,sha256=wdNGGk2ylmOrNfsIGTiSbNJfFvEcRUuTNy-PmsiAzkk,112
@@ -11,29 +11,37 @@ letta/agents/memory/messages/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1r
11
11
  letta/agents/memory/messages/client.py,sha256=49oT7rMhJY2bXBCQSjLEj25igoP4pfPcGzX7UOJRO5g,5033
12
12
  letta/agents/memory_blocks/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
13
13
  letta/agents/memory_blocks/client.py,sha256=ReZVf_G3BfGicgrkSxlM1c4quPjDd_B4SxAL5JfWKS8,11370
14
- letta/agents/messages/__init__.py,sha256=NOr_womVIaV3N6HuyZFlwoj95BEcSZA7vG64t52xsGU,245
15
- letta/agents/messages/client.py,sha256=fQMr8fCZHQXPmlh6AhUoOqTBs5QQdQmpved_Ugij2dg,28285
16
- letta/agents/messages/types/__init__.py,sha256=uQs9YhishiYPP6bOI7yxBRN-ZMeLWl3dzWUbuE2fEwc,339
17
- letta/agents/messages/types/letta_streaming_response.py,sha256=deUF5LZKBR8xLB3iSmBNm5szksQka2HT-k6QkqEzOTY,722
14
+ letta/agents/messages/__init__.py,sha256=tC_dJ9IufEAf3pTt6OgyM327usiMylcJ78Ey74uYh-8,1463
15
+ letta/agents/messages/client.py,sha256=YKmcgSijQSmSbmoVWRyOHXS5DkXPpjnDPZYW9bmeTxI,29341
16
+ letta/agents/messages/types/__init__.py,sha256=rByVgqeD_Mvobim65FT1nYgwwLy1OZzKKG2kKnw9JxI,1558
17
+ letta/agents/messages/types/letta_streaming_response.py,sha256=fKRwqgYHIUXVxJv8k2RaMGOHuagvTCIhLXOqKALTQ8s,4508
18
18
  letta/agents/messages/types/messages_list_response.py,sha256=QOQ-lDPwafhCjFbq-qz0hUrNw4vneGrqePY42-yiTW8,341
19
- letta/agents/messages/types/messages_list_response_item.py,sha256=KU0ew6h2zpkUVkArFYoxUa-5Wotnurd24RyUgRwT6Ac,611
19
+ letta/agents/messages/types/messages_list_response_item.py,sha256=y23JordDiA3o0WLm2l3hl7uVUxtwlGQX3j_DB9gVtzc,3866
20
20
  letta/agents/recall_memory/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
21
21
  letta/agents/recall_memory/client.py,sha256=3yGiP2vGdKDtAGJHDLMBl7I43YoQzAyifxJ7jDuawKQ,4843
22
22
  letta/agents/sources/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
23
23
  letta/agents/sources/client.py,sha256=h6kl5g9BOU47N3Q3SH0JdZdaqUL0UNBPyjtEoy90Jec,4693
24
24
  letta/agents/tools/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
25
25
  letta/agents/tools/client.py,sha256=kyWOuydUAJmhSczLZbut7SxdFAhdLfgJZuAvkN7g3Zs,12782
26
- letta/agents/types/__init__.py,sha256=lYQ4RwyiZnUj4sx7rPg1XXap9um-285F3hB8jfrytOk,495
27
- letta/agents/types/agents_create_version_response.py,sha256=ZFc_xqbTaX7daPOHr16n8XIU6A-Wd8xt_8hShDCyxg4,751
26
+ letta/agents/types/__init__.py,sha256=63Jq0hxWg3Zif-PbHjTCfUMDntb2lQGBai8g82mTmLw,2353
27
+ letta/agents/types/agents_get_agent_variables_response.py,sha256=1Yda8P45XECyQOIrmm1n3-tvv-4aSsEV6F5ZtNefLJM,599
28
28
  letta/agents/types/agents_migrate_response.py,sha256=7c3FRBCUwxqB5yj9eYIh4GA4nBs-J3ccus-o0WLu71U,570
29
+ letta/agents/types/agents_search_deployed_agents_request_combinator.py,sha256=SQCYb6uH3FJF2eFWd4bZBbAiTlLwsAnOsnUkyKXcYfQ,180
30
+ letta/agents/types/agents_search_deployed_agents_request_search_item.py,sha256=xvCuH-zm2twsd-LryQQmYUh47YLS-GiinPaCp2Mof20,2417
31
+ letta/agents/types/agents_search_deployed_agents_request_search_item_name.py,sha256=zwmzFAeaGlB9xEK3hw8CtiUou13fsV9mPeOxzNbPp3c,805
32
+ letta/agents/types/agents_search_deployed_agents_request_search_item_name_operator.py,sha256=xhYzKvoVn9s0TtsXVyE7gGqNp5pTVpx9G0rMzsdYJ2Q,210
33
+ letta/agents/types/agents_search_deployed_agents_request_search_item_order_by.py,sha256=dXxSUF5qPDKXW5othW1PPiyg_VBqAvUn06pR-nwblG8,1017
34
+ letta/agents/types/agents_search_deployed_agents_request_search_item_order_by_direction.py,sha256=yAvN-GSul--uyNOwqC34UwfuAKeY4HRucF7-id4u8Es,198
35
+ letta/agents/types/agents_search_deployed_agents_request_search_item_order_by_value.py,sha256=bdCKG_9JPutRcrGsvzQ88JhqbQMPd_sLedZlHPbg0eU,213
36
+ letta/agents/types/agents_search_deployed_agents_request_search_item_version.py,sha256=vrf6lMOtKxkp5DpA09ZwZxUktXRM2_Y0YZqeQ2Wzhag,596
29
37
  letta/agents/types/create_agent_request_tool_rules_item.py,sha256=xSYFbxIAA6k-pZfVsCaTByE8nXRIqyKnfOm_IEjKfEM,415
30
38
  letta/agents/types/update_agent_tool_rules_item.py,sha256=5pYbFgeqxmXUHUTZpEWlZ7ODc1G6CpFGWljz_iBpWVA,408
31
39
  letta/blocks/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
32
40
  letta/blocks/client.py,sha256=SuRoJKkDSpL0Gg6jCzuMagwSUTLFKZQBq9j1BXwP5Y8,32367
33
- letta/client.py,sha256=HyLH1Hl6WzDOs2uiQR6-1q9ir5mRL-0gim7BoYqrnWA,6793
41
+ letta/client.py,sha256=6MjzKymffKKH7g_PYquBlhIc35whLODNA9-kuxUeW88,6711
34
42
  letta/core/__init__.py,sha256=SQ85PF84B9MuKnBwHNHWemSGuy-g_515gFYNFhvEE0I,1438
35
43
  letta/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
36
- letta/core/client_wrapper.py,sha256=EgD4UFKzTMPUvJdKhgvDQXTLWgyK82xomAMhck0r0GE,2213
44
+ letta/core/client_wrapper.py,sha256=DuIJAzpgjXMFV2wotKwvYrulWnHU65CFjnrlFJQ2RIk,1996
37
45
  letta/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
38
46
  letta/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
39
47
  letta/core/http_client.py,sha256=siUQ6UV0ARZALlxubqWSSAAPC9B4VW8y6MGlHStfaeo,19552
@@ -43,7 +51,7 @@ letta/core/query_encoder.py,sha256=ekulqNd0j8TgD7ox-Qbz7liqX8-KP9blvT9DsRCenYM,2
43
51
  letta/core/remove_none_from_dict.py,sha256=EU9SGgYidWq7SexuJbNs4-PZ-5Bl3Vppd864mS6vQZw,342
44
52
  letta/core/request_options.py,sha256=h0QUNCFVdCW_7GclVySCAY2w4NhtXVBUCmHgmzaxpcg,1681
45
53
  letta/core/serialization.py,sha256=D9h_t-RQON3-CHWs1C4ESY9B-Yd5d-l5lnTLb_X896g,9601
46
- letta/environment.py,sha256=opz-fB_AI3JOfZqKRt2kOJXm_1Hkl70vPpUlhAhpCf0,199
54
+ letta/environment.py,sha256=7ou6ZwDZLBOdYQrHv-1lUk5a1q-HgEwzGlFITiRZ0XU,198
47
55
  letta/errors/__init__.py,sha256=wqo3GnyT9iRy7zuPMs6TXOg9GMNfDp4fxq7M8lFFgK8,367
48
56
  letta/errors/conflict_error.py,sha256=INHRMcX6i0ywcbZfw-vn3aBoVi06bDjev3p_O8U8IA4,296
49
57
  letta/errors/internal_server_error.py,sha256=8USCagXyJJ1MOm9snpcXIUt6eNXvrd_aq7Gfcu1vlOI,268
@@ -64,11 +72,12 @@ letta/sources/passages/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAK
64
72
  letta/sources/passages/client.py,sha256=BdemStVj4SAhVi5ZLGt7UB793OBFIQVTN7iuTpbe2oQ,4741
65
73
  letta/tools/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
66
74
  letta/tools/client.py,sha256=7zqMFjg4WTd5fXHq6-uG5Bs0EvlqgQ6uEBGSqArSdYE,58410
67
- letta/types/__init__.py,sha256=AHc7RVv4_GCH8Td1wmBlZ8JlI3DpuDe7AA52h_fq2hU,11229
75
+ letta/types/__init__.py,sha256=c7S5b54y47dOmss-JJwC1C9x0wCaeb_FoYyDl8TF-pI,10184
68
76
  letta/types/action_model.py,sha256=wpRKr5lwx--x1IULnWMX4-JEgeiLy1Rfgxcihz-z3UI,1204
69
77
  letta/types/action_parameters_model.py,sha256=Attvw_SX5x8xJ8XJOib2ASpOX1ayCUqGxfyi6svTPHw,747
70
78
  letta/types/action_response_model.py,sha256=jmtD85NYG5Jkf4ioLyYtHvdLFb92905Nq9mIPUa0yEQ,743
71
- letta/types/agent_state.py,sha256=m33rF2oIwUf5SwLA3L_WXuOxH3L0p4nPSHIu5nxpfVU,4190
79
+ letta/types/agent_environment_variable.py,sha256=gFiNTbhysYzW_RKGyIa8QZHzHk5AvB_gEFYEJnI3CoM,1855
80
+ letta/types/agent_state.py,sha256=CWkdakovjoP-Z_hAeENLLrCENLyvUhvW-xL-fCdJEiw,4475
72
81
  letta/types/agent_state_tool_rules_item.py,sha256=QVFCt60Ro3ZyyQtzA5Zn8Tq8t9osrpqchB08xzmdLs4,375
73
82
  letta/types/agent_type.py,sha256=_-oGgLcf5PkLowj4BWvZ97nnjPWGztbAEGLsPu8sm3g,237
74
83
  letta/types/app_auth_scheme.py,sha256=9OgqCmSYkFgWZNNFGhhBmCB808nzY01ilr74Ye6Q7hs,1240
@@ -77,11 +86,11 @@ letta/types/app_model.py,sha256=nXFCHttrO6DqY-GTYWuHQ2ClnGq7zTgH8q1KqJT76Io,1517
77
86
  letta/types/archival_memory_summary.py,sha256=MURc1dD-9eAQiqEPIMeJzuEdjqHQXc9Bvff1sEuDdDc,637
78
87
  letta/types/assistant_file.py,sha256=sbhfxKtQGBzgT2wwFwRBwMeDiz3nEZlnWjWN6imXnTo,879
79
88
  letta/types/assistant_message_input.py,sha256=91Ltnd1UXVgP_rvWSP6joM7972vfzmVlKM-EfL13WbQ,884
80
- letta/types/assistant_message_output.py,sha256=xE1ByV7nTVS4lfpPuhntFbM0zFpm7Fcb0ARESYbKztU,710
89
+ letta/types/assistant_message_output.py,sha256=jOf6qausJ4rRWCCsCkIlk6tZ-d02aWkw_ljk15Ebw1Y,634
81
90
  letta/types/auth_request.py,sha256=As9L-GYTzr39W6v7q-40UtxzW-tlKin9Ln9Gqxm4mDA,681
82
91
  letta/types/auth_response.py,sha256=wYehJ6saW5e-JSlw70sORpZ8dnlQKPX6Gpw-YANOeMg,859
83
92
  letta/types/auth_scheme_field.py,sha256=hrzhKhNOf4D0gvwq_3h1b4dTJEIjEpfXfxBrVIIEsfM,879
84
- letta/types/block.py,sha256=ixjoFAVaH6geeM8RHoDV5sZmt2cfNwtMahTuWFOTJqQ,3175
93
+ letta/types/block.py,sha256=A4_n92zBkliDW6Uf3-rodUnb_S0rRB4lPqI2BFlGqwM,3211
85
94
  letta/types/block_update.py,sha256=OGH9bdStMh_VL4VQ1jJ31aE9ufDspbMyo80mSRpqeSU,1643
86
95
  letta/types/chat_completion_request.py,sha256=RkTlEcX5LGFu_pNmZzoXfiKuxUs5I2-HiOuYVx_ZP30,2099
87
96
  letta/types/chat_completion_request_function_call.py,sha256=I3aPJPef1TfEM0qVuiJQHF9c-MJcQkq1QuSyXm0gR98,247
@@ -93,14 +102,14 @@ letta/types/child_tool_rule.py,sha256=llamP1LSCkyBYEBbUsMLktfgdskhiMh-yOTYdfJ4Sf
93
102
  letta/types/choice.py,sha256=WmSYEDtFnMrmVA51vnwCsV8SvQW_Pu5XhrR2KM7yMFI,955
94
103
  letta/types/conditional_tool_rule.py,sha256=PpxAL8w82NAOqePFOZj1dQzYHOFgxOgS7zfTl304GDI,1324
95
104
  letta/types/conflict_error_body.py,sha256=1u_zziegl_-iXcZmgzabm3I7cY6sVPt8vL2Pshow3gk,785
96
- letta/types/context_window_overview.py,sha256=QimBWemW_2GHR4_qK3rTJmy1TihSjZT6hvtKB3pm830,2830
105
+ letta/types/context_window_overview.py,sha256=H787wPc_Ave-kykyKeFFynmqOEswiNuO4kEPvgSL1nY,2985
97
106
  letta/types/create_assistant_file_request.py,sha256=61aWsSfPV2YvxlFeWYyHhXrpChR6nqcwgq7K0Zfhgow,646
98
107
  letta/types/create_assistant_request.py,sha256=rA2NPmpBSluVR4WlFvg6VgakEdfJgwC6oxQCVWa2shc,1521
99
108
  letta/types/create_block.py,sha256=zfXSQGAiGNCjGbyPCH3a1N7MHvuPwRC-brMfIrPWwzc,1424
100
109
  letta/types/delete_assistant_file_response.py,sha256=UN6ZQKycuvieoMllotukxnylz9by6hZZvx16IV8L9XQ,770
101
110
  letta/types/delete_assistant_response.py,sha256=7i_LE58bsikpMY73DVINZVE7QIhZAvK4U4-SEe6frWw,768
102
111
  letta/types/e_2_b_sandbox_config.py,sha256=uCzy5EJvno0oJGNlY-cajdLHMZ1lxh6J8lp4s_CyqLg,955
103
- letta/types/embedding_config.py,sha256=RCir0_bUBlMt4CY2AUn-lvi8bqm2_PLSjWOeyBovpyQ,2357
112
+ letta/types/embedding_config.py,sha256=4azdkp1OsAF3_uehBsf2e0o9O21y_LZgGWDaRldMSa0,2537
104
113
  letta/types/embedding_config_embedding_endpoint_type.py,sha256=Iw8W4h9bEYdTYYaU4__JUPKqS-zO9WpzIQKtihvJH8U,515
105
114
  letta/types/file_metadata.py,sha256=IhvFUGtZ1OB5aaFThe69iju844C31HaozRiKSLkiQeM,2137
106
115
  letta/types/function_call_input.py,sha256=iAQxp6wN59iB0LiNYDVBoMZXjBb6BnRgwcqWbHHYcg0,560
@@ -109,28 +118,14 @@ letta/types/function_schema.py,sha256=f4qsSzD1gd8jaxxr6lkwA9JpDFsh0gepU-jryQct2y
109
118
  letta/types/health.py,sha256=JfUiE0dlUsBJzB_ivqbpLt-8pwhGIzigME-uRD0Z74U,616
110
119
  letta/types/http_validation_error.py,sha256=w43naaw4VmntOBb3UC6zqGv6hnvUaMitJMFRK4i8vLc,659
111
120
  letta/types/init_tool_rule.py,sha256=IDSFYgNeIPP55KT6cIBkYSSzi0HNxoi4d2fgR6MclN8,835
112
- letta/types/internal_server_error_body.py,sha256=lin_dwKrW7kIRi6QR7evu9lLeU3aIEmMrtNGEImfe1c,621
113
- letta/types/job.py,sha256=oE4L-fWN6RNkuaePWzEKBd2SNY5232yGcn_vcKhD40E,2451
121
+ letta/types/internal_server_error_body.py,sha256=i4vsXy_WRq2vmh76HB4IUQsyMeWmbNBxAQlW6iASNaE,651
122
+ letta/types/job.py,sha256=IlvCdy4RAuVLu4uklsE48gXI5XTGBpydfa3j_i5EL-w,2471
114
123
  letta/types/job_status.py,sha256=0Gu5Tku79SDVzCxnjVXQyDPNCizGWUP1ppohAck6a2U,189
115
124
  letta/types/letta_request.py,sha256=ups_NcjFZe7E6WPU9CSnl5ncDQDKS-CqsQ9FjzvLJVU,1020
116
- letta/types/letta_response.py,sha256=cTxEISkCgSXnfkyiVuYSIIa3GmuvGkiORMMzj745vIo,5396
117
- letta/types/letta_response_assistant_message.py,sha256=BjWIT2hluKG2vQQNyj0FUoR9FlA7Vps4JVzj1YtcBxM,719
118
- letta/types/letta_response_letta_usage_statistics.py,sha256=dpnNRVk7m8fXzmnq4VcXRapOkHUk9jzVNXdj7_w4MWE,1455
119
- letta/types/letta_response_reasoning_message.py,sha256=SN0N2S9tke4XqYNj26V_mDtnoQOfZjZfFFglcYkMQV8,959
120
- letta/types/letta_response_system_message.py,sha256=KnnX-ByODaNqzmTxN213QJxStP4h-lXddTWvXx60n3Q,998
121
- letta/types/letta_response_tool_call.py,sha256=dz_kvqeTc_oD9-jgKLXhDlc9PqToX59TPP7P8PlG_9M,605
122
- letta/types/letta_response_tool_call_delta.py,sha256=OY_cC8fttxSQMVCkrSTiaLgSDUavZqImx55Pfui6qyw,682
123
- letta/types/letta_response_tool_call_message.py,sha256=Fko5hwnxAyd6ULwJ-GiQoiNcSi4Z3FwuOodFASUIim0,1138
124
- letta/types/letta_response_tool_call_message_tool_call.py,sha256=-P-YI25YkKVNCwvu6cLMz1CHEpsYoal-frAgHkPUVhM,423
125
- letta/types/letta_response_tool_call_message_tool_call_one.py,sha256=lwf0iFCR9WBsteroEEvNvpQMZmvWh9PVbNK4sB3M31Q,695
126
- letta/types/letta_response_tool_call_message_tool_call_zero.py,sha256=fpqo5Jr25we5LyPwMhPsAlVe7TGFhzgL90Mfvww2Txg,624
127
- letta/types/letta_response_tool_return_message.py,sha256=GBXOr7egjj9kCsYLa0a3o9xSyfLkBKtHzR46PBl34RE,1615
128
- letta/types/letta_response_tool_return_message_status.py,sha256=Roz5I8v2RGTHYPqKUhEvDZzYWVITZBXbkKbpve6be8o,180
129
- letta/types/letta_response_usage_message.py,sha256=BDji3y0pv26-aHWfx7b_BEmRVlmBz_I8D_7Ozb9FTiI,1368
130
- letta/types/letta_response_usage_message_usage.py,sha256=VuW-gTm3dchIFJcSKRLGlkDwbESpVUyv7SghQzEP2ww,1452
131
- letta/types/letta_response_user_message.py,sha256=AmndVoaMmDxsDcMEfwQ7tvXXGoV-5U2UqeZbNM61IkA,985
125
+ letta/types/letta_response.py,sha256=3ysBTUTXdpk7XsFsEve_ByMqtdggRULN4m_PPDuVWgA,1338
126
+ letta/types/letta_response_messages_item.py,sha256=nLeP3Isf91O4GO33lo7NOHRkchqY27l6cKKzlOA21ZA,3857
132
127
  letta/types/letta_schemas_letta_message_tool_call.py,sha256=EU5fLZnSJfD0UcpCvNANoC9IC2PFe0TxV3X1Olep60I,616
133
- letta/types/letta_schemas_message_message.py,sha256=nulBiONzy6hgAS8V2u4ksdpwX_MlQiGcqEJTCJxvGQ8,3092
128
+ letta/types/letta_schemas_message_message.py,sha256=R5mDzcK10j3BAcgLdhX0gdSenoUdRy8-Z4bnUp2irhw,3132
134
129
  letta/types/letta_schemas_openai_chat_completion_request_tool.py,sha256=BgV4h_mrqB2LEevFg3MTMpZyh70wJmMryLqcObqKqj8,706
135
130
  letta/types/letta_schemas_openai_chat_completion_request_tool_call.py,sha256=vjVm-VNFtSft0Yjtweh46K4v6GqPjhtsgJqSxfcBK4M,861
136
131
  letta/types/letta_schemas_openai_chat_completion_request_tool_call_function.py,sha256=gvpaJeRBaqQtV8JD4b8B_R4aC5kYBVefDIq_vzS-QUQ,617
@@ -139,9 +134,9 @@ letta/types/letta_schemas_openai_chat_completion_response_tool_call.py,sha256=21
139
134
  letta/types/letta_schemas_openai_chat_completions_tool_call_function.py,sha256=WZLHTlq3UYO-8E_G-gTC59BTe4mGNsSW7exAI9qA0gU,773
140
135
  letta/types/letta_schemas_openai_chat_completions_tool_call_input.py,sha256=QoP1zY0h-VbyHsgHVQmBmv87byZZ3c8Av9q9D8Lpo3U,952
141
136
  letta/types/letta_schemas_openai_chat_completions_tool_call_output.py,sha256=10AzIa3b2u_C4x3JYPjlqvvUiwIUilpMyaPnPi2L8AU,868
142
- letta/types/letta_schemas_tool_tool.py,sha256=nwTDwLqZ1C2CfyyNeYDS73qar6TChi-5FAQjMoNce_w,2428
143
- letta/types/letta_usage_statistics.py,sha256=BI4lUzO6YIr0gChu5ysW0FzqqWW179m0xiuwbYzsMp0,1442
144
- letta/types/llm_config.py,sha256=WnkLctI8y-ESTnxy1KPfTLooMUHFu73Hsdjx4isg2vs,2272
137
+ letta/types/letta_schemas_tool_tool.py,sha256=ADseotHqBQ5Tj0RzhEtXtk_wo5FKMSHuwm-EUdnn3cU,2448
138
+ letta/types/letta_usage_statistics.py,sha256=Dz3PgXA3sTDtCCNysWZvVz74OFcjIeouiRc4x3ZHTEI,1458
139
+ letta/types/llm_config.py,sha256=_wFQSKDbtar3tfUjdv274tGa_iNBeT9QD8gM1r9iOvY,2445
145
140
  letta/types/llm_config_model_endpoint_type.py,sha256=rnDv3wDnngPT10CFw24C6kHo4swuLHxv46aLI9Hoosg,505
146
141
  letta/types/local_sandbox_config.py,sha256=Tm3t50Dy_Z6tyRd7ZyFYmRFxUAtSjFAwouig_ulKGPA,1042
147
142
  letta/types/log_prob_token.py,sha256=9vFvxXeV7atr9_J_hGTcKfBXglIcn0XTbamzRVS4a1w,627
@@ -150,13 +145,13 @@ letta/types/message_content_log_prob.py,sha256=a3ZGlb1FGPAf-qTs_Ec1fzrASZSUrUcaP
150
145
  letta/types/message_create.py,sha256=dbmYNRp-R1Ih4kik1NdVaCI5IEaps_MWTtMjhX7ra3Y,929
151
146
  letta/types/message_create_role.py,sha256=atjQEZ8iT4gTAmrFTFnRaM66f0MGsgfGq6hpx1Q-i44,159
152
147
  letta/types/message_role.py,sha256=HKatrA1jt02oTObExloTY3rW8Urzn37kBTg0Z6MbwkQ,186
153
- letta/types/not_found_error_body.py,sha256=YvVmUM4elVMKr04oKUpw_MCBS71rUlIE8EpxTWz48qQ,651
148
+ letta/types/not_found_error_body.py,sha256=64k_hvsBsOnZOsj6e3JyYSKVQb8cXiArerjt946jnfk,613
154
149
  letta/types/not_found_error_body_message.py,sha256=Kc9xrVghgDATdPAGpTPnzyKe6ds5q8Vr6zcBU5lLcH4,309
155
150
  letta/types/open_ai_assistant.py,sha256=BJ7WWFxZvAGZm8BSp00pI4ABNxr6P6t2AeG7WAfUvRM,1708
156
151
  letta/types/organization.py,sha256=qgsZr2LQk-j6VWhMC-PKjEz3goRh9VG34BgJ3tV-ix8,925
157
152
  letta/types/organization_create.py,sha256=PztQCNUzr4Zv3C9z5N9SK0usxZxZ86VPRgR-UIUXSHE,659
158
- letta/types/passage.py,sha256=sXn92NtoyTLVisy0E6df5xno5JnWLwTF__Mg_0fjIBs,3306
159
- letta/types/reasoning_message.py,sha256=FGCMqOMPU585mag6BofcPdeg4Jv6S_aPqILkfLqneZU,944
153
+ letta/types/passage.py,sha256=LzPssktL_dzQpNDESXhzNwQB50MtzggUsDtJZ7DMrEA,3338
154
+ letta/types/reasoning_message.py,sha256=wqXwn28SpeXz9vJ-suq83Y6uJ4eyh5vL8Xjqg2bY-5Y,880
160
155
  letta/types/recall_memory_summary.py,sha256=SA40w3qLLV-kWddaQPSSzggRGrpbiFMrtc82PBJti3Y,633
161
156
  letta/types/response_format.py,sha256=5d82oJYUODQxzIVtXdDnlZMcXRwvTPs6GR78d3zPmAQ,581
162
157
  letta/types/sandbox_config.py,sha256=qGGMJk1d8qRmIuKr2VEJqe9qQfvNfLlKEPoNrIUVrLo,1713
@@ -164,36 +159,35 @@ letta/types/sandbox_config_create.py,sha256=Kdb2iYRQ2HGmUAWf1dkNKRP5ZNf0rlMBswKa
164
159
  letta/types/sandbox_config_create_config.py,sha256=EsSeN81_yPkorfQgOJmumdCWiUt8hk9HawSsRcCc5Hs,263
165
160
  letta/types/sandbox_config_update.py,sha256=VPssSERarC2VejfQpRuA32GWTpWy9b1nP1Yva_nSuek,838
166
161
  letta/types/sandbox_config_update_config.py,sha256=fGGmMuy43OnELj3qAj0rEcMro-cLD3ekeVpqJqqrs1M,263
167
- letta/types/sandbox_environment_variable.py,sha256=1QSf2UlCBZqRgQispE7vS17ef7KOOWRt_f-nQMFjQQM,1877
162
+ letta/types/sandbox_environment_variable.py,sha256=3veodXLXLWknsuAe3LSc47qQHBauCr9EYIe7RJ5wjj4,1877
168
163
  letta/types/sandbox_environment_variable_create.py,sha256=TaF1qTlzoXu6SXD9lWsEXMUmQtnQBzz3IywVo59axLA,888
169
- letta/types/sandbox_environment_variable_update.py,sha256=m6V6MWvIVAnZ5K34Fb8YzPxKzDBUwxYQq2BndL-fJ0Y,1030
164
+ letta/types/sandbox_environment_variable_update.py,sha256=5PujpTbysrPTp-qL1TaD06yMK18pOBScmgzeCTRB_qg,946
170
165
  letta/types/sandbox_type.py,sha256=XSWmX3JIFFrDPQ4i89E8LauXY8kjmJEtaz6e_JheGm4,151
171
- letta/types/source.py,sha256=aYs_4zmXZmXYD9KLKeeNQHviFxxCf2K_SE6O16CZiQM,2509
166
+ letta/types/source.py,sha256=swcipLusZ_Exj9WEzRi9S9x75Hky_pu6gRpnRLJP7-I,2533
172
167
  letta/types/system_message_input.py,sha256=w4mFYFIZWtvkil2NnEJPr4OHlPoHn1lonjo2Eo5DMgc,640
173
- letta/types/system_message_output.py,sha256=y-5ghFnMg1LLYtdoviFefYbn4rKg7PHmczHYh2RVQRM,986
168
+ letta/types/system_message_output.py,sha256=OLmLNUL2Ykti_GtB32bEQG2KZ8uS0S59TQywxC51DTQ,928
174
169
  letta/types/terminal_tool_rule.py,sha256=SlRhVJhFgdN0dn18QHKrig-k4UhVsO9hOJU2dGJKoHI,897
175
170
  letta/types/tool_call_delta.py,sha256=-6VrIxuY76eFeFjO6Rkh-xNOMDnRB24C0cFxuWPqaf4,669
176
171
  letta/types/tool_call_function_output.py,sha256=VlYlZ0qsR6mozkOr5DThgJxAtzwWurKZR3CHUWiyivY,746
177
- letta/types/tool_call_message.py,sha256=V9hE5UUzyP_9FVoH2Lt8DYc2-VWGOWWiGzcje17jeqA,1082
172
+ letta/types/tool_call_message.py,sha256=Bn_MTBApjb-ihhicXWmm6A5v4yKRHuOUBj7FZLjPdDA,1018
178
173
  letta/types/tool_call_message_tool_call.py,sha256=574_EuZw2S1A1bGaAfg1KMmPoBggmLVKfsizOx82510,295
179
174
  letta/types/tool_create.py,sha256=1a3ce-ZG2U6kwjMLcqpN0anRgiuwt3qUZSA9T25eM1c,1622
180
175
  letta/types/tool_function_choice.py,sha256=Jug7RK0YLS0Pt3i-IiZOKBH4hbrVuEBEdG5dCSfccaA,691
181
176
  letta/types/tool_input.py,sha256=9f97Jp3jm2mBesfAJ_Do5Sbha4uKcM01y332txiXJkw,672
182
177
  letta/types/tool_message.py,sha256=zJTOLSH97oncrGPbqvI1RXI85HLT-cSJJuXrtO2vk9k,617
183
- letta/types/tool_return_message.py,sha256=axAhNN7CHC2g4hPQtlXFd26Er3da2MU_LybHaKfrXVA,1561
178
+ letta/types/tool_return_message.py,sha256=ZjcmgOo_SgdJgq49YpBg8BCOdJssvqfMmdjgSoTOWKg,1509
184
179
  letta/types/tool_return_message_status.py,sha256=FvFOMaG9mnmgnHi2UBQVQQMtHFabbWnQnHTxGUDgVl0,167
185
180
  letta/types/tool_rule_type.py,sha256=W6lVaYVYzSzhFHgqitmw6XLtxgxBhINgHZJfSnxg6ts,265
186
- letta/types/usage_message.py,sha256=x-O2o4293D23_rbLhd7Wck7JUHbbrPb3DTVXsJ115N8,947
187
181
  letta/types/usage_statistics.py,sha256=EchBQ4u6l_5aFRfjWlTLVQ7DozwjhnOR3ePcllZSkPI,688
188
- letta/types/user.py,sha256=PYqneg-Xh5iGUPShFQYXscjWxlGijoya8bGz7iONEcE,1461
182
+ letta/types/user.py,sha256=-3_3EGW6bvWBXmmkxqpkwzBaQKf-8_W0ypR61r_ugu0,1473
189
183
  letta/types/user_create.py,sha256=JHCSRbf4-N9fvHZJGaxmTEcuKtMuEPJcm9OAYG23Zdg,712
190
184
  letta/types/user_message_input.py,sha256=GukptCjs38RyYTF5NeJ0BiAKsW4ugx-o8cc0rUWbKBM,722
191
185
  letta/types/user_message_input_content.py,sha256=TEBnUQHz98kmY2cBPOdjOnl2MSUpslbukI8qEpM5FKg,142
192
- letta/types/user_message_output.py,sha256=u8qcUopiMBGEJS8uxhlJZlkDkVw4Y-HYY6sflo7FCWY,971
186
+ letta/types/user_message_output.py,sha256=lsTBJgX3OzhGqXIF2G2ahHqv6M7gZuQWjAqufL1TzAU,917
193
187
  letta/types/user_update.py,sha256=L5GRkGf23DNrcEYkceOSNf7EL47DORxUN36c72-ZKr0,860
194
188
  letta/types/validation_error.py,sha256=qazGitGiLpbV14KUiLB7rKuc_yKWhlpC5Sap98tKYKg,678
195
189
  letta/types/validation_error_loc_item.py,sha256=LAtjCHIllWRBFXvAZ5QZpp7CPXjdtN9EB7HrLVo6EP0,128
196
190
  letta/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
197
- letta_client-0.1.2.dist-info/METADATA,sha256=QhkO3crnOkh5BDyYg-kg1oEbzh7nCUyWgmCZlQn1gRc,4886
198
- letta_client-0.1.2.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
199
- letta_client-0.1.2.dist-info/RECORD,,
191
+ letta_client-0.1.6.dist-info/METADATA,sha256=bUMhK_S8GYw6WlNsvFAPgkKyCp8tbxyRKGCOUVdotx0,4886
192
+ letta_client-0.1.6.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
193
+ letta_client-0.1.6.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.8.1
2
+ Generator: poetry-core 1.6.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,23 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- from ..core.pydantic_utilities import UniversalBaseModel
4
- import datetime as dt
5
- import typing
6
- from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
- import pydantic
8
-
9
-
10
- class LettaResponseAssistantMessage(UniversalBaseModel):
11
- id: str
12
- date: dt.datetime
13
- message_type: typing.Optional[typing.Literal["assistant_message"]] = None
14
- assistant_message: str
15
-
16
- if IS_PYDANTIC_V2:
17
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
18
- else:
19
-
20
- class Config:
21
- frozen = True
22
- smart_union = True
23
- extra = pydantic.Extra.allow
@@ -1,47 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- from ..core.pydantic_utilities import UniversalBaseModel
4
- import typing
5
- import pydantic
6
- from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
-
8
-
9
- class LettaResponseLettaUsageStatistics(UniversalBaseModel):
10
- """
11
- Usage statistics for the agent interaction.
12
-
13
- Attributes:
14
- completion_tokens (int): The number of tokens generated by the agent.
15
- prompt_tokens (int): The number of tokens in the prompt.
16
- total_tokens (int): The total number of tokens processed by the agent.
17
- step_count (int): The number of steps taken by the agent.
18
- """
19
-
20
- completion_tokens: typing.Optional[int] = pydantic.Field(default=None)
21
- """
22
- The number of tokens generated by the agent.
23
- """
24
-
25
- prompt_tokens: typing.Optional[int] = pydantic.Field(default=None)
26
- """
27
- The number of tokens in the prompt.
28
- """
29
-
30
- total_tokens: typing.Optional[int] = pydantic.Field(default=None)
31
- """
32
- The total number of tokens processed by the agent.
33
- """
34
-
35
- step_count: typing.Optional[int] = pydantic.Field(default=None)
36
- """
37
- The number of steps taken by the agent.
38
- """
39
-
40
- if IS_PYDANTIC_V2:
41
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
42
- else:
43
-
44
- class Config:
45
- frozen = True
46
- smart_union = True
47
- extra = pydantic.Extra.allow
@@ -1,32 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- from ..core.pydantic_utilities import UniversalBaseModel
4
- import datetime as dt
5
- import typing
6
- from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
- import pydantic
8
-
9
-
10
- class LettaResponseReasoningMessage(UniversalBaseModel):
11
- """
12
- Representation of an agent's internal reasoning.
13
-
14
- Attributes:
15
- reasoning (str): The internal reasoning of the agent
16
- id (str): The ID of the message
17
- date (datetime): The date the message was created in ISO format
18
- """
19
-
20
- id: str
21
- date: dt.datetime
22
- message_type: typing.Optional[typing.Literal["reasoning_message"]] = None
23
- reasoning: str
24
-
25
- if IS_PYDANTIC_V2:
26
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
27
- else:
28
-
29
- class Config:
30
- frozen = True
31
- smart_union = True
32
- extra = pydantic.Extra.allow
@@ -1,32 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- from ..core.pydantic_utilities import UniversalBaseModel
4
- import datetime as dt
5
- import typing
6
- from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
- import pydantic
8
-
9
-
10
- class LettaResponseSystemMessage(UniversalBaseModel):
11
- """
12
- A message generated by the system. Never streamed back on a response, only used for cursor pagination.
13
-
14
- Attributes:
15
- message (str): The message sent by the system
16
- id (str): The ID of the message
17
- date (datetime): The date the message was created in ISO format
18
- """
19
-
20
- id: str
21
- date: dt.datetime
22
- message_type: typing.Optional[typing.Literal["system_message"]] = None
23
- message: str
24
-
25
- if IS_PYDANTIC_V2:
26
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
27
- else:
28
-
29
- class Config:
30
- frozen = True
31
- smart_union = True
32
- extra = pydantic.Extra.allow
@@ -1,21 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- from ..core.pydantic_utilities import UniversalBaseModel
4
- import typing
5
- from ..core.pydantic_utilities import IS_PYDANTIC_V2
6
- import pydantic
7
-
8
-
9
- class LettaResponseToolCallDelta(UniversalBaseModel):
10
- name: typing.Optional[str] = None
11
- arguments: typing.Optional[str] = None
12
- tool_call_id: typing.Optional[str] = None
13
-
14
- if IS_PYDANTIC_V2:
15
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
16
- else:
17
-
18
- class Config:
19
- frozen = True
20
- smart_union = True
21
- extra = pydantic.Extra.allow
@@ -1,33 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- from ..core.pydantic_utilities import UniversalBaseModel
4
- import datetime as dt
5
- import typing
6
- from .letta_response_tool_call_message_tool_call import LettaResponseToolCallMessageToolCall
7
- from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
- import pydantic
9
-
10
-
11
- class LettaResponseToolCallMessage(UniversalBaseModel):
12
- """
13
- A message representing a request to call a tool (generated by the LLM to trigger tool execution).
14
-
15
- Attributes:
16
- tool_call (Union[ToolCall, ToolCallDelta]): The tool call
17
- id (str): The ID of the message
18
- date (datetime): The date the message was created in ISO format
19
- """
20
-
21
- id: str
22
- date: dt.datetime
23
- message_type: typing.Optional[typing.Literal["tool_call_message"]] = None
24
- tool_call: LettaResponseToolCallMessageToolCall
25
-
26
- if IS_PYDANTIC_V2:
27
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
28
- else:
29
-
30
- class Config:
31
- frozen = True
32
- smart_union = True
33
- extra = pydantic.Extra.allow
@@ -1,9 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
- from .letta_response_tool_call_message_tool_call_zero import LettaResponseToolCallMessageToolCallZero
5
- from .letta_response_tool_call_message_tool_call_one import LettaResponseToolCallMessageToolCallOne
6
-
7
- LettaResponseToolCallMessageToolCall = typing.Union[
8
- LettaResponseToolCallMessageToolCallZero, LettaResponseToolCallMessageToolCallOne
9
- ]
@@ -1,21 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- from ..core.pydantic_utilities import UniversalBaseModel
4
- import typing
5
- from ..core.pydantic_utilities import IS_PYDANTIC_V2
6
- import pydantic
7
-
8
-
9
- class LettaResponseToolCallMessageToolCallOne(UniversalBaseModel):
10
- name: typing.Optional[str] = None
11
- arguments: typing.Optional[str] = None
12
- tool_call_id: typing.Optional[str] = None
13
-
14
- if IS_PYDANTIC_V2:
15
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
16
- else:
17
-
18
- class Config:
19
- frozen = True
20
- smart_union = True
21
- extra = pydantic.Extra.allow
@@ -1,21 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- from ..core.pydantic_utilities import UniversalBaseModel
4
- from ..core.pydantic_utilities import IS_PYDANTIC_V2
5
- import typing
6
- import pydantic
7
-
8
-
9
- class LettaResponseToolCallMessageToolCallZero(UniversalBaseModel):
10
- name: str
11
- arguments: str
12
- tool_call_id: str
13
-
14
- if IS_PYDANTIC_V2:
15
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
16
- else:
17
-
18
- class Config:
19
- frozen = True
20
- smart_union = True
21
- extra = pydantic.Extra.allow
@@ -1,41 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- from ..core.pydantic_utilities import UniversalBaseModel
4
- import datetime as dt
5
- import typing
6
- from .letta_response_tool_return_message_status import LettaResponseToolReturnMessageStatus
7
- from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
- import pydantic
9
-
10
-
11
- class LettaResponseToolReturnMessage(UniversalBaseModel):
12
- """
13
- A message representing the return value of a tool call (generated by Letta executing the requested tool).
14
-
15
- Attributes:
16
- tool_return (str): The return value of the tool
17
- status (Literal["success", "error"]): The status of the tool call
18
- id (str): The ID of the message
19
- date (datetime): The date the message was created in ISO format
20
- tool_call_id (str): A unique identifier for the tool call that generated this message
21
- stdout (Optional[List(str)]): Captured stdout (e.g. prints, logs) from the tool invocation
22
- stderr (Optional[List(str)]): Captured stderr from the tool invocation
23
- """
24
-
25
- id: str
26
- date: dt.datetime
27
- message_type: typing.Optional[typing.Literal["tool_return_message"]] = None
28
- tool_return: str
29
- status: LettaResponseToolReturnMessageStatus
30
- tool_call_id: str
31
- stdout: typing.Optional[typing.List[str]] = None
32
- stderr: typing.Optional[typing.List[str]] = None
33
-
34
- if IS_PYDANTIC_V2:
35
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
36
- else:
37
-
38
- class Config:
39
- frozen = True
40
- smart_union = True
41
- extra = pydantic.Extra.allow
@@ -1,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- LettaResponseToolReturnMessageStatus = typing.Union[typing.Literal["success", "error"], typing.Any]
@@ -1,40 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- from ..core.pydantic_utilities import UniversalBaseModel
4
- import datetime as dt
5
- import typing
6
- from .letta_response_usage_message_usage import LettaResponseUsageMessageUsage
7
- import pydantic
8
- from ..core.pydantic_utilities import IS_PYDANTIC_V2
9
-
10
-
11
- class LettaResponseUsageMessage(UniversalBaseModel):
12
- """
13
- A message representint the usage statistics for the agent interaction.
14
-
15
- Attributes:
16
- usage (LettaUsageStatistics): Usage statistics for the agent interaction.
17
- """
18
-
19
- id: str
20
- date: dt.datetime
21
- message_type: typing.Optional[typing.Literal["usage_message"]] = None
22
- usage: LettaResponseUsageMessageUsage = pydantic.Field()
23
- """
24
- Usage statistics for the agent interaction.
25
-
26
- Attributes:
27
- completion_tokens (int): The number of tokens generated by the agent.
28
- prompt_tokens (int): The number of tokens in the prompt.
29
- total_tokens (int): The total number of tokens processed by the agent.
30
- step_count (int): The number of steps taken by the agent.
31
- """
32
-
33
- if IS_PYDANTIC_V2:
34
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
35
- else:
36
-
37
- class Config:
38
- frozen = True
39
- smart_union = True
40
- extra = pydantic.Extra.allow
@@ -1,47 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- from ..core.pydantic_utilities import UniversalBaseModel
4
- import typing
5
- import pydantic
6
- from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
-
8
-
9
- class LettaResponseUsageMessageUsage(UniversalBaseModel):
10
- """
11
- Usage statistics for the agent interaction.
12
-
13
- Attributes:
14
- completion_tokens (int): The number of tokens generated by the agent.
15
- prompt_tokens (int): The number of tokens in the prompt.
16
- total_tokens (int): The total number of tokens processed by the agent.
17
- step_count (int): The number of steps taken by the agent.
18
- """
19
-
20
- completion_tokens: typing.Optional[int] = pydantic.Field(default=None)
21
- """
22
- The number of tokens generated by the agent.
23
- """
24
-
25
- prompt_tokens: typing.Optional[int] = pydantic.Field(default=None)
26
- """
27
- The number of tokens in the prompt.
28
- """
29
-
30
- total_tokens: typing.Optional[int] = pydantic.Field(default=None)
31
- """
32
- The total number of tokens processed by the agent.
33
- """
34
-
35
- step_count: typing.Optional[int] = pydantic.Field(default=None)
36
- """
37
- The number of steps taken by the agent.
38
- """
39
-
40
- if IS_PYDANTIC_V2:
41
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
42
- else:
43
-
44
- class Config:
45
- frozen = True
46
- smart_union = True
47
- extra = pydantic.Extra.allow