Skip to content

Commit

Permalink
Relevant facts (#197)
Browse files Browse the repository at this point in the history
* SDK regeneration

* SDK regeneration

* SDK regeneration

* chore: Bump version

---------

Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
  • Loading branch information
paul-paliychuk and fern-api[bot] authored Jul 2, 2024
1 parent 7d9e7bd commit 4d34635
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "zep-cloud"
version = "1.0.5"
version = "1.0.6"
description = ""
readme = "README.md"
authors = []
Expand Down
2 changes: 1 addition & 1 deletion src/zep_cloud/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "zep-cloud",
"X-Fern-SDK-Version": "1.0.5",
"X-Fern-SDK-Version": "1.0.6",
}
headers["Authorization"] = f"Api-Key {self.api_key}"
return headers
Expand Down
3 changes: 3 additions & 0 deletions src/zep_cloud/types/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from ..core.datetime_utils import serialize_datetime
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
from .fact import Fact
from .message import Message
from .summary import Summary

Expand All @@ -13,6 +14,7 @@ class Memory(pydantic_v1.BaseModel):
facts: typing.Optional[typing.List[str]] = pydantic_v1.Field(default=None)
"""
Most recent list of facts derived from the session. Included only with perpetual memory type.
Deprecated: Facts will be deprecated in future releases and relevant_facts should be used instead.
"""

messages: typing.Optional[typing.List[Message]] = pydantic_v1.Field(default=None)
Expand All @@ -25,6 +27,7 @@ class Memory(pydantic_v1.BaseModel):
A dictionary containing metadata associated with the memory.
"""

relevant_facts: typing.Optional[typing.List[Fact]] = None
relevant_summaries: typing.Optional[typing.List[Summary]] = pydantic_v1.Field(default=None)
"""
Summary list result from Summary Retriever Memory Type.
Expand Down

0 comments on commit 4d34635

Please sign in to comment.