letta-client 0.1.17__py3-none-any.whl → 0.1.21__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.
- letta_client/__init__.py +44 -116
- letta_client/agents/__init__.py +18 -42
- letta_client/agents/archival_memory/client.py +6 -6
- letta_client/agents/client.py +28 -18
- letta_client/agents/context/client.py +6 -4
- letta_client/agents/core_memory/client.py +152 -227
- letta_client/agents/memory_variables/__init__.py +2 -2
- letta_client/agents/memory_variables/client.py +15 -15
- letta_client/agents/memory_variables/types/__init__.py +2 -2
- letta_client/agents/memory_variables/types/{memory_variables_get_response.py → memory_variables_list_response.py} +1 -1
- letta_client/agents/messages/__init__.py +2 -22
- letta_client/agents/messages/client.py +39 -40
- letta_client/agents/messages/types/__init__.py +3 -21
- letta_client/agents/messages/types/letta_streaming_response.py +16 -139
- letta_client/agents/messages/types/message_update_content.py +6 -0
- letta_client/agents/messages/types/messages_list_response.py +2 -2
- letta_client/agents/sources/client.py +266 -5
- letta_client/agents/tools/client.py +25 -27
- letta_client/agents/types/__init__.py +15 -25
- letta_client/agents/types/agents_search_request_search_item.py +10 -78
- letta_client/agents/types/{agents_search_request_search_item_order_by.py → agents_search_request_search_item_direction.py} +7 -6
- letta_client/agents/types/agents_search_request_search_item_direction_direction.py +5 -0
- letta_client/agents/types/agents_search_request_search_item_direction_value.py +5 -0
- letta_client/agents/types/{agents_search_request_search_item_name.py → agents_search_request_search_item_one.py} +5 -4
- letta_client/agents/types/agents_search_request_search_item_one_operator.py +5 -0
- letta_client/agents/types/{agents_search_request_search_item_tags.py → agents_search_request_search_item_two.py} +2 -1
- letta_client/agents/types/{agents_search_request_search_item_version.py → agents_search_request_search_item_zero.py} +3 -2
- letta_client/blocks/client.py +45 -166
- letta_client/client.py +3 -3
- letta_client/core/client_wrapper.py +1 -1
- letta_client/jobs/client.py +4 -4
- letta_client/providers/client.py +10 -10
- letta_client/runs/client.py +44 -30
- letta_client/sources/client.py +12 -288
- letta_client/sources/files/client.py +6 -6
- letta_client/tag/client.py +6 -6
- letta_client/tools/client.py +69 -75
- letta_client/types/__init__.py +31 -99
- letta_client/types/agent_state.py +3 -7
- letta_client/types/{letta_schemas_openai_chat_completion_response_tool_call.py → assistant_message.py} +6 -4
- letta_client/types/assistant_message_content.py +6 -0
- letta_client/types/block.py +2 -6
- letta_client/types/block_update.py +1 -5
- letta_client/types/{assistant_message_output.py → chat_completion_message_tool_call.py} +5 -5
- letta_client/types/context_window_overview.py +4 -6
- letta_client/types/create_block.py +1 -5
- letta_client/types/{function_call_output.py → function.py} +1 -1
- letta_client/types/{function_schema.py → function_definition.py} +2 -1
- letta_client/types/{function_call_input.py → function_tool.py} +5 -3
- letta_client/types/job.py +1 -5
- letta_client/types/letta_message_union.py +9 -121
- letta_client/types/letta_usage_statistics.py +1 -0
- letta_client/types/llm_config.py +6 -0
- letta_client/types/{letta_schemas_message_message.py → message.py} +7 -8
- letta_client/types/message_create.py +3 -2
- letta_client/types/message_create_content.py +6 -0
- letta_client/types/passage.py +1 -5
- letta_client/types/reasoning_message.py +2 -1
- letta_client/types/run.py +1 -5
- letta_client/types/source.py +2 -6
- letta_client/types/{system_message_output.py → system_message.py} +6 -4
- letta_client/types/system_message_content.py +6 -0
- letta_client/types/{create_assistant_file_request.py → text_content.py} +5 -4
- letta_client/types/{letta_schemas_tool_tool.py → tool.py} +1 -1
- letta_client/types/{letta_schemas_letta_message_tool_call.py → tool_call.py} +1 -1
- letta_client/types/tool_call_message.py +2 -1
- letta_client/types/tool_call_message_tool_call.py +2 -2
- letta_client/types/tool_return_message.py +2 -1
- letta_client/types/tool_type.py +2 -1
- letta_client/types/{user_message_output.py → user_message.py} +6 -4
- letta_client/types/user_message_content.py +6 -0
- {letta_client-0.1.17.dist-info → letta_client-0.1.21.dist-info}/METADATA +2 -2
- {letta_client-0.1.17.dist-info → letta_client-0.1.21.dist-info}/RECORD +74 -99
- letta_client/agents/types/agents_search_request_search_item_name_operator.py +0 -5
- letta_client/agents/types/agents_search_request_search_item_order_by_direction.py +0 -5
- letta_client/agents/types/agents_search_request_search_item_order_by_value.py +0 -5
- letta_client/types/assistant_file.py +0 -33
- letta_client/types/assistant_message_input.py +0 -23
- letta_client/types/chat_completion_request.py +0 -49
- letta_client/types/chat_completion_request_function_call.py +0 -6
- letta_client/types/chat_completion_request_messages_item.py +0 -11
- letta_client/types/chat_completion_request_stop.py +0 -5
- letta_client/types/chat_completion_request_tool_choice.py +0 -8
- letta_client/types/chat_completion_response.py +0 -32
- letta_client/types/choice.py +0 -25
- letta_client/types/create_assistant_request.py +0 -57
- letta_client/types/delete_assistant_file_response.py +0 -28
- letta_client/types/delete_assistant_response.py +0 -28
- letta_client/types/letta_schemas_openai_chat_completion_request_tool.py +0 -21
- letta_client/types/letta_schemas_openai_chat_completion_request_tool_call.py +0 -24
- letta_client/types/letta_schemas_openai_chat_completion_request_tool_call_function.py +0 -20
- letta_client/types/letta_schemas_openai_chat_completion_response_message.py +0 -24
- letta_client/types/letta_schemas_openai_chat_completions_tool_call_function.py +0 -27
- letta_client/types/letta_schemas_openai_chat_completions_tool_call_input.py +0 -29
- letta_client/types/letta_schemas_openai_chat_completions_tool_call_output.py +0 -29
- letta_client/types/log_prob_token.py +0 -21
- letta_client/types/message_content_log_prob.py +0 -23
- letta_client/types/open_ai_assistant.py +0 -67
- letta_client/types/response_format.py +0 -19
- letta_client/types/system_message_input.py +0 -21
- letta_client/types/tool_call_function_output.py +0 -27
- letta_client/types/tool_function_choice.py +0 -21
- letta_client/types/tool_input.py +0 -21
- letta_client/types/tool_message.py +0 -21
- letta_client/types/user_message_input.py +0 -22
- letta_client/types/user_message_input_content.py +0 -5
- {letta_client-0.1.17.dist-info → letta_client-0.1.21.dist-info}/WHEEL +0 -0
|
@@ -1,48 +1,49 @@
|
|
|
1
|
-
letta_client/__init__.py,sha256=
|
|
2
|
-
letta_client/agents/__init__.py,sha256=
|
|
1
|
+
letta_client/__init__.py,sha256=YvM8FezJKryBhS1xqiIgX7aUUSIcylczyyM8uCumkg0,5672
|
|
2
|
+
letta_client/agents/__init__.py,sha256=WWE2bmvdYKMnU15f4eCjCnAiuS6-BfArGMrpnHCT3pg,1610
|
|
3
3
|
letta_client/agents/archival_memory/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
4
|
-
letta_client/agents/archival_memory/client.py,sha256=
|
|
5
|
-
letta_client/agents/client.py,sha256=
|
|
4
|
+
letta_client/agents/archival_memory/client.py,sha256=VTlL-cGmYBYdVI5owY8Gbbj4dscUCtSzL34Gm_5Nvk4,14872
|
|
5
|
+
letta_client/agents/client.py,sha256=xr96uk3Jyw2maR2vVPKDfKhYncv6zmulqwP5i2kZm6E,54880
|
|
6
6
|
letta_client/agents/context/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
7
|
-
letta_client/agents/context/client.py,sha256=
|
|
7
|
+
letta_client/agents/context/client.py,sha256=GKKvoG4N_K8Biz9yDjeIHpFG0C8Cwc7tHmEX3pTL_9U,4815
|
|
8
8
|
letta_client/agents/core_memory/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
9
|
-
letta_client/agents/core_memory/client.py,sha256=
|
|
10
|
-
letta_client/agents/memory_variables/__init__.py,sha256=
|
|
11
|
-
letta_client/agents/memory_variables/client.py,sha256=
|
|
12
|
-
letta_client/agents/memory_variables/types/__init__.py,sha256=
|
|
13
|
-
letta_client/agents/memory_variables/types/
|
|
14
|
-
letta_client/agents/messages/__init__.py,sha256=
|
|
15
|
-
letta_client/agents/messages/client.py,sha256=
|
|
16
|
-
letta_client/agents/messages/types/__init__.py,sha256=
|
|
17
|
-
letta_client/agents/messages/types/letta_streaming_response.py,sha256=
|
|
18
|
-
letta_client/agents/messages/types/
|
|
9
|
+
letta_client/agents/core_memory/client.py,sha256=iuqNRihbXDZ67C27CHfVQwJCsWXsQBYxCirKTgV1Rc4,27973
|
|
10
|
+
letta_client/agents/memory_variables/__init__.py,sha256=goz3kTaLM-v8g-hYEhzyqBYzIc3Vu6gDD_7RtkIrM50,155
|
|
11
|
+
letta_client/agents/memory_variables/client.py,sha256=6qFVbR_tdfqj4HQ1h1HXR8DZCVzzJ8I82R92i35iadY,4965
|
|
12
|
+
letta_client/agents/memory_variables/types/__init__.py,sha256=EoznK0WvhCyFYd4KDdU-cGDQWpSXmq79BSkqVHN-j7A,180
|
|
13
|
+
letta_client/agents/memory_variables/types/memory_variables_list_response.py,sha256=bsF__n_B4ZXEHzg--OVD6tHHXt_aM-FjHm2x1ZXPnL0,599
|
|
14
|
+
letta_client/agents/messages/__init__.py,sha256=Wj8W908jYLC6n0QUG5TEIMWZh1vlI9m_LEtVqOeNFNc,237
|
|
15
|
+
letta_client/agents/messages/client.py,sha256=Jjp1Qy0C425jz0wiTH3lqQHc1w7t6gImzeQ8JLs7nTg,34741
|
|
16
|
+
letta_client/agents/messages/types/__init__.py,sha256=iaja58P-gB2f6q3c6Q6Waa1ZEpXJwXiz_fwektcBKCg,326
|
|
17
|
+
letta_client/agents/messages/types/letta_streaming_response.py,sha256=MdE2PxQ1x1AviakHXsWVcFv97a3RchzzzIiD77w4EC8,665
|
|
18
|
+
letta_client/agents/messages/types/message_update_content.py,sha256=LjGu6xzHC1kRKNHWg203jzz9GF8jPeNMPS36bEfqS7I,194
|
|
19
|
+
letta_client/agents/messages/types/messages_list_response.py,sha256=J8gf7Z7ml8isusdzMJdiIE--I2zE3MzFN8WlIn4pPcU,268
|
|
19
20
|
letta_client/agents/sources/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
20
|
-
letta_client/agents/sources/client.py,sha256=
|
|
21
|
+
letta_client/agents/sources/client.py,sha256=VjmiI0L2RyT3AhqstHunapdbzygTBcNGoT1DiFGRg44,12799
|
|
21
22
|
letta_client/agents/templates/__init__.py,sha256=fTLYBFybZ1xFP8phgz2b7Nlygau7OHa3CUqtZjG2JRI,149
|
|
22
23
|
letta_client/agents/templates/client.py,sha256=iFDP8OiGY78dMt8-sLhi3Qdb0ciKYPTpbBk3S_0ScxE,18873
|
|
23
24
|
letta_client/agents/templates/types/__init__.py,sha256=n6TG69a7_CByZmnRbsApvXiH9PG5SsDw7TcUEp99ETw,170
|
|
24
25
|
letta_client/agents/templates/types/templates_migrate_response.py,sha256=7N4JtAaiao-LrNdi72K7XB01uXJVkczaKYIJIMf0QYs,577
|
|
25
26
|
letta_client/agents/tools/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
26
|
-
letta_client/agents/tools/client.py,sha256=
|
|
27
|
-
letta_client/agents/types/__init__.py,sha256=
|
|
27
|
+
letta_client/agents/tools/client.py,sha256=xZMRZhG8mI_h8_QqgI4lXh3FieRCLeoPwdtB56GB-XU,12685
|
|
28
|
+
letta_client/agents/types/__init__.py,sha256=N3Lf7H39t4j0uuE-_yysqw4LIT6hIRMBSZVp7k6aMTs,1521
|
|
28
29
|
letta_client/agents/types/agents_search_request_combinator.py,sha256=7ZvVX3QILYpXAsKw3l7rQxwwleNekGP73GbNVboCaCA,166
|
|
29
|
-
letta_client/agents/types/agents_search_request_search_item.py,sha256=
|
|
30
|
-
letta_client/agents/types/
|
|
31
|
-
letta_client/agents/types/
|
|
32
|
-
letta_client/agents/types/
|
|
33
|
-
letta_client/agents/types/
|
|
34
|
-
letta_client/agents/types/
|
|
35
|
-
letta_client/agents/types/
|
|
36
|
-
letta_client/agents/types/
|
|
30
|
+
letta_client/agents/types/agents_search_request_search_item.py,sha256=3rbwbHr0UfLWmF5zRUDvEwJCDzwYPjuMkkARjrCXm78,637
|
|
31
|
+
letta_client/agents/types/agents_search_request_search_item_direction.py,sha256=dms9ylGMxhHxNVer8z-XkfIRGjvzHAhUuubftD_CM30,962
|
|
32
|
+
letta_client/agents/types/agents_search_request_search_item_direction_direction.py,sha256=IkVJfmnRPJ9zcjvQ0mq8wlfUvAVPxITcr_w4Qfm3RTI,186
|
|
33
|
+
letta_client/agents/types/agents_search_request_search_item_direction_value.py,sha256=t0mP7y2xMhfVp9KGKiDlQDO0an3cbYk_7G5gdFmWSlw,195
|
|
34
|
+
letta_client/agents/types/agents_search_request_search_item_one.py,sha256=ECWv-hDZen6AomM01zmRsOz0PlXVEwIwLHjid9yko9o,779
|
|
35
|
+
letta_client/agents/types/agents_search_request_search_item_one_operator.py,sha256=76AUQ67bAv7gm5i4OhOTzJ5DA8LbFJYD57vhzM6qNHI,189
|
|
36
|
+
letta_client/agents/types/agents_search_request_search_item_two.py,sha256=YBC-rhz_ToN948VyRy5VB1yT4JqtYcLD_V9hNrkgnfQ,690
|
|
37
|
+
letta_client/agents/types/agents_search_request_search_item_zero.py,sha256=tGjwnFqSofFMBSAogmPLEflDQZ2rMqoMfFUtaIpND18,630
|
|
37
38
|
letta_client/agents/types/create_agent_request_tool_rules_item.py,sha256=xSYFbxIAA6k-pZfVsCaTByE8nXRIqyKnfOm_IEjKfEM,415
|
|
38
39
|
letta_client/agents/types/update_agent_tool_rules_item.py,sha256=5pYbFgeqxmXUHUTZpEWlZ7ODc1G6CpFGWljz_iBpWVA,408
|
|
39
40
|
letta_client/base_client.py,sha256=OapnOZBD94aLQa5uoPCbNIR4zDg55DVI5zBe-wWHYfs,7419
|
|
40
41
|
letta_client/blocks/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
41
|
-
letta_client/blocks/client.py,sha256
|
|
42
|
-
letta_client/client.py,sha256=
|
|
42
|
+
letta_client/blocks/client.py,sha256=AeQQ-IdYhV-zqLTt3PTrJOtJ6XtBZcXNC108Y5EogVU,29178
|
|
43
|
+
letta_client/client.py,sha256=2_VG7tj2xOzS1aQLI_w8P6LfU7YoHXsD-CIRzmITuZ8,2589
|
|
43
44
|
letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
|
|
44
45
|
letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
|
45
|
-
letta_client/core/client_wrapper.py,sha256=
|
|
46
|
+
letta_client/core/client_wrapper.py,sha256=0mn76ciUJ1-MYunHlni5N6c0fp1h0dvc01OwJHTaEUk,1997
|
|
46
47
|
letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
47
48
|
letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
48
49
|
letta_client/core/http_client.py,sha256=siUQ6UV0ARZALlxubqWSSAAPC9B4VW8y6MGlHStfaeo,19552
|
|
@@ -62,108 +63,84 @@ letta_client/errors/unprocessable_entity_error.py,sha256=FvR7XPlV3Xx5nu8HNlmLhBR
|
|
|
62
63
|
letta_client/health/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
63
64
|
letta_client/health/client.py,sha256=6BjXH83ZhsLt_MD4QA2hiTsvgfeIgxMT1KSN0Oj6e1I,3242
|
|
64
65
|
letta_client/jobs/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
65
|
-
letta_client/jobs/client.py,sha256=
|
|
66
|
+
letta_client/jobs/client.py,sha256=z1Zq6dGs2xbf3EAFuD3-m-qbpbUeqpCBYqtIFKkGoMk,15622
|
|
66
67
|
letta_client/models/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
67
68
|
letta_client/models/client.py,sha256=Rd9IHjSdXRzzZyabpq8pDTc9XDnwLPnmm5by335g1D0,6306
|
|
68
69
|
letta_client/providers/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
69
|
-
letta_client/providers/client.py,sha256=
|
|
70
|
+
letta_client/providers/client.py,sha256=RLpTHd9iQ5wlZqYEG4cF8YsDCdaQZ0odCFprukauCuc,18228
|
|
70
71
|
letta_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
71
72
|
letta_client/runs/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
72
|
-
letta_client/runs/client.py,sha256
|
|
73
|
+
letta_client/runs/client.py,sha256=F4yTdhwAA20Ftjr9UZ9tU7wc209n1RNVdJkw42eiBqY,27330
|
|
73
74
|
letta_client/sources/__init__.py,sha256=kswgCv4UdkSVk1Y4tsMM1HadOwvhh_Fr96VTSMV4Umc,128
|
|
74
|
-
letta_client/sources/client.py,sha256=
|
|
75
|
+
letta_client/sources/client.py,sha256=GbMg3ZR0JufGPOfYiptr9yDWKJ0FgT6zLD_k6fET0zs,28223
|
|
75
76
|
letta_client/sources/files/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
76
|
-
letta_client/sources/files/client.py,sha256=
|
|
77
|
+
letta_client/sources/files/client.py,sha256=R-9zHK_wWtvW-2K7erQVVh9rR7a5JC4zxmTK3rrWJoU,13289
|
|
77
78
|
letta_client/sources/passages/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
78
79
|
letta_client/sources/passages/client.py,sha256=n0QVtLC0W1X6_SjhiEGSl9oZexocnsLZYeYRAqV2BCk,4767
|
|
79
80
|
letta_client/tag/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
80
|
-
letta_client/tag/client.py,sha256=
|
|
81
|
+
letta_client/tag/client.py,sha256=TBAotdb0e2_x2pANF4dOE1qmWY3GIgb7nOhvN7iZ3_4,5183
|
|
81
82
|
letta_client/tools/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
82
|
-
letta_client/tools/client.py,sha256=
|
|
83
|
-
letta_client/types/__init__.py,sha256=
|
|
83
|
+
letta_client/tools/client.py,sha256=vt8LVbsxz7ZDZlTW7VapEsb6VsdqfxDN1QYakNPAihA,54087
|
|
84
|
+
letta_client/types/__init__.py,sha256=dL71l8TC9VNQolYQWhXHQ14CPZsvhJnNwQtFYnZqJsw,6447
|
|
84
85
|
letta_client/types/action_model.py,sha256=65eLvLD-9-zK9hrDun7wjVlXsCiI7zujv8aGPuIb3jE,1206
|
|
85
86
|
letta_client/types/action_parameters_model.py,sha256=zKzJkjtu1pt4BEA2GHlg9rMWja5a0uZygOpOx3FbgIM,749
|
|
86
87
|
letta_client/types/action_response_model.py,sha256=5OuImT0EQFkAnc81F6tZsVEwYG8rKbIrx_ydGiKqwog,745
|
|
87
88
|
letta_client/types/agent_environment_variable.py,sha256=vutZLcR0yETltgOZ7E_o9kR4vOdBxybVL9lzXSux75w,1698
|
|
88
|
-
letta_client/types/agent_state.py,sha256=
|
|
89
|
+
letta_client/types/agent_state.py,sha256=ZRgtDN_iiDKKDKPbaTfx8PrONbL8E3MSjGqP9ysHXoU,4157
|
|
89
90
|
letta_client/types/agent_state_tool_rules_item.py,sha256=QVFCt60Ro3ZyyQtzA5Zn8Tq8t9osrpqchB08xzmdLs4,375
|
|
90
91
|
letta_client/types/agent_type.py,sha256=iZ3Wa4BUddDeFSgcK3Z0WUKCQYDRCEo0aJICKsc3HL0,220
|
|
91
92
|
letta_client/types/app_auth_scheme.py,sha256=_6FLlw3drQ3HDSP9SecStBwQyE0DgL6UvKFArCC4yp8,1242
|
|
92
93
|
letta_client/types/app_auth_scheme_auth_mode.py,sha256=Zafrac9piNVjCVppCv0CS34Yx4rFaFPieeNCrtaPSwk,225
|
|
93
94
|
letta_client/types/app_model.py,sha256=cypZdZ12NW9pbG23XW9qTtGnZNwNlJxoxBERaFcLmso,1519
|
|
94
|
-
letta_client/types/
|
|
95
|
-
letta_client/types/
|
|
96
|
-
letta_client/types/assistant_message_output.py,sha256=rhe1PjM24FcKxmNZH0mrfUbNFTs1yRSKu2GyHe3MU-Q,636
|
|
95
|
+
letta_client/types/assistant_message.py,sha256=OWJz-tAsuiA1bZguDbvIBJezzjYiQWt8kWCxwxK-zN4,779
|
|
96
|
+
letta_client/types/assistant_message_content.py,sha256=2XtIgU1tzCHgp-NwWIkUFohOd1GClieiRk9OATTEcew,188
|
|
97
97
|
letta_client/types/auth_request.py,sha256=q63VMj39aCmljDuzUeAClXEqyaoa_HKv5IraSv8ry9M,683
|
|
98
98
|
letta_client/types/auth_response.py,sha256=jtG9Nn0voJcOWkBtvnuGGwhpUhYz9A8O7soOJZo_E_E,861
|
|
99
99
|
letta_client/types/auth_scheme_field.py,sha256=W4-qgKtKUSpBHaSvjLyzLybOIsGo7Ggk4VECpsoPnqQ,881
|
|
100
|
-
letta_client/types/block.py,sha256=
|
|
101
|
-
letta_client/types/block_update.py,sha256=
|
|
102
|
-
letta_client/types/
|
|
103
|
-
letta_client/types/chat_completion_request_function_call.py,sha256=I3aPJPef1TfEM0qVuiJQHF9c-MJcQkq1QuSyXm0gR98,247
|
|
104
|
-
letta_client/types/chat_completion_request_messages_item.py,sha256=RaP8kpCRf0uc48TnzWNUn1Csl4snQeQrSEIPHWrgajQ,408
|
|
105
|
-
letta_client/types/chat_completion_request_stop.py,sha256=-znv6wKECPL0blRnNuqY89OPWu3CY-aCzLFCgUOZXiw,144
|
|
106
|
-
letta_client/types/chat_completion_request_tool_choice.py,sha256=17mDEt1B55OpvIKPtz_Jmzvc998zNRKbfawr4-J63t0,282
|
|
107
|
-
letta_client/types/chat_completion_response.py,sha256=cAql7ONTaFYlFQ8QWHWCD-NnVozDwzcab3RA_ePwFtE,986
|
|
100
|
+
letta_client/types/block.py,sha256=J8McqSpellhd-KsPYontU8DYg3YV41_fQW5rR-85qMk,2900
|
|
101
|
+
letta_client/types/block_update.py,sha256=oIgxvSnav5vxztBdslRMiWOgRaAp3dh43pinZpoLzxk,1496
|
|
102
|
+
letta_client/types/chat_completion_message_tool_call.py,sha256=cH5RubVaGqU7vlcnNTW70kZppU6D-9ihBAoOQ1LHIiE,676
|
|
108
103
|
letta_client/types/child_tool_rule.py,sha256=Ek6k4AAVxBHG-bv6mwhaqaiYQmn1OVcV-E1u91i9F7Y,963
|
|
109
|
-
letta_client/types/choice.py,sha256=kc1W8eIAFpmC4CQeoKTqLGWxwa5H9Sh6IhuSAHkQLR8,957
|
|
110
104
|
letta_client/types/conditional_tool_rule.py,sha256=jAMAlNBQFJkQ_mbHVT5geUa8-tQ5kh_x2Ulb6Myha30,1326
|
|
111
105
|
letta_client/types/conflict_error_body.py,sha256=Mena-q1jti6nv_7-xrp6sDb_5MXNKPGobHrhpnz9kpY,787
|
|
112
|
-
letta_client/types/context_window_overview.py,sha256=
|
|
113
|
-
letta_client/types/
|
|
114
|
-
letta_client/types/create_assistant_request.py,sha256=-Dt-KV8qXsV5Q_1iXQFvXa9GmD73wnblBvopmSiiPPQ,1523
|
|
115
|
-
letta_client/types/create_block.py,sha256=mKeCXqGpCYK7Jp5PvfF1bZMEnKhcip_5VUX0y9d8lLE,1426
|
|
116
|
-
letta_client/types/delete_assistant_file_response.py,sha256=7j0Qr9mp2bMS42na9IP0i9sEy16MsGzDLDiq-burYwI,772
|
|
117
|
-
letta_client/types/delete_assistant_response.py,sha256=1OX7gczbWmiAKYkzETkcQCHRlsTqySUHjkGiWA_Pygk,770
|
|
106
|
+
letta_client/types/context_window_overview.py,sha256=9pwiObSxu-SFyQ1pxSTlQiRatVAyFgqa6t0_qrrsGfU,2815
|
|
107
|
+
letta_client/types/create_block.py,sha256=V57mbqUkh5c-HcDxmIiFVr3tNfoqx-WJ1GRQZPobbxI,1277
|
|
118
108
|
letta_client/types/e_2_b_sandbox_config.py,sha256=w3R4QpPjeie5aKw8sb_eKhl78J0k5vLCcATNS3Qaeyw,957
|
|
119
109
|
letta_client/types/embedding_config.py,sha256=ubGDLn8_H1qOoZUUj6de0MVrQnM2umVR2vdnOolPyr4,2539
|
|
120
110
|
letta_client/types/embedding_config_embedding_endpoint_type.py,sha256=1_ytkZZHdP7vBoaQ3oSf_fSLmPa_C9P4mEeUBzTB700,534
|
|
121
111
|
letta_client/types/file_metadata.py,sha256=vORZH5WZO8AwAuKq0h0W9TTuydjmDlkZC6YyZMy2jbc,1973
|
|
122
|
-
letta_client/types/
|
|
123
|
-
letta_client/types/
|
|
124
|
-
letta_client/types/
|
|
112
|
+
letta_client/types/function.py,sha256=sxz61e9LJ66cpSjg_yu3cvcB_HrxuKw_-21rRSNI70E,572
|
|
113
|
+
letta_client/types/function_definition.py,sha256=8vlMb665ciZjmzSTX2ZOTuqXrohKBKZtxwzMbS3nzOs,735
|
|
114
|
+
letta_client/types/function_tool.py,sha256=z8Iy_49Pv97EH27bvasT6ipc4wS_RAwY05TkJJhqlkM,678
|
|
125
115
|
letta_client/types/health.py,sha256=nQwx5ysn_cJMKUoqsfaPcGNSRSjfwX5S272UiSQJ03w,618
|
|
126
116
|
letta_client/types/http_validation_error.py,sha256=yHa4_NHIMB-VKNZpk7agjLTwWIg7mv7ml3d7I-Bqiog,661
|
|
127
117
|
letta_client/types/init_tool_rule.py,sha256=1HXLdPsB_lWvD7x2Rioqb_-99NFd5SDSCsQSE1Ib3VM,837
|
|
128
118
|
letta_client/types/internal_server_error_body.py,sha256=xR9n1zptgmImbH6apQAuwBblYOWAYNLFzY8s0SUcEug,653
|
|
129
|
-
letta_client/types/job.py,sha256=
|
|
119
|
+
letta_client/types/job.py,sha256=VJBdFIY0rwqh4hObTchlU2jrloTjZwUEA44pNtY_JBg,2321
|
|
130
120
|
letta_client/types/job_status.py,sha256=0Gu5Tku79SDVzCxnjVXQyDPNCizGWUP1ppohAck6a2U,189
|
|
131
121
|
letta_client/types/job_type.py,sha256=Roa04Ry0I-8YMYcDHiHSQwqBavZyPonzkZtjf098e-Q,145
|
|
132
|
-
letta_client/types/letta_message_union.py,sha256=
|
|
122
|
+
letta_client/types/letta_message_union.py,sha256=FM4Zippr5fJ05AZ2aZRFlqp348xNgLbzVOcrnyNfytI,493
|
|
133
123
|
letta_client/types/letta_request.py,sha256=Xps139s6e0fc7HWi0YJHFz51AfY3iDAB9kh-yBa4e38,900
|
|
134
124
|
letta_client/types/letta_request_config.py,sha256=b6K4QtDdHjcZKfBb1fugUuoPrT2N4d5TTB0PIRNI2SU,1085
|
|
135
125
|
letta_client/types/letta_response.py,sha256=i5gAUTgWzIst_RP8I_zSh0GSnLIS3z--1BmK6EF1mkQ,1315
|
|
136
|
-
letta_client/types/
|
|
137
|
-
letta_client/types/
|
|
138
|
-
letta_client/types/letta_schemas_openai_chat_completion_request_tool.py,sha256=fdQxtc1tO3kQzpOPxNuELJl5vSaU9pdSdrTpnWJeK5Y,708
|
|
139
|
-
letta_client/types/letta_schemas_openai_chat_completion_request_tool_call.py,sha256=IlL9RDjVQhhLL56zkl2HKIe90czi2zNsthEXErbuKnc,863
|
|
140
|
-
letta_client/types/letta_schemas_openai_chat_completion_request_tool_call_function.py,sha256=kH0koggWWYihst_VCvWoahU0PZDQ8wonfHyYeCP6ZRk,619
|
|
141
|
-
letta_client/types/letta_schemas_openai_chat_completion_response_message.py,sha256=xhDRJ7p8UFb5qpap6OEQKS0UbwGuV2-DvuFgvlC7VrE,968
|
|
142
|
-
letta_client/types/letta_schemas_openai_chat_completion_response_tool_call.py,sha256=oL_anLry1U6bJCsSzyJIjecto3Wo1d8yh9pOFL3xVQ4,738
|
|
143
|
-
letta_client/types/letta_schemas_openai_chat_completions_tool_call_function.py,sha256=tkM0hBugyKgJO-pSKZYhPRym7pbzxcvRGGQUKU-HoKw,775
|
|
144
|
-
letta_client/types/letta_schemas_openai_chat_completions_tool_call_input.py,sha256=ZvRZX6l3tSlhxUs0ZutyKZWGS14jvJKHyaspZ3rnROQ,954
|
|
145
|
-
letta_client/types/letta_schemas_openai_chat_completions_tool_call_output.py,sha256=ZqrzcBsJlDN8IfhZxRbvwz4-5mmOsk_qi0gYCad__Gk,870
|
|
146
|
-
letta_client/types/letta_schemas_tool_tool.py,sha256=QPsaOdK_VB_TDC_GDRFU8w-kf_p8ClRKuegfssPnXV8,2351
|
|
147
|
-
letta_client/types/letta_usage_statistics.py,sha256=Sr8g9QBOIAMpPDr_HMQOkkhMhNEw8j846wkuTg69YxI,1460
|
|
148
|
-
letta_client/types/llm_config.py,sha256=Jk6uKehnhOxaEWZptE09781Pa8LGIh1SlIKGj_eX6oA,2447
|
|
126
|
+
letta_client/types/letta_usage_statistics.py,sha256=0BHM3ArfwH6WVJNHYja7LI2k3BZ3jt0o_COfgA4muWo,1537
|
|
127
|
+
letta_client/types/llm_config.py,sha256=8Phumb-vTzIED8vi2tFMGP8kCITCgEtl5vv99p6vot8,2796
|
|
149
128
|
letta_client/types/llm_config_model_endpoint_type.py,sha256=zz7qt0dCqX06vu8mTN1vIvO7iPl1CNbKTFHd-Qg6q6E,524
|
|
150
129
|
letta_client/types/local_sandbox_config.py,sha256=Q4riu4FS69VmC6WsJYcN5YzRCPJwn0hRHRV9bEI_vHY,1044
|
|
151
|
-
letta_client/types/log_prob_token.py,sha256=ueghwzOAxC14TuztG4rkTcYgkRCK6RilqGYqZYC0xbY,629
|
|
152
130
|
letta_client/types/memory.py,sha256=KD5MkDQB-vbRPT9f_-yFBWY1WUW_NWxYEI0IiflG6P8,1035
|
|
153
|
-
letta_client/types/
|
|
154
|
-
letta_client/types/message_create.py,sha256=
|
|
131
|
+
letta_client/types/message.py,sha256=F-cQEwaEUvskygFdZ4GWP02iOI4lXbcwt0lGJ1odh5g,3118
|
|
132
|
+
letta_client/types/message_create.py,sha256=x80xQYxC3IUHs7PKCqHfeJkHRh02dx0oOc0PoJO8krc,1011
|
|
133
|
+
letta_client/types/message_create_content.py,sha256=N3W7IzbUk2RqEbL88noLCu4Bmbli5-yq35d0nfscGl8,185
|
|
155
134
|
letta_client/types/message_create_role.py,sha256=atjQEZ8iT4gTAmrFTFnRaM66f0MGsgfGq6hpx1Q-i44,159
|
|
156
135
|
letta_client/types/message_role.py,sha256=HKatrA1jt02oTObExloTY3rW8Urzn37kBTg0Z6MbwkQ,186
|
|
157
136
|
letta_client/types/not_found_error_body.py,sha256=_1esSlUdkBx6CRs6aAIJrxzh3VZKEG0xzeLbxebBuy0,615
|
|
158
137
|
letta_client/types/not_found_error_body_message.py,sha256=Kc9xrVghgDATdPAGpTPnzyKe6ds5q8Vr6zcBU5lLcH4,309
|
|
159
|
-
letta_client/types/open_ai_assistant.py,sha256=szt-m_wM1d8DYPBMIL4XNZVOpkivGajYQBUDISAA1x4,1710
|
|
160
138
|
letta_client/types/organization.py,sha256=vSXwqYTpxGZgpMTv8rw5jzklZnUYjS6yBTkEFNPNSrU,927
|
|
161
139
|
letta_client/types/organization_create.py,sha256=xlF1FgDRa7zpv49kVGWYchcSEUjPEsjF5_m2xHWb9VM,661
|
|
162
|
-
letta_client/types/passage.py,sha256=
|
|
140
|
+
letta_client/types/passage.py,sha256=1OM19TyVCQEL1P3BC58hmzWfawZM4vejiKr0P11dOUk,3034
|
|
163
141
|
letta_client/types/provider.py,sha256=RvdE9dzGFJ4hcmyvk2xeO7RNpxQvXhB_S9DNy8t_z-E,1053
|
|
164
|
-
letta_client/types/reasoning_message.py,sha256=
|
|
165
|
-
letta_client/types/
|
|
166
|
-
letta_client/types/run.py,sha256=MZUXM24ipEHJU4iaGWxHkYVPMI8KCsRe42IihzchEkQ,2654
|
|
142
|
+
letta_client/types/reasoning_message.py,sha256=NmPZqN7hxYVkh7WKYxHTIfqTDqxVLbNZYB5G9TyQ5mc,958
|
|
143
|
+
letta_client/types/run.py,sha256=AgRWT05g4ar7Tid6TfjcfU6leLih8OXKU-mVm2VJV5c,2505
|
|
167
144
|
letta_client/types/sandbox_config.py,sha256=nvVdB0WnK_-bEHIehvBGiiD0hvujA93Ko4FuGMAJDdk,1550
|
|
168
145
|
letta_client/types/sandbox_config_create.py,sha256=eP3Bg9JsROEQEEXm9zo-AJb5QvinO1fQkbDhNcfAUt0,730
|
|
169
146
|
letta_client/types/sandbox_config_create_config.py,sha256=EsSeN81_yPkorfQgOJmumdCWiUt8hk9HawSsRcCc5Hs,263
|
|
@@ -173,32 +150,30 @@ letta_client/types/sandbox_environment_variable.py,sha256=wqOx9q9IeVTRvlz9UPa4Dt
|
|
|
173
150
|
letta_client/types/sandbox_environment_variable_create.py,sha256=AhGE8ITStXkPOfPXjpbiC1oaYC4PEKIklZIsYZ0topI,890
|
|
174
151
|
letta_client/types/sandbox_environment_variable_update.py,sha256=JMkX6nzvcBNEemjvBmyHDezci3Bn7epKhMnvFY_--EA,948
|
|
175
152
|
letta_client/types/sandbox_type.py,sha256=XSWmX3JIFFrDPQ4i89E8LauXY8kjmJEtaz6e_JheGm4,151
|
|
176
|
-
letta_client/types/source.py,sha256=
|
|
177
|
-
letta_client/types/
|
|
178
|
-
letta_client/types/
|
|
153
|
+
letta_client/types/source.py,sha256=7tLptZ4AZrvRPF6NqToM4Vf9i7TosS2_Ydks4zfvZx4,2239
|
|
154
|
+
letta_client/types/system_message.py,sha256=DUIgPbL_ya49sGN15DIEGO2t8OQ4pseHvbMcayygV0c,1155
|
|
155
|
+
letta_client/types/system_message_content.py,sha256=9VvwCUKMkNidcMUaPmuj6-WhzeJoEZCNvyn3oH-LR70,185
|
|
179
156
|
letta_client/types/terminal_tool_rule.py,sha256=LscdG_oQuMmpnS0WLIpN_cOuTBoqJ5Ccl3ha8xv-XQQ,899
|
|
157
|
+
letta_client/types/text_content.py,sha256=Z8UL4Sqqq2qClKU_nCgR9XFCj3dwYyhZMmvnnz1F0AE,670
|
|
158
|
+
letta_client/types/tool.py,sha256=0D7w3mGizkqczT92dnueu_LGJg-9gDkO0PS5cnLnynQ,2335
|
|
159
|
+
letta_client/types/tool_call.py,sha256=EKGAFwzoa6zMTpOkG55hWzFn_AgPrbLXSOu5M84x8WU,594
|
|
180
160
|
letta_client/types/tool_call_delta.py,sha256=wGeZwJ9pwYHD5-f4Unf5-vJqefK40eHw9i0w3bCjRoE,671
|
|
181
|
-
letta_client/types/
|
|
182
|
-
letta_client/types/
|
|
183
|
-
letta_client/types/tool_call_message_tool_call.py,sha256=574_EuZw2S1A1bGaAfg1KMmPoBggmLVKfsizOx82510,295
|
|
161
|
+
letta_client/types/tool_call_message.py,sha256=PQEYtLzNMmqc86q7kqjEuALvJ4HdAC_8ODIYjArsoco,1096
|
|
162
|
+
letta_client/types/tool_call_message_tool_call.py,sha256=twtq5-vZIeh1nShqm8iTCN9YFtY7LUIL-bFYuUfhF1o,219
|
|
184
163
|
letta_client/types/tool_create.py,sha256=GC5_7bXmiiQVloCZuy6UtqIAH0kHXNOQcEhC_CRfoyY,1506
|
|
185
|
-
letta_client/types/
|
|
186
|
-
letta_client/types/tool_input.py,sha256=Q1KMbLlbhu3l2kn_gkqmYafTD4ndZpQPUdYX6vzmjW0,674
|
|
187
|
-
letta_client/types/tool_message.py,sha256=Ak3rItXVRStenBXqyYOhUDr3T6EudLkMOEi1ev5b4aA,619
|
|
188
|
-
letta_client/types/tool_return_message.py,sha256=Urb1zWAemckUEQDxOXlQrQz_DaXxyPQGvcOL_T8tFh4,1511
|
|
164
|
+
letta_client/types/tool_return_message.py,sha256=hQ-17bvNGoSaCow4AvWSGLTa80fKuXP2bxXGNUXuX0w,1591
|
|
189
165
|
letta_client/types/tool_return_message_status.py,sha256=FvFOMaG9mnmgnHi2UBQVQQMtHFabbWnQnHTxGUDgVl0,167
|
|
190
166
|
letta_client/types/tool_rule_type.py,sha256=W6lVaYVYzSzhFHgqitmw6XLtxgxBhINgHZJfSnxg6ts,265
|
|
191
|
-
letta_client/types/tool_type.py,sha256=
|
|
167
|
+
letta_client/types/tool_type.py,sha256=Y4fG_O_PLHIJHbqLl08mC_EmeWQ9bdP_D8OLAS8mw64,235
|
|
192
168
|
letta_client/types/usage_statistics.py,sha256=btEmMUxFVu7oQQtBCdQqFJ6XddgmR84799-AdlsHh0w,690
|
|
193
169
|
letta_client/types/user.py,sha256=z_v1uqQ6HYwV_Pp7wDDqS6QWhslHgdUH-AldV-jnmKQ,1349
|
|
194
170
|
letta_client/types/user_create.py,sha256=prQea3xb2-Cm64wv6Y84OfhWNWrA2P8SH5yhUxejzOI,616
|
|
195
|
-
letta_client/types/
|
|
196
|
-
letta_client/types/
|
|
197
|
-
letta_client/types/user_message_output.py,sha256=amGS-Dzws4ITjumVfZ6srZhxG-P8pWl7KF7EBvEBKB4,919
|
|
171
|
+
letta_client/types/user_message.py,sha256=KE3ZZMqAYeL9-o4vadHqymzM2uxvKg4Rk3mpUrOviis,1136
|
|
172
|
+
letta_client/types/user_message_content.py,sha256=qqNvpEusXfMaf_jKqVchqhKtAyahNAlRlqXSU1UIhBE,183
|
|
198
173
|
letta_client/types/user_update.py,sha256=0Bl1OjO7bfmlpsGQ36dSh6DH1UB_wJOTNewS0wDLkP4,731
|
|
199
174
|
letta_client/types/validation_error.py,sha256=ACDS7wL5nQbS8ymFhWljwbBJmbugNa8bs2O5xEZC3u4,680
|
|
200
175
|
letta_client/types/validation_error_loc_item.py,sha256=LAtjCHIllWRBFXvAZ5QZpp7CPXjdtN9EB7HrLVo6EP0,128
|
|
201
176
|
letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
|
|
202
|
-
letta_client-0.1.
|
|
203
|
-
letta_client-0.1.
|
|
204
|
-
letta_client-0.1.
|
|
177
|
+
letta_client-0.1.21.dist-info/METADATA,sha256=ekdEUW4sFIHxwuLa2nkzp5pRhVLkTETmcNBmYOBdG9w,4942
|
|
178
|
+
letta_client-0.1.21.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
179
|
+
letta_client-0.1.21.dist-info/RECORD,,
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
-
import pydantic
|
|
5
|
-
import typing
|
|
6
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class AssistantFile(UncheckedBaseModel):
|
|
10
|
-
id: str = pydantic.Field()
|
|
11
|
-
"""
|
|
12
|
-
The unique identifier of the file.
|
|
13
|
-
"""
|
|
14
|
-
|
|
15
|
-
object: typing.Optional[str] = None
|
|
16
|
-
created_at: int = pydantic.Field()
|
|
17
|
-
"""
|
|
18
|
-
The unix timestamp of when the file was created.
|
|
19
|
-
"""
|
|
20
|
-
|
|
21
|
-
assistant_id: str = pydantic.Field()
|
|
22
|
-
"""
|
|
23
|
-
The unique identifier of the assistant.
|
|
24
|
-
"""
|
|
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,23 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
-
import typing
|
|
5
|
-
from .letta_schemas_openai_chat_completion_request_tool_call import LettaSchemasOpenaiChatCompletionRequestToolCall
|
|
6
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
-
import pydantic
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class AssistantMessageInput(UncheckedBaseModel):
|
|
11
|
-
content: typing.Optional[str] = None
|
|
12
|
-
role: typing.Optional[str] = None
|
|
13
|
-
name: typing.Optional[str] = None
|
|
14
|
-
tool_calls: typing.Optional[typing.List[LettaSchemasOpenaiChatCompletionRequestToolCall]] = None
|
|
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,49 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
-
import typing
|
|
5
|
-
from .chat_completion_request_messages_item import ChatCompletionRequestMessagesItem
|
|
6
|
-
from .response_format import ResponseFormat
|
|
7
|
-
from .chat_completion_request_stop import ChatCompletionRequestStop
|
|
8
|
-
from .tool_input import ToolInput
|
|
9
|
-
from .chat_completion_request_tool_choice import ChatCompletionRequestToolChoice
|
|
10
|
-
from .function_schema import FunctionSchema
|
|
11
|
-
from .chat_completion_request_function_call import ChatCompletionRequestFunctionCall
|
|
12
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
13
|
-
import pydantic
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
class ChatCompletionRequest(UncheckedBaseModel):
|
|
17
|
-
"""
|
|
18
|
-
https://platform.openai.com/docs/api-reference/chat/create
|
|
19
|
-
"""
|
|
20
|
-
|
|
21
|
-
model: str
|
|
22
|
-
messages: typing.List[ChatCompletionRequestMessagesItem]
|
|
23
|
-
frequency_penalty: typing.Optional[float] = None
|
|
24
|
-
logit_bias: typing.Optional[typing.Dict[str, typing.Optional[int]]] = None
|
|
25
|
-
logprobs: typing.Optional[bool] = None
|
|
26
|
-
top_logprobs: typing.Optional[int] = None
|
|
27
|
-
max_tokens: typing.Optional[int] = None
|
|
28
|
-
n: typing.Optional[int] = None
|
|
29
|
-
presence_penalty: typing.Optional[float] = None
|
|
30
|
-
response_format: typing.Optional[ResponseFormat] = None
|
|
31
|
-
seed: typing.Optional[int] = None
|
|
32
|
-
stop: typing.Optional[ChatCompletionRequestStop] = None
|
|
33
|
-
stream: typing.Optional[bool] = None
|
|
34
|
-
temperature: typing.Optional[float] = None
|
|
35
|
-
top_p: typing.Optional[float] = None
|
|
36
|
-
user: typing.Optional[str] = None
|
|
37
|
-
tools: typing.Optional[typing.List[ToolInput]] = None
|
|
38
|
-
tool_choice: typing.Optional[ChatCompletionRequestToolChoice] = None
|
|
39
|
-
functions: typing.Optional[typing.List[FunctionSchema]] = None
|
|
40
|
-
function_call: typing.Optional[ChatCompletionRequestFunctionCall] = None
|
|
41
|
-
|
|
42
|
-
if IS_PYDANTIC_V2:
|
|
43
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
44
|
-
else:
|
|
45
|
-
|
|
46
|
-
class Config:
|
|
47
|
-
frozen = True
|
|
48
|
-
smart_union = True
|
|
49
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing
|
|
4
|
-
from .system_message_input import SystemMessageInput
|
|
5
|
-
from .user_message_input import UserMessageInput
|
|
6
|
-
from .assistant_message_input import AssistantMessageInput
|
|
7
|
-
from .tool_message import ToolMessage
|
|
8
|
-
|
|
9
|
-
ChatCompletionRequestMessagesItem = typing.Union[
|
|
10
|
-
SystemMessageInput, UserMessageInput, AssistantMessageInput, ToolMessage
|
|
11
|
-
]
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing
|
|
4
|
-
from .tool_function_choice import ToolFunctionChoice
|
|
5
|
-
|
|
6
|
-
ChatCompletionRequestToolChoice = typing.Union[
|
|
7
|
-
typing.Literal["none"], typing.Literal["auto"], typing.Literal["required"], ToolFunctionChoice
|
|
8
|
-
]
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
-
import typing
|
|
5
|
-
from .choice import Choice
|
|
6
|
-
import datetime as dt
|
|
7
|
-
from .usage_statistics import UsageStatistics
|
|
8
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
|
-
import pydantic
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class ChatCompletionResponse(UncheckedBaseModel):
|
|
13
|
-
"""
|
|
14
|
-
https://platform.openai.com/docs/api-reference/chat/object
|
|
15
|
-
"""
|
|
16
|
-
|
|
17
|
-
id: str
|
|
18
|
-
choices: typing.List[Choice]
|
|
19
|
-
created: dt.datetime
|
|
20
|
-
model: typing.Optional[str] = None
|
|
21
|
-
system_fingerprint: typing.Optional[str] = None
|
|
22
|
-
object: typing.Optional[typing.Literal["chat.completion"]] = None
|
|
23
|
-
usage: UsageStatistics
|
|
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
|
letta_client/types/choice.py
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
-
from .letta_schemas_openai_chat_completion_response_message import LettaSchemasOpenaiChatCompletionResponseMessage
|
|
5
|
-
import typing
|
|
6
|
-
from .message_content_log_prob import MessageContentLogProb
|
|
7
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
|
-
import pydantic
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class Choice(UncheckedBaseModel):
|
|
12
|
-
finish_reason: str
|
|
13
|
-
index: int
|
|
14
|
-
message: LettaSchemasOpenaiChatCompletionResponseMessage
|
|
15
|
-
logprobs: typing.Optional[typing.Dict[str, typing.Optional[typing.List[MessageContentLogProb]]]] = None
|
|
16
|
-
seed: typing.Optional[int] = None
|
|
17
|
-
|
|
18
|
-
if IS_PYDANTIC_V2:
|
|
19
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
20
|
-
else:
|
|
21
|
-
|
|
22
|
-
class Config:
|
|
23
|
-
frozen = True
|
|
24
|
-
smart_union = True
|
|
25
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
-
import pydantic
|
|
5
|
-
import typing
|
|
6
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class CreateAssistantRequest(UncheckedBaseModel):
|
|
10
|
-
model: str = pydantic.Field()
|
|
11
|
-
"""
|
|
12
|
-
The model to use for the assistant.
|
|
13
|
-
"""
|
|
14
|
-
|
|
15
|
-
name: str = pydantic.Field()
|
|
16
|
-
"""
|
|
17
|
-
The name of the assistant.
|
|
18
|
-
"""
|
|
19
|
-
|
|
20
|
-
description: typing.Optional[str] = pydantic.Field(default=None)
|
|
21
|
-
"""
|
|
22
|
-
The description of the assistant.
|
|
23
|
-
"""
|
|
24
|
-
|
|
25
|
-
instructions: str = pydantic.Field()
|
|
26
|
-
"""
|
|
27
|
-
The instructions for the assistant.
|
|
28
|
-
"""
|
|
29
|
-
|
|
30
|
-
tools: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
|
|
31
|
-
"""
|
|
32
|
-
The tools used by the assistant.
|
|
33
|
-
"""
|
|
34
|
-
|
|
35
|
-
file_ids: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
|
|
36
|
-
"""
|
|
37
|
-
List of file IDs associated with the assistant.
|
|
38
|
-
"""
|
|
39
|
-
|
|
40
|
-
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None)
|
|
41
|
-
"""
|
|
42
|
-
Metadata associated with the assistant.
|
|
43
|
-
"""
|
|
44
|
-
|
|
45
|
-
embedding_model: typing.Optional[str] = pydantic.Field(default=None)
|
|
46
|
-
"""
|
|
47
|
-
The model to use for the assistant.
|
|
48
|
-
"""
|
|
49
|
-
|
|
50
|
-
if IS_PYDANTIC_V2:
|
|
51
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
52
|
-
else:
|
|
53
|
-
|
|
54
|
-
class Config:
|
|
55
|
-
frozen = True
|
|
56
|
-
smart_union = True
|
|
57
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
-
import pydantic
|
|
5
|
-
import typing
|
|
6
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class DeleteAssistantFileResponse(UncheckedBaseModel):
|
|
10
|
-
id: str = pydantic.Field()
|
|
11
|
-
"""
|
|
12
|
-
The unique identifier of the file.
|
|
13
|
-
"""
|
|
14
|
-
|
|
15
|
-
object: typing.Optional[str] = None
|
|
16
|
-
deleted: bool = pydantic.Field()
|
|
17
|
-
"""
|
|
18
|
-
Whether the file was deleted.
|
|
19
|
-
"""
|
|
20
|
-
|
|
21
|
-
if IS_PYDANTIC_V2:
|
|
22
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
23
|
-
else:
|
|
24
|
-
|
|
25
|
-
class Config:
|
|
26
|
-
frozen = True
|
|
27
|
-
smart_union = True
|
|
28
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
-
import pydantic
|
|
5
|
-
import typing
|
|
6
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class DeleteAssistantResponse(UncheckedBaseModel):
|
|
10
|
-
id: str = pydantic.Field()
|
|
11
|
-
"""
|
|
12
|
-
The unique identifier of the agent.
|
|
13
|
-
"""
|
|
14
|
-
|
|
15
|
-
object: typing.Optional[str] = None
|
|
16
|
-
deleted: bool = pydantic.Field()
|
|
17
|
-
"""
|
|
18
|
-
Whether the agent was deleted.
|
|
19
|
-
"""
|
|
20
|
-
|
|
21
|
-
if IS_PYDANTIC_V2:
|
|
22
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
23
|
-
else:
|
|
24
|
-
|
|
25
|
-
class Config:
|
|
26
|
-
frozen = True
|
|
27
|
-
smart_union = True
|
|
28
|
-
extra = pydantic.Extra.allow
|