You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: reference.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1462,7 +1462,7 @@ client.thread.delete(
1462
1462
<dl>
1463
1463
<dd>
1464
1464
1465
-
Returns most relevant context for a given thread.
1465
+
Returns most relevant context from the user graph (including memory from any/all past threads) based on the content of the past few messages of the given thread.
Returns most relevant context from the user graph (including memory from any/all past threads) based on the content of the past few messages of the given thread.
163
163
164
164
Parameters
165
165
----------
166
166
thread_id : str
167
-
The ID of the thread for which to retrieve context.
167
+
The ID of the current thread (for which context is being retrieved).
168
168
169
169
min_rating : typing.Optional[float]
170
170
The minimum rating by which to filter relevant facts.
@@ -272,7 +272,7 @@ def add_messages(
272
272
that are added to a user's graph.
273
273
274
274
return_context : typing.Optional[bool]
275
-
Optionally return memory context relevant to the most recent messages.
275
+
Optionally return context block relevant to the most recent messages.
276
276
277
277
request_options : typing.Optional[RequestOptions]
278
278
Request-specific configuration.
@@ -334,7 +334,7 @@ def add_messages_batch(
334
334
that are added to a user's graph.
335
335
336
336
return_context : typing.Optional[bool]
337
-
Optionally return memory context relevant to the most recent messages.
337
+
Optionally return context block relevant to the most recent messages.
Returns most relevant context from the user graph (including memory from any/all past threads) based on the content of the past few messages of the given thread.
541
541
542
542
Parameters
543
543
----------
544
544
thread_id : str
545
-
The ID of the thread for which to retrieve context.
545
+
The ID of the current thread (for which context is being retrieved).
546
546
547
547
min_rating : typing.Optional[float]
548
548
The minimum rating by which to filter relevant facts.
@@ -666,7 +666,7 @@ async def add_messages(
666
666
that are added to a user's graph.
667
667
668
668
return_context : typing.Optional[bool]
669
-
Optionally return memory context relevant to the most recent messages.
669
+
Optionally return context block relevant to the most recent messages.
670
670
671
671
request_options : typing.Optional[RequestOptions]
672
672
Request-specific configuration.
@@ -736,7 +736,7 @@ async def add_messages_batch(
736
736
that are added to a user's graph.
737
737
738
738
return_context : typing.Optional[bool]
739
-
Optionally return memory context relevant to the most recent messages.
739
+
Optionally return context block relevant to the most recent messages.
Returns most relevant context from the user graph (including memory from any/all past threads) based on the content of the past few messages of the given thread.
272
272
273
273
Parameters
274
274
----------
275
275
thread_id : str
276
-
The ID of the thread for which to retrieve context.
276
+
The ID of the current thread (for which context is being retrieved).
277
277
278
278
min_rating : typing.Optional[float]
279
279
The minimum rating by which to filter relevant facts.
@@ -450,7 +450,7 @@ def add_messages(
450
450
that are added to a user's graph.
451
451
452
452
return_context : typing.Optional[bool]
453
-
Optionally return memory context relevant to the most recent messages.
453
+
Optionally return context block relevant to the most recent messages.
454
454
455
455
request_options : typing.Optional[RequestOptions]
456
456
Request-specific configuration.
@@ -532,7 +532,7 @@ def add_messages_batch(
532
532
that are added to a user's graph.
533
533
534
534
return_context : typing.Optional[bool]
535
-
Optionally return memory context relevant to the most recent messages.
535
+
Optionally return context block relevant to the most recent messages.
Returns most relevant context from the user graph (including memory from any/all past threads) based on the content of the past few messages of the given thread.
833
833
834
834
Parameters
835
835
----------
836
836
thread_id : str
837
-
The ID of the thread for which to retrieve context.
837
+
The ID of the current thread (for which context is being retrieved).
838
838
839
839
min_rating : typing.Optional[float]
840
840
The minimum rating by which to filter relevant facts.
@@ -1011,7 +1011,7 @@ async def add_messages(
1011
1011
that are added to a user's graph.
1012
1012
1013
1013
return_context : typing.Optional[bool]
1014
-
Optionally return memory context relevant to the most recent messages.
1014
+
Optionally return context block relevant to the most recent messages.
Memory context containing relevant factsand entities for the session. Can be put into the prompt directly.
12
+
Context block containing relevant facts, entities, and messages/episodes from the user graph. Meant to be replaced in the system prompt on every chat turn.
0 commit comments