letta-client 0.1.209__py3-none-any.whl → 0.1.210__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.
Potentially problematic release.
This version of letta-client might be problematic. Click here for more details.
- letta_client/agents/client.py +40 -0
- letta_client/core/client_wrapper.py +1 -1
- letta_client/types/agent_state.py +10 -0
- {letta_client-0.1.209.dist-info → letta_client-0.1.210.dist-info}/METADATA +1 -1
- {letta_client-0.1.209.dist-info → letta_client-0.1.210.dist-info}/RECORD +6 -6
- {letta_client-0.1.209.dist-info → letta_client-0.1.210.dist-info}/WHEEL +0 -0
letta_client/agents/client.py
CHANGED
|
@@ -244,6 +244,8 @@ class AgentsClient:
|
|
|
244
244
|
enable_sleeptime: typing.Optional[bool] = OMIT,
|
|
245
245
|
response_format: typing.Optional[CreateAgentRequestResponseFormat] = OMIT,
|
|
246
246
|
timezone: typing.Optional[str] = OMIT,
|
|
247
|
+
max_files_open: typing.Optional[int] = OMIT,
|
|
248
|
+
per_file_view_window_char_limit: typing.Optional[int] = OMIT,
|
|
247
249
|
request_options: typing.Optional[RequestOptions] = None,
|
|
248
250
|
) -> AgentState:
|
|
249
251
|
"""
|
|
@@ -368,6 +370,12 @@ class AgentsClient:
|
|
|
368
370
|
timezone : typing.Optional[str]
|
|
369
371
|
The timezone of the agent (IANA format).
|
|
370
372
|
|
|
373
|
+
max_files_open : typing.Optional[int]
|
|
374
|
+
Maximum number of files that can be open at once for this agent. Setting this too high may exceed the context window, which will break the agent.
|
|
375
|
+
|
|
376
|
+
per_file_view_window_char_limit : typing.Optional[int]
|
|
377
|
+
The per-file view window character limit for this agent. Setting this too high may exceed the context window, which will break the agent.
|
|
378
|
+
|
|
371
379
|
request_options : typing.Optional[RequestOptions]
|
|
372
380
|
Request-specific configuration.
|
|
373
381
|
|
|
@@ -441,6 +449,8 @@ class AgentsClient:
|
|
|
441
449
|
object_=response_format, annotation=CreateAgentRequestResponseFormat, direction="write"
|
|
442
450
|
),
|
|
443
451
|
"timezone": timezone,
|
|
452
|
+
"max_files_open": max_files_open,
|
|
453
|
+
"per_file_view_window_char_limit": per_file_view_window_char_limit,
|
|
444
454
|
},
|
|
445
455
|
headers={
|
|
446
456
|
"content-type": "application/json",
|
|
@@ -827,6 +837,8 @@ class AgentsClient:
|
|
|
827
837
|
last_run_completion: typing.Optional[dt.datetime] = OMIT,
|
|
828
838
|
last_run_duration_ms: typing.Optional[int] = OMIT,
|
|
829
839
|
timezone: typing.Optional[str] = OMIT,
|
|
840
|
+
max_files_open: typing.Optional[int] = OMIT,
|
|
841
|
+
per_file_view_window_char_limit: typing.Optional[int] = OMIT,
|
|
830
842
|
request_options: typing.Optional[RequestOptions] = None,
|
|
831
843
|
) -> AgentState:
|
|
832
844
|
"""
|
|
@@ -911,6 +923,12 @@ class AgentsClient:
|
|
|
911
923
|
timezone : typing.Optional[str]
|
|
912
924
|
The timezone of the agent (IANA format).
|
|
913
925
|
|
|
926
|
+
max_files_open : typing.Optional[int]
|
|
927
|
+
Maximum number of files that can be open at once for this agent. Setting this too high may exceed the context window, which will break the agent.
|
|
928
|
+
|
|
929
|
+
per_file_view_window_char_limit : typing.Optional[int]
|
|
930
|
+
The per-file view window character limit for this agent. Setting this too high may exceed the context window, which will break the agent.
|
|
931
|
+
|
|
914
932
|
request_options : typing.Optional[RequestOptions]
|
|
915
933
|
Request-specific configuration.
|
|
916
934
|
|
|
@@ -968,6 +986,8 @@ class AgentsClient:
|
|
|
968
986
|
"last_run_completion": last_run_completion,
|
|
969
987
|
"last_run_duration_ms": last_run_duration_ms,
|
|
970
988
|
"timezone": timezone,
|
|
989
|
+
"max_files_open": max_files_open,
|
|
990
|
+
"per_file_view_window_char_limit": per_file_view_window_char_limit,
|
|
971
991
|
},
|
|
972
992
|
headers={
|
|
973
993
|
"content-type": "application/json",
|
|
@@ -1417,6 +1437,8 @@ class AsyncAgentsClient:
|
|
|
1417
1437
|
enable_sleeptime: typing.Optional[bool] = OMIT,
|
|
1418
1438
|
response_format: typing.Optional[CreateAgentRequestResponseFormat] = OMIT,
|
|
1419
1439
|
timezone: typing.Optional[str] = OMIT,
|
|
1440
|
+
max_files_open: typing.Optional[int] = OMIT,
|
|
1441
|
+
per_file_view_window_char_limit: typing.Optional[int] = OMIT,
|
|
1420
1442
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1421
1443
|
) -> AgentState:
|
|
1422
1444
|
"""
|
|
@@ -1541,6 +1563,12 @@ class AsyncAgentsClient:
|
|
|
1541
1563
|
timezone : typing.Optional[str]
|
|
1542
1564
|
The timezone of the agent (IANA format).
|
|
1543
1565
|
|
|
1566
|
+
max_files_open : typing.Optional[int]
|
|
1567
|
+
Maximum number of files that can be open at once for this agent. Setting this too high may exceed the context window, which will break the agent.
|
|
1568
|
+
|
|
1569
|
+
per_file_view_window_char_limit : typing.Optional[int]
|
|
1570
|
+
The per-file view window character limit for this agent. Setting this too high may exceed the context window, which will break the agent.
|
|
1571
|
+
|
|
1544
1572
|
request_options : typing.Optional[RequestOptions]
|
|
1545
1573
|
Request-specific configuration.
|
|
1546
1574
|
|
|
@@ -1622,6 +1650,8 @@ class AsyncAgentsClient:
|
|
|
1622
1650
|
object_=response_format, annotation=CreateAgentRequestResponseFormat, direction="write"
|
|
1623
1651
|
),
|
|
1624
1652
|
"timezone": timezone,
|
|
1653
|
+
"max_files_open": max_files_open,
|
|
1654
|
+
"per_file_view_window_char_limit": per_file_view_window_char_limit,
|
|
1625
1655
|
},
|
|
1626
1656
|
headers={
|
|
1627
1657
|
"content-type": "application/json",
|
|
@@ -2048,6 +2078,8 @@ class AsyncAgentsClient:
|
|
|
2048
2078
|
last_run_completion: typing.Optional[dt.datetime] = OMIT,
|
|
2049
2079
|
last_run_duration_ms: typing.Optional[int] = OMIT,
|
|
2050
2080
|
timezone: typing.Optional[str] = OMIT,
|
|
2081
|
+
max_files_open: typing.Optional[int] = OMIT,
|
|
2082
|
+
per_file_view_window_char_limit: typing.Optional[int] = OMIT,
|
|
2051
2083
|
request_options: typing.Optional[RequestOptions] = None,
|
|
2052
2084
|
) -> AgentState:
|
|
2053
2085
|
"""
|
|
@@ -2132,6 +2164,12 @@ class AsyncAgentsClient:
|
|
|
2132
2164
|
timezone : typing.Optional[str]
|
|
2133
2165
|
The timezone of the agent (IANA format).
|
|
2134
2166
|
|
|
2167
|
+
max_files_open : typing.Optional[int]
|
|
2168
|
+
Maximum number of files that can be open at once for this agent. Setting this too high may exceed the context window, which will break the agent.
|
|
2169
|
+
|
|
2170
|
+
per_file_view_window_char_limit : typing.Optional[int]
|
|
2171
|
+
The per-file view window character limit for this agent. Setting this too high may exceed the context window, which will break the agent.
|
|
2172
|
+
|
|
2135
2173
|
request_options : typing.Optional[RequestOptions]
|
|
2136
2174
|
Request-specific configuration.
|
|
2137
2175
|
|
|
@@ -2197,6 +2235,8 @@ class AsyncAgentsClient:
|
|
|
2197
2235
|
"last_run_completion": last_run_completion,
|
|
2198
2236
|
"last_run_duration_ms": last_run_duration_ms,
|
|
2199
2237
|
"timezone": timezone,
|
|
2238
|
+
"max_files_open": max_files_open,
|
|
2239
|
+
"per_file_view_window_char_limit": per_file_view_window_char_limit,
|
|
2200
2240
|
},
|
|
2201
2241
|
headers={
|
|
2202
2242
|
"content-type": "application/json",
|
|
@@ -24,7 +24,7 @@ class BaseClientWrapper:
|
|
|
24
24
|
headers: typing.Dict[str, str] = {
|
|
25
25
|
"X-Fern-Language": "Python",
|
|
26
26
|
"X-Fern-SDK-Name": "letta-client",
|
|
27
|
-
"X-Fern-SDK-Version": "0.1.
|
|
27
|
+
"X-Fern-SDK-Version": "0.1.210",
|
|
28
28
|
}
|
|
29
29
|
if self._project is not None:
|
|
30
30
|
headers["X-Project"] = self._project
|
|
@@ -185,6 +185,16 @@ class AgentState(UncheckedBaseModel):
|
|
|
185
185
|
The timezone of the agent (IANA format).
|
|
186
186
|
"""
|
|
187
187
|
|
|
188
|
+
max_files_open: typing.Optional[int] = pydantic.Field(default=None)
|
|
189
|
+
"""
|
|
190
|
+
Maximum number of files that can be open at once for this agent. Setting this too high may exceed the context window, which will break the agent.
|
|
191
|
+
"""
|
|
192
|
+
|
|
193
|
+
per_file_view_window_char_limit: typing.Optional[int] = pydantic.Field(default=None)
|
|
194
|
+
"""
|
|
195
|
+
The per-file view window character limit for this agent. Setting this too high may exceed the context window, which will break the agent.
|
|
196
|
+
"""
|
|
197
|
+
|
|
188
198
|
if IS_PYDANTIC_V2:
|
|
189
199
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
190
200
|
else:
|
|
@@ -2,7 +2,7 @@ letta_client/__init__.py,sha256=DpCoPhi5qy7K-MmczqULa30OTff96XkneWc4tYISq_8,1916
|
|
|
2
2
|
letta_client/agents/__init__.py,sha256=i9PmBueIWESDLqmpzWt1oZVgZNr1rNkO6j0pl5sgvGo,2049
|
|
3
3
|
letta_client/agents/blocks/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
4
4
|
letta_client/agents/blocks/client.py,sha256=4UGPYxfGwNN3ZW-SkIdfVZK6cvCcumVAw0_AM8OmoBY,25046
|
|
5
|
-
letta_client/agents/client.py,sha256=
|
|
5
|
+
letta_client/agents/client.py,sha256=A1hsOq4KNJiZdkOgPA5ceWlsx8W4yCt3S3d2K-ID_i8,96457
|
|
6
6
|
letta_client/agents/context/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
7
7
|
letta_client/agents/context/client.py,sha256=O1gxStQyfzXi4MblatWalLTWM425gS_fndW3W_es08U,4887
|
|
8
8
|
letta_client/agents/core_memory/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
@@ -71,7 +71,7 @@ letta_client/client_side_access_tokens/types/client_side_access_tokens_list_clie
|
|
|
71
71
|
letta_client/client_side_access_tokens/types/client_side_access_tokens_list_client_side_access_tokens_response_tokens_item_policy_data_item_access_item.py,sha256=kNHfEWFl7u71Pu8NPqutod0a2NXfvq8il05Hqm0iBB4,284
|
|
72
72
|
letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
|
|
73
73
|
letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
|
74
|
-
letta_client/core/client_wrapper.py,sha256=
|
|
74
|
+
letta_client/core/client_wrapper.py,sha256=dRnRfRWKrdVYSyjvy49jGDWDMuA3oJdNEcelUtNSpoQ,2336
|
|
75
75
|
letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
76
76
|
letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
77
77
|
letta_client/core/http_client.py,sha256=Z77OIxIbL4OAB2IDqjRq_sYa5yNYAWfmdhdCSSvh6Y4,19552
|
|
@@ -175,7 +175,7 @@ letta_client/types/action_response_model.py,sha256=yq2Fd9UU8j7vvtE3VqXUoRRvDzWcf
|
|
|
175
175
|
letta_client/types/agent_environment_variable.py,sha256=vutZLcR0yETltgOZ7E_o9kR4vOdBxybVL9lzXSux75w,1698
|
|
176
176
|
letta_client/types/agent_schema.py,sha256=uTSjFAsnEYdOX-PRD2vHbn69JBe8GKbctvlDOP85k_U,1784
|
|
177
177
|
letta_client/types/agent_schema_tool_rules_item.py,sha256=TTP7uKYPSe-EAl4p03j0Kd-W9tG5T6gfaWIUBAOVv9U,482
|
|
178
|
-
letta_client/types/agent_state.py,sha256=
|
|
178
|
+
letta_client/types/agent_state.py,sha256=FmBHvNc8H6Az8_8N0wpI4tH9syDkfd0i3JCgHofyFWo,6546
|
|
179
179
|
letta_client/types/agent_state_response_format.py,sha256=HISBgCumQxw6nQeDUMBu-IlghaLeWRb7BHHNaz_e8Hc,377
|
|
180
180
|
letta_client/types/agent_state_tool_rules_item.py,sha256=jyh3KFcVWnw2kcDgr3M4aXagXpVshOoMRhoC6JhDaSM,728
|
|
181
181
|
letta_client/types/agent_type.py,sha256=4_JSgy0zfiqtUcKh5XMfRDYaablo4RuzUmIstRZ2FsI,370
|
|
@@ -428,6 +428,6 @@ letta_client/types/web_search_options_user_location_approximate.py,sha256=Ywk01J
|
|
|
428
428
|
letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
|
|
429
429
|
letta_client/voice/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
430
430
|
letta_client/voice/client.py,sha256=47iQYCuW_qpKI4hM3pYVxn3hw7kgQj3emU1_oRpkRMA,5811
|
|
431
|
-
letta_client-0.1.
|
|
432
|
-
letta_client-0.1.
|
|
433
|
-
letta_client-0.1.
|
|
431
|
+
letta_client-0.1.210.dist-info/METADATA,sha256=USzjF6PiIRSoqX4fr9Pxf9xmxncgm_rD4gpj2vgob8Y,5177
|
|
432
|
+
letta_client-0.1.210.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
433
|
+
letta_client-0.1.210.dist-info/RECORD,,
|
|
File without changes
|