Skip to content

Commit

Permalink
Use UUID instead of UUID4
Browse files Browse the repository at this point in the history
  • Loading branch information
sidpan1 committed Nov 20, 2024
1 parent c2e217b commit 602dc3e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions onelens_backend_client_v2/models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# filename: <stdin>
# timestamp: 2024-11-20T08:32:28+00:00
# timestamp: 2024-11-20T09:24:42+00:00

from __future__ import annotations

Expand Down Expand Up @@ -769,7 +769,7 @@ class CreateThreadRequest(BaseModel):
None, description="Optional name for the thread", title="Name"
)
agent_type: AgentType = Field(..., description="Type of the workflow")
user_id: Optional[UUID4] = Field(
user_id: Optional[UUID] = Field(
None,
description="Unique identifier of the user, required if agent_type is not provided to create a new thread for the user",
title="User Id",
Expand Down Expand Up @@ -1046,7 +1046,7 @@ class GetAllTenantConnectionsRequest(BaseModel):


class GetAllThreadsFilters(BaseModel):
user_ids: Optional[List[UUID4]] = Field(
user_ids: Optional[List[UUID]] = Field(
None, description="Unique identifiers of the users", title="User Ids"
)
agent_types: Optional[List[AgentType]] = Field(
Expand Down Expand Up @@ -1535,7 +1535,7 @@ class MarkViewAsDefaultResponse(BaseModel):


class MessageAuthor(BaseModel):
user_id: Optional[UUID4] = Field(
user_id: Optional[UUID] = Field(
None, description="Unique identifier of the user", title="User Id"
)
role: AuthorRole = Field(..., description="Role of the author (USER or ASSISTANT)")
Expand Down Expand Up @@ -2892,7 +2892,7 @@ class Thread(BaseModel):
None, description="Timestamp of last thread update", title="Updated At"
)
name: Optional[str] = Field(None, description="Name of the thread", title="Name")
user_id: Optional[UUID4] = Field(
user_id: Optional[UUID] = Field(
None,
description="Unique identifier of the user associated with the thread",
title="User Id",
Expand Down

0 comments on commit 602dc3e

Please sign in to comment.