chat_llm
ChatInput
Bases: BaseModel
Chat input
Attributes:
| Name | Type | Description |
|---|---|---|
messages | list[ChatMessage] | Messages |
Source code in core/chat_llm.py
ChatLLM
Chat with a language model
Attributes:
| Name | Type | Description |
|---|---|---|
chat_model | BaseChatModel | A chat model |
Source code in core/chat_llm.py
__init__(chat_model)
Create a ChatLLM
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
chat_model | BaseChatModel | A chat model | required |
chat(chat_input)
Chat with the chat model
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
chat_input | LanguageModelInput | Chat input | required |
Returns:
| Name | Type | Description |
|---|---|---|
str | str | Chat output |