Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Chat class public: small updates + add docs #317

Open
jackmpcollins opened this issue Aug 26, 2024 · 0 comments
Open

Make Chat class public: small updates + add docs #317

jackmpcollins opened this issue Aug 26, 2024 · 0 comments

Comments

@jackmpcollins
Copy link
Owner

jackmpcollins commented Aug 26, 2024

This is very useful for tracking chat messages and handling function call execution.

TODO

  • make importable from top level
  • write docs page about usage
  • (maybe out of scope) enable setting/overriding output type in Chat.submit()
  • (maybe out of scope) add handling for error within a function call

class Chat:
"""A chat with an LLM chat model.
Examples
--------
>>> chat = Chat().add_user_message("Hello")
>>> chat.messages
[UserMessage('Hello')]
>>> chat = chat.submit()
>>> chat.messages
[UserMessage('Hello'), AssistantMessage('Hello! How can I assist you today?')]
"""

@jackmpcollins jackmpcollins changed the title Write docs for Chat class Make Chat class public: small updates + add docs Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@jackmpcollins and others