Skip to content

Commit ebdaceb

Browse files
add deleted assertion
1 parent 626b28b commit ebdaceb

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/integrations/langchain/test_langchain.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,6 +1423,15 @@ def test_langchain_openai_tools_agent(
14231423
assert "word" in tool_exec_span["attributes"][SPANDATA.GEN_AI_TOOL_INPUT]
14241424
assert 5 == int(tool_exec_span["attributes"][SPANDATA.GEN_AI_TOOL_OUTPUT])
14251425

1426+
assert json.loads(
1427+
chat_spans[0]["attributes"][SPANDATA.GEN_AI_REQUEST_MESSAGES]
1428+
) == [
1429+
{
1430+
"role": "user",
1431+
"content": "['Message demonstrating the absence of truncation.', 'How many letters in the word eudca']",
1432+
}
1433+
]
1434+
14261435
assert expected_system_instructions == json.loads(
14271436
chat_spans[0]["attributes"][SPANDATA.GEN_AI_SYSTEM_INSTRUCTIONS]
14281437
)

0 commit comments

Comments
 (0)