Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion .fernignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ README.md
.github
Makefile
.gitignore
LICENSE
LICENSE
.fern/replay.lock
.fern/replay.yml
.gitattributes
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.fern/replay.lock linguist-generated=true
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[project]
name = "zep-cloud"
version = "3.25.0"
version = "3.26.0"

[tool.poetry]
name = "zep-cloud"
version = "3.25.0"
version = "3.26.0"
description = ""
readme = "README.md"
authors = []
Expand Down
8 changes: 0 additions & 8 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1666,14 +1666,6 @@ Nested objects and arrays are not allowed.
<dl>
<dd>

**fact_uuid:** `typing.Optional[str]` — The uuid of the edge to add

</dd>
</dl>

<dl>
<dd>

**graph_id:** `typing.Optional[str]`

</dd>
Expand Down
2 changes: 2 additions & 0 deletions src/zep_cloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
AddThreadMessagesRequest,
AddThreadMessagesResponse,
AddTripleResponse,
AddedNode,
ApiError,
ApidataBatchAddItemRole,
ApidataBatchAddItemType,
Expand Down Expand Up @@ -101,6 +102,7 @@
"AddThreadMessagesRequest",
"AddThreadMessagesResponse",
"AddTripleResponse",
"AddedNode",
"ApiError",
"ApidataBatchAddItemRole",
"ApidataBatchAddItemType",
Expand Down
4 changes: 2 additions & 2 deletions src/zep_cloud/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ def __init__(

def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"User-Agent": "zep-cloud/3.25.0",
"User-Agent": "zep-cloud/3.26.0",
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "zep-cloud",
"X-Fern-SDK-Version": "3.25.0",
"X-Fern-SDK-Version": "3.26.0",
**(self.get_custom_headers() or {}),
}
headers["Authorization"] = f"Api-Key {self.api_key}"
Expand Down
10 changes: 0 additions & 10 deletions src/zep_cloud/graph/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,6 @@ def add_fact_triple(
created_at: typing.Optional[str] = OMIT,
edge_attributes: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
expired_at: typing.Optional[str] = OMIT,
fact_uuid: typing.Optional[str] = OMIT,
graph_id: typing.Optional[str] = OMIT,
invalid_at: typing.Optional[str] = OMIT,
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
Expand Down Expand Up @@ -469,9 +468,6 @@ def add_fact_triple(
expired_at : typing.Optional[str]
The time (if any) at which the edge expires

fact_uuid : typing.Optional[str]
The uuid of the edge to add

graph_id : typing.Optional[str]

invalid_at : typing.Optional[str]
Expand Down Expand Up @@ -552,7 +548,6 @@ def add_fact_triple(
created_at=created_at,
edge_attributes=edge_attributes,
expired_at=expired_at,
fact_uuid=fact_uuid,
graph_id=graph_id,
invalid_at=invalid_at,
metadata=metadata,
Expand Down Expand Up @@ -1564,7 +1559,6 @@ async def add_fact_triple(
created_at: typing.Optional[str] = OMIT,
edge_attributes: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
expired_at: typing.Optional[str] = OMIT,
fact_uuid: typing.Optional[str] = OMIT,
graph_id: typing.Optional[str] = OMIT,
invalid_at: typing.Optional[str] = OMIT,
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
Expand Down Expand Up @@ -1603,9 +1597,6 @@ async def add_fact_triple(
expired_at : typing.Optional[str]
The time (if any) at which the edge expires

fact_uuid : typing.Optional[str]
The uuid of the edge to add

graph_id : typing.Optional[str]

invalid_at : typing.Optional[str]
Expand Down Expand Up @@ -1694,7 +1685,6 @@ async def main() -> None:
created_at=created_at,
edge_attributes=edge_attributes,
expired_at=expired_at,
fact_uuid=fact_uuid,
graph_id=graph_id,
invalid_at=invalid_at,
metadata=metadata,
Expand Down
10 changes: 0 additions & 10 deletions src/zep_cloud/graph/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,6 @@ def add_fact_triple(
created_at: typing.Optional[str] = OMIT,
edge_attributes: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
expired_at: typing.Optional[str] = OMIT,
fact_uuid: typing.Optional[str] = OMIT,
graph_id: typing.Optional[str] = OMIT,
invalid_at: typing.Optional[str] = OMIT,
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
Expand Down Expand Up @@ -762,9 +761,6 @@ def add_fact_triple(
expired_at : typing.Optional[str]
The time (if any) at which the edge expires

fact_uuid : typing.Optional[str]
The uuid of the edge to add

graph_id : typing.Optional[str]

invalid_at : typing.Optional[str]
Expand Down Expand Up @@ -836,7 +832,6 @@ def add_fact_triple(
"expired_at": expired_at,
"fact": fact,
"fact_name": fact_name,
"fact_uuid": fact_uuid,
"graph_id": graph_id,
"invalid_at": invalid_at,
"metadata": metadata,
Expand Down Expand Up @@ -2532,7 +2527,6 @@ async def add_fact_triple(
created_at: typing.Optional[str] = OMIT,
edge_attributes: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
expired_at: typing.Optional[str] = OMIT,
fact_uuid: typing.Optional[str] = OMIT,
graph_id: typing.Optional[str] = OMIT,
invalid_at: typing.Optional[str] = OMIT,
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
Expand Down Expand Up @@ -2571,9 +2565,6 @@ async def add_fact_triple(
expired_at : typing.Optional[str]
The time (if any) at which the edge expires

fact_uuid : typing.Optional[str]
The uuid of the edge to add

graph_id : typing.Optional[str]

invalid_at : typing.Optional[str]
Expand Down Expand Up @@ -2645,7 +2636,6 @@ async def add_fact_triple(
"expired_at": expired_at,
"fact": fact,
"fact_name": fact_name,
"fact_uuid": fact_uuid,
"graph_id": graph_id,
"invalid_at": invalid_at,
"metadata": metadata,
Expand Down
2 changes: 2 additions & 0 deletions src/zep_cloud/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from .add_thread_messages_request import AddThreadMessagesRequest
from .add_thread_messages_response import AddThreadMessagesResponse
from .add_triple_response import AddTripleResponse
from .added_node import AddedNode
from .api_error import ApiError
from .apidata_batch_add_item_role import ApidataBatchAddItemRole
from .apidata_batch_add_item_type import ApidataBatchAddItemType
Expand Down Expand Up @@ -94,6 +95,7 @@
"AddThreadMessagesRequest",
"AddThreadMessagesResponse",
"AddTripleResponse",
"AddedNode",
"ApiError",
"ApidataBatchAddItemRole",
"ApidataBatchAddItemType",
Expand Down
10 changes: 0 additions & 10 deletions src/zep_cloud/types/add_node_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
import typing

import pydantic
import typing_extensions
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from ..core.serialization import FieldMetadata


class AddNodeItem(UniversalBaseModel):
Expand Down Expand Up @@ -42,14 +40,6 @@ class AddNodeItem(UniversalBaseModel):
A regional summary of the node.
"""

uuid_: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="uuid")] = pydantic.Field(default=None)
"""
Optional caller-supplied node UUID. When it matches an existing node the
node is upserted; when well-formed but unknown the node is created with
this UUID; when absent the server assigns one. This is the node's only
identity/dedup key -- there is no name-based resolution.
"""

if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
else:
Expand Down
8 changes: 4 additions & 4 deletions src/zep_cloud/types/add_nodes_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from .add_node_item import AddNodeItem
from .added_node import AddedNode


class AddNodesResponse(UniversalBaseModel):
nodes: typing.Optional[typing.List[AddNodeItem]] = pydantic.Field(default=None)
nodes: typing.Optional[typing.List[AddedNode]] = pydantic.Field(default=None)
"""
The accepted nodes, each carrying its resolved (server-assigned or
caller-supplied) UUID, in request order.
The accepted nodes, each carrying the UUID Zep assigned to it, in request
order.
"""

task_id: typing.Optional[str] = pydantic.Field(default=None)
Expand Down
54 changes: 54 additions & 0 deletions src/zep_cloud/types/added_node.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# This file was auto-generated by Fern from our API Definition.

import typing

import pydantic
import typing_extensions
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from ..core.serialization import FieldMetadata


class AddedNode(UniversalBaseModel):
attributes: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None)
"""
Additional attributes of the node.
"""

created_at: typing.Optional[str] = pydantic.Field(default=None)
"""
The node creation time.
"""

label: typing.Optional[str] = pydantic.Field(default=None)
"""
The node's entity type.
"""

metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None)
"""
Metadata attached to the node's shadow episode.
"""

name: str = pydantic.Field()
"""
The name of the node.
"""

summary: typing.Optional[str] = pydantic.Field(default=None)
"""
A regional summary of the node.
"""

uuid_: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="uuid")] = pydantic.Field(default=None)
"""
The node UUID, assigned by Zep.
"""

if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
else:

class Config:
frozen = True
smart_union = True
extra = pydantic.Extra.allow
Loading