Skip to content

Commit

Permalink
SDK regeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Jan 17, 2025
1 parent 684b8c9 commit 224f844
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 106 deletions.
2 changes: 1 addition & 1 deletion reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -3339,7 +3339,7 @@ client.group.add(
<dl>
<dd>

**fact_rating_instruction:** `typing.Optional[ApidataFactRatingInstruction]` — UserIDs []string `json:"user_ids"`
**fact_rating_instruction:** `typing.Optional[FactRatingInstruction]` — UserIDs []string `json:"user_ids"`

</dd>
</dl>
Expand Down
8 changes: 2 additions & 6 deletions src/zep_cloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
ApidataDocumentCollection,
ApidataDocumentSearchResponse,
ApidataDocumentWithScore,
ApidataFactRatingExamples,
ApidataFactRatingInstruction,
ApidataGroupListResponse,
ClassifySessionRequest,
CreateDocumentRequest,
EndSessionResponse,
Expand All @@ -27,6 +24,7 @@
GraphSearchResults,
GraphSearchScope,
Group,
GroupListResponse,
Memory,
MemorySearchResult,
Message,
Expand Down Expand Up @@ -61,9 +59,6 @@
"ApidataDocumentCollection",
"ApidataDocumentSearchResponse",
"ApidataDocumentWithScore",
"ApidataFactRatingExamples",
"ApidataFactRatingInstruction",
"ApidataGroupListResponse",
"BadRequestError",
"ClassifySessionRequest",
"ConflictError",
Expand All @@ -83,6 +78,7 @@
"GraphSearchResults",
"GraphSearchScope",
"Group",
"GroupListResponse",
"InternalServerError",
"Memory",
"MemorySearchResult",
Expand Down
24 changes: 12 additions & 12 deletions src/zep_cloud/group/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
from ..errors.internal_server_error import InternalServerError
from ..errors.not_found_error import NotFoundError
from ..types.api_error import ApiError as types_api_error_ApiError
from ..types.apidata_fact_rating_instruction import ApidataFactRatingInstruction
from ..types.apidata_group_list_response import ApidataGroupListResponse
from ..types.fact_rating_instruction import FactRatingInstruction
from ..types.facts_response import FactsResponse
from ..types.group import Group
from ..types.group_list_response import GroupListResponse
from ..types.success_response import SuccessResponse

# this is used as the default value for optional parameters
Expand All @@ -31,7 +31,7 @@ def add(
*,
group_id: str,
description: typing.Optional[str] = OMIT,
fact_rating_instruction: typing.Optional[ApidataFactRatingInstruction] = OMIT,
fact_rating_instruction: typing.Optional[FactRatingInstruction] = OMIT,
name: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> Group:
Expand All @@ -44,7 +44,7 @@ def add(
description : typing.Optional[str]
fact_rating_instruction : typing.Optional[ApidataFactRatingInstruction]
fact_rating_instruction : typing.Optional[FactRatingInstruction]
UserIDs []string `json:"user_ids"`
name : typing.Optional[str]
Expand Down Expand Up @@ -102,7 +102,7 @@ def list_all_groups(
page_number: typing.Optional[int] = None,
page_size: typing.Optional[int] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> ApidataGroupListResponse:
) -> GroupListResponse:
"""
List all groups with pagination.
Expand All @@ -119,7 +119,7 @@ def list_all_groups(
Returns
-------
ApidataGroupListResponse
GroupListResponse
Successfully retrieved list of groups
Examples
Expand All @@ -139,7 +139,7 @@ def list_all_groups(
)
try:
if 200 <= _response.status_code < 300:
return pydantic_v1.parse_obj_as(ApidataGroupListResponse, _response.json()) # type: ignore
return pydantic_v1.parse_obj_as(GroupListResponse, _response.json()) # type: ignore
if _response.status_code == 400:
raise BadRequestError(
pydantic_v1.parse_obj_as(types_api_error_ApiError, _response.json()) # type: ignore
Expand Down Expand Up @@ -308,7 +308,7 @@ async def add(
*,
group_id: str,
description: typing.Optional[str] = OMIT,
fact_rating_instruction: typing.Optional[ApidataFactRatingInstruction] = OMIT,
fact_rating_instruction: typing.Optional[FactRatingInstruction] = OMIT,
name: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> Group:
Expand All @@ -321,7 +321,7 @@ async def add(
description : typing.Optional[str]
fact_rating_instruction : typing.Optional[ApidataFactRatingInstruction]
fact_rating_instruction : typing.Optional[FactRatingInstruction]
UserIDs []string `json:"user_ids"`
name : typing.Optional[str]
Expand Down Expand Up @@ -387,7 +387,7 @@ async def list_all_groups(
page_number: typing.Optional[int] = None,
page_size: typing.Optional[int] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> ApidataGroupListResponse:
) -> GroupListResponse:
"""
List all groups with pagination.
Expand All @@ -404,7 +404,7 @@ async def list_all_groups(
Returns
-------
ApidataGroupListResponse
GroupListResponse
Successfully retrieved list of groups
Examples
Expand Down Expand Up @@ -432,7 +432,7 @@ async def main() -> None:
)
try:
if 200 <= _response.status_code < 300:
return pydantic_v1.parse_obj_as(ApidataGroupListResponse, _response.json()) # type: ignore
return pydantic_v1.parse_obj_as(GroupListResponse, _response.json()) # type: ignore
if _response.status_code == 400:
raise BadRequestError(
pydantic_v1.parse_obj_as(types_api_error_ApiError, _response.json()) # type: ignore
Expand Down
8 changes: 2 additions & 6 deletions src/zep_cloud/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
from .apidata_document_collection import ApidataDocumentCollection
from .apidata_document_search_response import ApidataDocumentSearchResponse
from .apidata_document_with_score import ApidataDocumentWithScore
from .apidata_fact_rating_examples import ApidataFactRatingExamples
from .apidata_fact_rating_instruction import ApidataFactRatingInstruction
from .apidata_group_list_response import ApidataGroupListResponse
from .classify_session_request import ClassifySessionRequest
from .create_document_request import CreateDocumentRequest
from .end_session_response import EndSessionResponse
Expand All @@ -26,6 +23,7 @@
from .graph_search_results import GraphSearchResults
from .graph_search_scope import GraphSearchScope
from .group import Group
from .group_list_response import GroupListResponse
from .memory import Memory
from .memory_search_result import MemorySearchResult
from .message import Message
Expand Down Expand Up @@ -55,9 +53,6 @@
"ApidataDocumentCollection",
"ApidataDocumentSearchResponse",
"ApidataDocumentWithScore",
"ApidataFactRatingExamples",
"ApidataFactRatingInstruction",
"ApidataGroupListResponse",
"ClassifySessionRequest",
"CreateDocumentRequest",
"EndSessionResponse",
Expand All @@ -75,6 +70,7 @@
"GraphSearchResults",
"GraphSearchScope",
"Group",
"GroupListResponse",
"Memory",
"MemorySearchResult",
"Message",
Expand Down
31 changes: 0 additions & 31 deletions src/zep_cloud/types/apidata_fact_rating_examples.py

This file was deleted.

45 changes: 0 additions & 45 deletions src/zep_cloud/types/apidata_fact_rating_instruction.py

This file was deleted.

4 changes: 2 additions & 2 deletions src/zep_cloud/types/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@

from ..core.datetime_utils import serialize_datetime
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
from .apidata_fact_rating_instruction import ApidataFactRatingInstruction
from .fact_rating_instruction import FactRatingInstruction


class Group(pydantic_v1.BaseModel):
created_at: typing.Optional[str] = None
description: typing.Optional[str] = None
external_id: typing.Optional[str] = None
fact_rating_instruction: typing.Optional[ApidataFactRatingInstruction] = None
fact_rating_instruction: typing.Optional[FactRatingInstruction] = None
group_id: typing.Optional[str] = None
id: typing.Optional[int] = pydantic_v1.Field(default=None)
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from .group import Group


class ApidataGroupListResponse(pydantic_v1.BaseModel):
class GroupListResponse(pydantic_v1.BaseModel):
groups: typing.Optional[typing.List[Group]] = None
row_count: typing.Optional[int] = None
total_count: typing.Optional[int] = None
Expand Down
4 changes: 2 additions & 2 deletions src/zep_cloud/types/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@

from ..core.datetime_utils import serialize_datetime
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
from .apidata_fact_rating_instruction import ApidataFactRatingInstruction
from .fact_rating_instruction import FactRatingInstruction


class Session(pydantic_v1.BaseModel):
classifications: typing.Optional[typing.Dict[str, str]] = None
created_at: typing.Optional[str] = None
deleted_at: typing.Optional[str] = None
ended_at: typing.Optional[str] = None
fact_rating_instruction: typing.Optional[ApidataFactRatingInstruction] = None
fact_rating_instruction: typing.Optional[FactRatingInstruction] = None
facts: typing.Optional[typing.List[str]] = None
id: typing.Optional[int] = pydantic_v1.Field(default=None)
"""
Expand Down

0 comments on commit 224f844

Please sign in to comment.