-
Notifications
You must be signed in to change notification settings - Fork 859
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from langchain-ai/nc/stream-tokens
WIP Stream message tokens
- Loading branch information
Showing
14 changed files
with
674 additions
and
322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
from datetime import datetime | ||
|
||
from typing_extensions import TypedDict | ||
|
||
|
||
class AssistantWithoutUserId(TypedDict): | ||
"""Assistant model.""" | ||
|
||
assistant_id: str | ||
"""The ID of the assistant.""" | ||
name: str | ||
"""The name of the assistant.""" | ||
config: dict | ||
"""The assistant config.""" | ||
updated_at: datetime | ||
"""The last time the assistant was updated.""" | ||
public: bool | ||
"""Whether the assistant is public.""" | ||
|
||
|
||
class Assistant(AssistantWithoutUserId): | ||
"""Assistant model.""" | ||
|
||
user_id: str | ||
"""The ID of the user that owns the assistant.""" | ||
|
||
|
||
class ThreadWithoutUserId(TypedDict): | ||
thread_id: str | ||
"""The ID of the thread.""" | ||
assistant_id: str | ||
"""The assistant that was used in conjunction with this thread.""" | ||
name: str | ||
"""The name of the thread.""" | ||
updated_at: datetime | ||
"""The last time the thread was updated.""" | ||
|
||
|
||
class Thread(ThreadWithoutUserId): | ||
"""Thread model.""" | ||
|
||
user_id: str | ||
"""The ID of the user that owns the thread.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.