mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-31 08:32:32 +00:00
standard-tests[patch]: test Message.name (#25677)
Tests: https://github.com/langchain-ai/langchain/actions/runs/10516092584
This commit is contained in:
parent
ac7b71e0d7
commit
cf9c484715
@ -523,3 +523,10 @@ class ChatModelIntegrationTests(ChatModelTests):
|
||||
]
|
||||
result = model_with_tools.invoke(messages)
|
||||
assert isinstance(result, AIMessage)
|
||||
|
||||
def test_message_with_name(self, model: BaseChatModel) -> None:
|
||||
result = model.invoke([HumanMessage("hello", name="example_user")])
|
||||
assert result is not None
|
||||
assert isinstance(result, AIMessage)
|
||||
assert isinstance(result.content, str)
|
||||
assert len(result.content) > 0
|
||||
|
Loading…
Reference in New Issue
Block a user