We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 626b28b commit ebdacebCopy full SHA for ebdaceb
1 file changed
tests/integrations/langchain/test_langchain.py
@@ -1423,6 +1423,15 @@ def test_langchain_openai_tools_agent(
1423
assert "word" in tool_exec_span["attributes"][SPANDATA.GEN_AI_TOOL_INPUT]
1424
assert 5 == int(tool_exec_span["attributes"][SPANDATA.GEN_AI_TOOL_OUTPUT])
1425
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
+
1435
assert expected_system_instructions == json.loads(
1436
chat_spans[0]["attributes"][SPANDATA.GEN_AI_SYSTEM_INSTRUCTIONS]
1437
)
0 commit comments