mirror of
https://github.com/hwchase17/langchain.git
synced 2025-10-08 22:34:48 +00:00
beef up getting started (#8139)
Co-authored-by: Bagatur <baskaryan@gmail.com>
This commit is contained in:
12
docs/snippets/get_started/quickstart/input_messages.mdx
Normal file
12
docs/snippets/get_started/quickstart/input_messages.mdx
Normal file
@@ -0,0 +1,12 @@
|
||||
```python
|
||||
from langchain.schema import HumanMessage
|
||||
|
||||
text = "What would be a good company name for a company that makes colorful socks?"
|
||||
messages = [HumanMessage(content=text)]
|
||||
|
||||
llm.predict_messages(messages)
|
||||
# >> Feetful of Fun
|
||||
|
||||
chat_model.predict_messages(messages)
|
||||
# >> Socks O'Color
|
||||
```
|
Reference in New Issue
Block a user