letta-client 0.1.16__py3-none-any.whl → 0.1.17__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/__init__.py +0 -4
- letta_client/agents/__init__.py +1 -12
- letta_client/agents/archival_memory/client.py +7 -132
- letta_client/agents/client.py +14 -18
- letta_client/agents/core_memory/client.py +17 -144
- letta_client/agents/memory_variables/client.py +2 -2
- letta_client/agents/messages/client.py +12 -12
- letta_client/core/client_wrapper.py +1 -1
- letta_client/providers/client.py +74 -74
- letta_client/tools/client.py +0 -120
- letta_client/types/__init__.py +0 -4
- letta_client/types/embedding_config_embedding_endpoint_type.py +1 -0
- letta_client/types/letta_schemas_message_message.py +5 -0
- letta_client/types/llm_config_model_endpoint_type.py +1 -0
- {letta_client-0.1.16.dist-info → letta_client-0.1.17.dist-info}/METADATA +2 -2
- {letta_client-0.1.16.dist-info → letta_client-0.1.17.dist-info}/RECORD +17 -21
- letta_client/agents/recall_memory/__init__.py +0 -2
- letta_client/agents/recall_memory/client.py +0 -147
- letta_client/types/archival_memory_summary.py +0 -22
- letta_client/types/recall_memory_summary.py +0 -22
- {letta_client-0.1.16.dist-info → letta_client-0.1.17.dist-info}/WHEEL +0 -0
letta_client/__init__.py
CHANGED
|
@@ -11,7 +11,6 @@ from .types import (
|
|
|
11
11
|
AppAuthScheme,
|
|
12
12
|
AppAuthSchemeAuthMode,
|
|
13
13
|
AppModel,
|
|
14
|
-
ArchivalMemorySummary,
|
|
15
14
|
AssistantFile,
|
|
16
15
|
AssistantMessageInput,
|
|
17
16
|
AssistantMessageOutput,
|
|
@@ -89,7 +88,6 @@ from .types import (
|
|
|
89
88
|
Passage,
|
|
90
89
|
Provider,
|
|
91
90
|
ReasoningMessage,
|
|
92
|
-
RecallMemorySummary,
|
|
93
91
|
ResponseFormat,
|
|
94
92
|
Run,
|
|
95
93
|
SandboxConfig,
|
|
@@ -174,7 +172,6 @@ __all__ = [
|
|
|
174
172
|
"AppAuthScheme",
|
|
175
173
|
"AppAuthSchemeAuthMode",
|
|
176
174
|
"AppModel",
|
|
177
|
-
"ArchivalMemorySummary",
|
|
178
175
|
"AssistantFile",
|
|
179
176
|
"AssistantMessageInput",
|
|
180
177
|
"AssistantMessageOutput",
|
|
@@ -259,7 +256,6 @@ __all__ = [
|
|
|
259
256
|
"Passage",
|
|
260
257
|
"Provider",
|
|
261
258
|
"ReasoningMessage",
|
|
262
|
-
"RecallMemorySummary",
|
|
263
259
|
"ResponseFormat",
|
|
264
260
|
"Run",
|
|
265
261
|
"SandboxConfig",
|
letta_client/agents/__init__.py
CHANGED
|
@@ -17,17 +17,7 @@ from .types import (
|
|
|
17
17
|
CreateAgentRequestToolRulesItem,
|
|
18
18
|
UpdateAgentToolRulesItem,
|
|
19
19
|
)
|
|
20
|
-
from . import
|
|
21
|
-
archival_memory,
|
|
22
|
-
context,
|
|
23
|
-
core_memory,
|
|
24
|
-
memory_variables,
|
|
25
|
-
messages,
|
|
26
|
-
recall_memory,
|
|
27
|
-
sources,
|
|
28
|
-
templates,
|
|
29
|
-
tools,
|
|
30
|
-
)
|
|
20
|
+
from . import archival_memory, context, core_memory, memory_variables, messages, sources, templates, tools
|
|
31
21
|
from .memory_variables import MemoryVariablesGetResponse
|
|
32
22
|
from .messages import (
|
|
33
23
|
LettaStreamingResponse,
|
|
@@ -74,7 +64,6 @@ __all__ = [
|
|
|
74
64
|
"core_memory",
|
|
75
65
|
"memory_variables",
|
|
76
66
|
"messages",
|
|
77
|
-
"recall_memory",
|
|
78
67
|
"sources",
|
|
79
68
|
"templates",
|
|
80
69
|
"tools",
|
|
@@ -3,14 +3,13 @@
|
|
|
3
3
|
import typing
|
|
4
4
|
from ...core.client_wrapper import SyncClientWrapper
|
|
5
5
|
from ...core.request_options import RequestOptions
|
|
6
|
-
from ...types.
|
|
6
|
+
from ...types.passage import Passage
|
|
7
7
|
from ...core.jsonable_encoder import jsonable_encoder
|
|
8
8
|
from ...core.unchecked_base_model import construct_type
|
|
9
9
|
from ...errors.unprocessable_entity_error import UnprocessableEntityError
|
|
10
10
|
from ...types.http_validation_error import HttpValidationError
|
|
11
11
|
from json.decoder import JSONDecodeError
|
|
12
12
|
from ...core.api_error import ApiError
|
|
13
|
-
from ...types.passage import Passage
|
|
14
13
|
from ...core.client_wrapper import AsyncClientWrapper
|
|
15
14
|
|
|
16
15
|
# this is used as the default value for optional parameters
|
|
@@ -21,64 +20,6 @@ class ArchivalMemoryClient:
|
|
|
21
20
|
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
22
21
|
self._client_wrapper = client_wrapper
|
|
23
22
|
|
|
24
|
-
def get_summary(
|
|
25
|
-
self, agent_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
26
|
-
) -> ArchivalMemorySummary:
|
|
27
|
-
"""
|
|
28
|
-
Retrieve the summary of the archival memory of a specific agent.
|
|
29
|
-
|
|
30
|
-
Parameters
|
|
31
|
-
----------
|
|
32
|
-
agent_id : str
|
|
33
|
-
|
|
34
|
-
request_options : typing.Optional[RequestOptions]
|
|
35
|
-
Request-specific configuration.
|
|
36
|
-
|
|
37
|
-
Returns
|
|
38
|
-
-------
|
|
39
|
-
ArchivalMemorySummary
|
|
40
|
-
Successful Response
|
|
41
|
-
|
|
42
|
-
Examples
|
|
43
|
-
--------
|
|
44
|
-
from letta_client import Letta
|
|
45
|
-
|
|
46
|
-
client = Letta(
|
|
47
|
-
token="YOUR_TOKEN",
|
|
48
|
-
)
|
|
49
|
-
client.agents.archival_memory.get_summary(
|
|
50
|
-
agent_id="agent_id",
|
|
51
|
-
)
|
|
52
|
-
"""
|
|
53
|
-
_response = self._client_wrapper.httpx_client.request(
|
|
54
|
-
f"v1/agents/{jsonable_encoder(agent_id)}/memory/archival",
|
|
55
|
-
method="GET",
|
|
56
|
-
request_options=request_options,
|
|
57
|
-
)
|
|
58
|
-
try:
|
|
59
|
-
if 200 <= _response.status_code < 300:
|
|
60
|
-
return typing.cast(
|
|
61
|
-
ArchivalMemorySummary,
|
|
62
|
-
construct_type(
|
|
63
|
-
type_=ArchivalMemorySummary, # type: ignore
|
|
64
|
-
object_=_response.json(),
|
|
65
|
-
),
|
|
66
|
-
)
|
|
67
|
-
if _response.status_code == 422:
|
|
68
|
-
raise UnprocessableEntityError(
|
|
69
|
-
typing.cast(
|
|
70
|
-
HttpValidationError,
|
|
71
|
-
construct_type(
|
|
72
|
-
type_=HttpValidationError, # type: ignore
|
|
73
|
-
object_=_response.json(),
|
|
74
|
-
),
|
|
75
|
-
)
|
|
76
|
-
)
|
|
77
|
-
_response_json = _response.json()
|
|
78
|
-
except JSONDecodeError:
|
|
79
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
80
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
81
|
-
|
|
82
23
|
def list(
|
|
83
24
|
self,
|
|
84
25
|
agent_id: str,
|
|
@@ -124,7 +65,7 @@ class ArchivalMemoryClient:
|
|
|
124
65
|
)
|
|
125
66
|
"""
|
|
126
67
|
_response = self._client_wrapper.httpx_client.request(
|
|
127
|
-
f"v1/agents/{jsonable_encoder(agent_id)}/
|
|
68
|
+
f"v1/agents/{jsonable_encoder(agent_id)}/archival_memory",
|
|
128
69
|
method="GET",
|
|
129
70
|
params={
|
|
130
71
|
"after": after,
|
|
@@ -191,7 +132,7 @@ class ArchivalMemoryClient:
|
|
|
191
132
|
)
|
|
192
133
|
"""
|
|
193
134
|
_response = self._client_wrapper.httpx_client.request(
|
|
194
|
-
f"v1/agents/{jsonable_encoder(agent_id)}/
|
|
135
|
+
f"v1/agents/{jsonable_encoder(agent_id)}/archival_memory",
|
|
195
136
|
method="POST",
|
|
196
137
|
json={
|
|
197
138
|
"text": text,
|
|
@@ -259,7 +200,7 @@ class ArchivalMemoryClient:
|
|
|
259
200
|
)
|
|
260
201
|
"""
|
|
261
202
|
_response = self._client_wrapper.httpx_client.request(
|
|
262
|
-
f"v1/agents/{jsonable_encoder(agent_id)}/
|
|
203
|
+
f"v1/agents/{jsonable_encoder(agent_id)}/archival_memory/{jsonable_encoder(memory_id)}",
|
|
263
204
|
method="DELETE",
|
|
264
205
|
request_options=request_options,
|
|
265
206
|
)
|
|
@@ -292,72 +233,6 @@ class AsyncArchivalMemoryClient:
|
|
|
292
233
|
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
293
234
|
self._client_wrapper = client_wrapper
|
|
294
235
|
|
|
295
|
-
async def get_summary(
|
|
296
|
-
self, agent_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
297
|
-
) -> ArchivalMemorySummary:
|
|
298
|
-
"""
|
|
299
|
-
Retrieve the summary of the archival memory of a specific agent.
|
|
300
|
-
|
|
301
|
-
Parameters
|
|
302
|
-
----------
|
|
303
|
-
agent_id : str
|
|
304
|
-
|
|
305
|
-
request_options : typing.Optional[RequestOptions]
|
|
306
|
-
Request-specific configuration.
|
|
307
|
-
|
|
308
|
-
Returns
|
|
309
|
-
-------
|
|
310
|
-
ArchivalMemorySummary
|
|
311
|
-
Successful Response
|
|
312
|
-
|
|
313
|
-
Examples
|
|
314
|
-
--------
|
|
315
|
-
import asyncio
|
|
316
|
-
|
|
317
|
-
from letta_client import AsyncLetta
|
|
318
|
-
|
|
319
|
-
client = AsyncLetta(
|
|
320
|
-
token="YOUR_TOKEN",
|
|
321
|
-
)
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
async def main() -> None:
|
|
325
|
-
await client.agents.archival_memory.get_summary(
|
|
326
|
-
agent_id="agent_id",
|
|
327
|
-
)
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
asyncio.run(main())
|
|
331
|
-
"""
|
|
332
|
-
_response = await self._client_wrapper.httpx_client.request(
|
|
333
|
-
f"v1/agents/{jsonable_encoder(agent_id)}/memory/archival",
|
|
334
|
-
method="GET",
|
|
335
|
-
request_options=request_options,
|
|
336
|
-
)
|
|
337
|
-
try:
|
|
338
|
-
if 200 <= _response.status_code < 300:
|
|
339
|
-
return typing.cast(
|
|
340
|
-
ArchivalMemorySummary,
|
|
341
|
-
construct_type(
|
|
342
|
-
type_=ArchivalMemorySummary, # type: ignore
|
|
343
|
-
object_=_response.json(),
|
|
344
|
-
),
|
|
345
|
-
)
|
|
346
|
-
if _response.status_code == 422:
|
|
347
|
-
raise UnprocessableEntityError(
|
|
348
|
-
typing.cast(
|
|
349
|
-
HttpValidationError,
|
|
350
|
-
construct_type(
|
|
351
|
-
type_=HttpValidationError, # type: ignore
|
|
352
|
-
object_=_response.json(),
|
|
353
|
-
),
|
|
354
|
-
)
|
|
355
|
-
)
|
|
356
|
-
_response_json = _response.json()
|
|
357
|
-
except JSONDecodeError:
|
|
358
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
359
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
360
|
-
|
|
361
236
|
async def list(
|
|
362
237
|
self,
|
|
363
238
|
agent_id: str,
|
|
@@ -411,7 +286,7 @@ class AsyncArchivalMemoryClient:
|
|
|
411
286
|
asyncio.run(main())
|
|
412
287
|
"""
|
|
413
288
|
_response = await self._client_wrapper.httpx_client.request(
|
|
414
|
-
f"v1/agents/{jsonable_encoder(agent_id)}/
|
|
289
|
+
f"v1/agents/{jsonable_encoder(agent_id)}/archival_memory",
|
|
415
290
|
method="GET",
|
|
416
291
|
params={
|
|
417
292
|
"after": after,
|
|
@@ -486,7 +361,7 @@ class AsyncArchivalMemoryClient:
|
|
|
486
361
|
asyncio.run(main())
|
|
487
362
|
"""
|
|
488
363
|
_response = await self._client_wrapper.httpx_client.request(
|
|
489
|
-
f"v1/agents/{jsonable_encoder(agent_id)}/
|
|
364
|
+
f"v1/agents/{jsonable_encoder(agent_id)}/archival_memory",
|
|
490
365
|
method="POST",
|
|
491
366
|
json={
|
|
492
367
|
"text": text,
|
|
@@ -562,7 +437,7 @@ class AsyncArchivalMemoryClient:
|
|
|
562
437
|
asyncio.run(main())
|
|
563
438
|
"""
|
|
564
439
|
_response = await self._client_wrapper.httpx_client.request(
|
|
565
|
-
f"v1/agents/{jsonable_encoder(agent_id)}/
|
|
440
|
+
f"v1/agents/{jsonable_encoder(agent_id)}/archival_memory/{jsonable_encoder(memory_id)}",
|
|
566
441
|
method="DELETE",
|
|
567
442
|
request_options=request_options,
|
|
568
443
|
)
|
letta_client/agents/client.py
CHANGED
|
@@ -6,7 +6,6 @@ from .context.client import ContextClient
|
|
|
6
6
|
from .tools.client import ToolsClient
|
|
7
7
|
from .sources.client import SourcesClient
|
|
8
8
|
from .core_memory.client import CoreMemoryClient
|
|
9
|
-
from .recall_memory.client import RecallMemoryClient
|
|
10
9
|
from .archival_memory.client import ArchivalMemoryClient
|
|
11
10
|
from .messages.client import MessagesClient
|
|
12
11
|
from .templates.client import TemplatesClient
|
|
@@ -34,7 +33,6 @@ from .context.client import AsyncContextClient
|
|
|
34
33
|
from .tools.client import AsyncToolsClient
|
|
35
34
|
from .sources.client import AsyncSourcesClient
|
|
36
35
|
from .core_memory.client import AsyncCoreMemoryClient
|
|
37
|
-
from .recall_memory.client import AsyncRecallMemoryClient
|
|
38
36
|
from .archival_memory.client import AsyncArchivalMemoryClient
|
|
39
37
|
from .messages.client import AsyncMessagesClient
|
|
40
38
|
from .templates.client import AsyncTemplatesClient
|
|
@@ -51,7 +49,6 @@ class AgentsClient:
|
|
|
51
49
|
self.tools = ToolsClient(client_wrapper=self._client_wrapper)
|
|
52
50
|
self.sources = SourcesClient(client_wrapper=self._client_wrapper)
|
|
53
51
|
self.core_memory = CoreMemoryClient(client_wrapper=self._client_wrapper)
|
|
54
|
-
self.recall_memory = RecallMemoryClient(client_wrapper=self._client_wrapper)
|
|
55
52
|
self.archival_memory = ArchivalMemoryClient(client_wrapper=self._client_wrapper)
|
|
56
53
|
self.messages = MessagesClient(client_wrapper=self._client_wrapper)
|
|
57
54
|
self.templates = TemplatesClient(client_wrapper=self._client_wrapper)
|
|
@@ -166,7 +163,7 @@ class AgentsClient:
|
|
|
166
163
|
include_multi_agent_tools: typing.Optional[bool] = OMIT,
|
|
167
164
|
description: typing.Optional[str] = OMIT,
|
|
168
165
|
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
169
|
-
|
|
166
|
+
model: typing.Optional[str] = OMIT,
|
|
170
167
|
embedding: typing.Optional[str] = OMIT,
|
|
171
168
|
context_window_limit: typing.Optional[int] = OMIT,
|
|
172
169
|
embedding_chunk_size: typing.Optional[int] = OMIT,
|
|
@@ -174,7 +171,7 @@ class AgentsClient:
|
|
|
174
171
|
template: typing.Optional[bool] = OMIT,
|
|
175
172
|
project: typing.Optional[str] = OMIT,
|
|
176
173
|
tool_exec_environment_variables: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
|
|
177
|
-
|
|
174
|
+
memory_variables: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
|
|
178
175
|
request_options: typing.Optional[RequestOptions] = None,
|
|
179
176
|
) -> AgentState:
|
|
180
177
|
"""
|
|
@@ -233,7 +230,7 @@ class AgentsClient:
|
|
|
233
230
|
metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
234
231
|
The metadata of the agent.
|
|
235
232
|
|
|
236
|
-
|
|
233
|
+
model : typing.Optional[str]
|
|
237
234
|
The LLM configuration handle used by the agent, specified in the format provider/model-name, as an alternative to specifying llm_config.
|
|
238
235
|
|
|
239
236
|
embedding : typing.Optional[str]
|
|
@@ -257,7 +254,7 @@ class AgentsClient:
|
|
|
257
254
|
tool_exec_environment_variables : typing.Optional[typing.Dict[str, typing.Optional[str]]]
|
|
258
255
|
The environment variables for tool execution specific to this agent.
|
|
259
256
|
|
|
260
|
-
|
|
257
|
+
memory_variables : typing.Optional[typing.Dict[str, typing.Optional[str]]]
|
|
261
258
|
The variables that should be set for the agent.
|
|
262
259
|
|
|
263
260
|
request_options : typing.Optional[RequestOptions]
|
|
@@ -308,7 +305,7 @@ class AgentsClient:
|
|
|
308
305
|
"include_multi_agent_tools": include_multi_agent_tools,
|
|
309
306
|
"description": description,
|
|
310
307
|
"metadata_": metadata,
|
|
311
|
-
"
|
|
308
|
+
"model": model,
|
|
312
309
|
"embedding": embedding,
|
|
313
310
|
"context_window_limit": context_window_limit,
|
|
314
311
|
"embedding_chunk_size": embedding_chunk_size,
|
|
@@ -316,7 +313,7 @@ class AgentsClient:
|
|
|
316
313
|
"template": template,
|
|
317
314
|
"project": project,
|
|
318
315
|
"tool_exec_environment_variables": tool_exec_environment_variables,
|
|
319
|
-
"
|
|
316
|
+
"memory_variables": memory_variables,
|
|
320
317
|
},
|
|
321
318
|
headers={
|
|
322
319
|
"content-type": "application/json",
|
|
@@ -482,7 +479,7 @@ class AgentsClient:
|
|
|
482
479
|
request_options: typing.Optional[RequestOptions] = None,
|
|
483
480
|
) -> AgentState:
|
|
484
481
|
"""
|
|
485
|
-
Update an
|
|
482
|
+
Update an existing agent
|
|
486
483
|
|
|
487
484
|
Parameters
|
|
488
485
|
----------
|
|
@@ -745,7 +742,6 @@ class AsyncAgentsClient:
|
|
|
745
742
|
self.tools = AsyncToolsClient(client_wrapper=self._client_wrapper)
|
|
746
743
|
self.sources = AsyncSourcesClient(client_wrapper=self._client_wrapper)
|
|
747
744
|
self.core_memory = AsyncCoreMemoryClient(client_wrapper=self._client_wrapper)
|
|
748
|
-
self.recall_memory = AsyncRecallMemoryClient(client_wrapper=self._client_wrapper)
|
|
749
745
|
self.archival_memory = AsyncArchivalMemoryClient(client_wrapper=self._client_wrapper)
|
|
750
746
|
self.messages = AsyncMessagesClient(client_wrapper=self._client_wrapper)
|
|
751
747
|
self.templates = AsyncTemplatesClient(client_wrapper=self._client_wrapper)
|
|
@@ -868,7 +864,7 @@ class AsyncAgentsClient:
|
|
|
868
864
|
include_multi_agent_tools: typing.Optional[bool] = OMIT,
|
|
869
865
|
description: typing.Optional[str] = OMIT,
|
|
870
866
|
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
871
|
-
|
|
867
|
+
model: typing.Optional[str] = OMIT,
|
|
872
868
|
embedding: typing.Optional[str] = OMIT,
|
|
873
869
|
context_window_limit: typing.Optional[int] = OMIT,
|
|
874
870
|
embedding_chunk_size: typing.Optional[int] = OMIT,
|
|
@@ -876,7 +872,7 @@ class AsyncAgentsClient:
|
|
|
876
872
|
template: typing.Optional[bool] = OMIT,
|
|
877
873
|
project: typing.Optional[str] = OMIT,
|
|
878
874
|
tool_exec_environment_variables: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
|
|
879
|
-
|
|
875
|
+
memory_variables: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
|
|
880
876
|
request_options: typing.Optional[RequestOptions] = None,
|
|
881
877
|
) -> AgentState:
|
|
882
878
|
"""
|
|
@@ -935,7 +931,7 @@ class AsyncAgentsClient:
|
|
|
935
931
|
metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
936
932
|
The metadata of the agent.
|
|
937
933
|
|
|
938
|
-
|
|
934
|
+
model : typing.Optional[str]
|
|
939
935
|
The LLM configuration handle used by the agent, specified in the format provider/model-name, as an alternative to specifying llm_config.
|
|
940
936
|
|
|
941
937
|
embedding : typing.Optional[str]
|
|
@@ -959,7 +955,7 @@ class AsyncAgentsClient:
|
|
|
959
955
|
tool_exec_environment_variables : typing.Optional[typing.Dict[str, typing.Optional[str]]]
|
|
960
956
|
The environment variables for tool execution specific to this agent.
|
|
961
957
|
|
|
962
|
-
|
|
958
|
+
memory_variables : typing.Optional[typing.Dict[str, typing.Optional[str]]]
|
|
963
959
|
The variables that should be set for the agent.
|
|
964
960
|
|
|
965
961
|
request_options : typing.Optional[RequestOptions]
|
|
@@ -1018,7 +1014,7 @@ class AsyncAgentsClient:
|
|
|
1018
1014
|
"include_multi_agent_tools": include_multi_agent_tools,
|
|
1019
1015
|
"description": description,
|
|
1020
1016
|
"metadata_": metadata,
|
|
1021
|
-
"
|
|
1017
|
+
"model": model,
|
|
1022
1018
|
"embedding": embedding,
|
|
1023
1019
|
"context_window_limit": context_window_limit,
|
|
1024
1020
|
"embedding_chunk_size": embedding_chunk_size,
|
|
@@ -1026,7 +1022,7 @@ class AsyncAgentsClient:
|
|
|
1026
1022
|
"template": template,
|
|
1027
1023
|
"project": project,
|
|
1028
1024
|
"tool_exec_environment_variables": tool_exec_environment_variables,
|
|
1029
|
-
"
|
|
1025
|
+
"memory_variables": memory_variables,
|
|
1030
1026
|
},
|
|
1031
1027
|
headers={
|
|
1032
1028
|
"content-type": "application/json",
|
|
@@ -1208,7 +1204,7 @@ class AsyncAgentsClient:
|
|
|
1208
1204
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1209
1205
|
) -> AgentState:
|
|
1210
1206
|
"""
|
|
1211
|
-
Update an
|
|
1207
|
+
Update an existing agent
|
|
1212
1208
|
|
|
1213
1209
|
Parameters
|
|
1214
1210
|
----------
|