Skip to content

Commit a44125d

Browse files
committed
SDK regeneration
1 parent ef0b0e4 commit a44125d

File tree

6 files changed

+68
-4
lines changed

6 files changed

+68
-4
lines changed

src/zep_cloud/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
EpisodeMentions,
2323
EpisodeResponse,
2424
Fact,
25+
FactRatingExamples,
2526
FactRatingInstruction,
2627
FactsResponse,
2728
Graph,
@@ -33,6 +34,7 @@
3334
Message,
3435
MessageListResponse,
3536
ModelsFactRatingExamples,
37+
ModelsFactRatingInstruction,
3638
Reranker,
3739
RoleType,
3840
SearchFilters,
@@ -72,6 +74,7 @@
7274
"EpisodeMentions",
7375
"EpisodeResponse",
7476
"Fact",
77+
"FactRatingExamples",
7578
"FactRatingInstruction",
7679
"FactsResponse",
7780
"Graph",
@@ -84,6 +87,7 @@
8487
"Message",
8588
"MessageListResponse",
8689
"ModelsFactRatingExamples",
90+
"ModelsFactRatingInstruction",
8791
"NotFoundError",
8892
"Reranker",
8993
"RoleType",

src/zep_cloud/types/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from .episode_mentions import EpisodeMentions
2222
from .episode_response import EpisodeResponse
2323
from .fact import Fact
24+
from .fact_rating_examples import FactRatingExamples
2425
from .fact_rating_instruction import FactRatingInstruction
2526
from .facts_response import FactsResponse
2627
from .graph import Graph
@@ -32,6 +33,7 @@
3233
from .message import Message
3334
from .message_list_response import MessageListResponse
3435
from .models_fact_rating_examples import ModelsFactRatingExamples
36+
from .models_fact_rating_instruction import ModelsFactRatingInstruction
3537
from .reranker import Reranker
3638
from .role_type import RoleType
3739
from .search_filters import SearchFilters
@@ -63,6 +65,7 @@
6365
"EpisodeMentions",
6466
"EpisodeResponse",
6567
"Fact",
68+
"FactRatingExamples",
6669
"FactRatingInstruction",
6770
"FactsResponse",
6871
"Graph",
@@ -74,6 +77,7 @@
7477
"Message",
7578
"MessageListResponse",
7679
"ModelsFactRatingExamples",
80+
"ModelsFactRatingInstruction",
7781
"Reranker",
7882
"RoleType",
7983
"SearchFilters",
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
import typing
4+
5+
import pydantic
6+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
7+
8+
9+
class FactRatingExamples(UniversalBaseModel):
10+
high: typing.Optional[str] = None
11+
low: typing.Optional[str] = None
12+
medium: typing.Optional[str] = None
13+
14+
if IS_PYDANTIC_V2:
15+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
16+
else:
17+
18+
class Config:
19+
frozen = True
20+
smart_union = True
21+
extra = pydantic.Extra.allow

src/zep_cloud/types/fact_rating_instruction.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
import pydantic
66
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
7-
from .models_fact_rating_examples import ModelsFactRatingExamples
7+
from .fact_rating_examples import FactRatingExamples
88

99

1010
class FactRatingInstruction(UniversalBaseModel):
11-
examples: typing.Optional[ModelsFactRatingExamples] = pydantic.Field(default=None)
11+
examples: typing.Optional[FactRatingExamples] = pydantic.Field(default=None)
1212
"""
1313
Examples is a list of examples that demonstrate how facts might be rated based on your instruction. You should provide
1414
an example of a highly rated example, a low rated example, and a medium (or in between example). For example, if you are rating
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
import typing
4+
5+
import pydantic
6+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
7+
from .models_fact_rating_examples import ModelsFactRatingExamples
8+
9+
10+
class ModelsFactRatingInstruction(UniversalBaseModel):
11+
examples: typing.Optional[ModelsFactRatingExamples] = pydantic.Field(default=None)
12+
"""
13+
Examples is a list of examples that demonstrate how facts might be rated based on your instruction. You should provide
14+
an example of a highly rated example, a low rated example, and a medium (or in between example). For example, if you are rating
15+
based on relevance to a trip planning application, your examples might be:
16+
High: "Joe's dream vacation is Bali"
17+
Medium: "Joe has a fear of flying",
18+
Low: "Joe's favorite food is Japanese",
19+
"""
20+
21+
instruction: typing.Optional[str] = pydantic.Field(default=None)
22+
"""
23+
A string describing how to rate facts as they apply to your application. A trip planning application may
24+
use something like "relevancy to planning a trip, the user's preferences when traveling,
25+
or the user's travel history."
26+
"""
27+
28+
if IS_PYDANTIC_V2:
29+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
30+
else:
31+
32+
class Config:
33+
frozen = True
34+
smart_union = True
35+
extra = pydantic.Extra.allow

src/zep_cloud/types/user.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
import typing_extensions
77
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
88
from ..core.serialization import FieldMetadata
9-
from .fact_rating_instruction import FactRatingInstruction
9+
from .models_fact_rating_instruction import ModelsFactRatingInstruction
1010

1111

1212
class User(UniversalBaseModel):
1313
created_at: typing.Optional[str] = None
1414
deleted_at: typing.Optional[str] = None
1515
email: typing.Optional[str] = None
16-
fact_rating_instruction: typing.Optional[FactRatingInstruction] = None
16+
fact_rating_instruction: typing.Optional[ModelsFactRatingInstruction] = None
1717
first_name: typing.Optional[str] = None
1818
id: typing.Optional[int] = None
1919
last_name: typing.Optional[str] = None

0 commit comments

Comments
 (0)