Skip to content

Commit 9149dc9

Browse files
committed
fix
1 parent cbb951f commit 9149dc9

1 file changed

Lines changed: 19 additions & 18 deletions

File tree

test/plugin/scenarios/spring-ai-1.x-scenario/config/expectedData.yaml

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,24 @@ segmentItems:
2020

2121
- segmentId: not null
2222
spans:
23+
- operationName: Spring-ai/tool/execute/get_weather
24+
parentSpanId: 2
25+
spanId: 3
26+
spanLayer: UNRECOGNIZED
27+
spanType: Local
28+
tags:
29+
- { key: gen_ai.tool.name, value: get_weather }
30+
- { key: gen_ai.operation.name, value: execute_tool }
31+
- { key: gen_ai.tool.call.arguments, value: '{"arg0":"new york"}' }
32+
- { key: gen_ai.tool.call.result, value: '"Sunny, 10°C"' }
33+
34+
- operationName: Spring-ai/tool/call
35+
parentSpanId: 1
36+
spanId: 2
37+
spanLayer: Unknown
38+
spanType: Local
39+
40+
2341
- operationName: GET:/spring-ai-1.x-scenario/case/spring-ai-1.x-scenario-case
2442
parentSpanId: -1
2543
spanId: 0
@@ -52,21 +70,4 @@ segmentItems:
5270
- { key: gen_ai.client.token.usage, value: '69' }
5371
- { key: gen_ai.response.finish_reasons, value: STOP }
5472
- { key: gen_ai.input.messages, value: '[{"role":"system","parts":[{"type":"text","content":"You are a professional technical assistant.\\nStrictly use the provided context to answer questions.\\nIf the information is not in the context, say: \\\"I''m sorry, I don''t have that information in my knowledge base.\\\"\\nDo not use outside knowledge. Be concise.\\n"}]},{"role":"user","parts":[{"type":"text","content":"What''s the weather in New York?"}]}]' }
55-
- { key: gen_ai.output.messages, value: '[{"role":"assistant","parts":[{"type":"text","content":"The weather in New York is currently sunny with a temperature of 10°C."}],"finish_reason":"stop"}]' }
56-
57-
- operationName: Spring-ai/tool/call
58-
parentSpanId: 1
59-
spanId: 2
60-
spanLayer: Unknown
61-
spanType: Local
62-
63-
- operationName: Spring-ai/tool/execute/get_weather
64-
parentSpanId: 2
65-
spanId: 3
66-
spanLayer: UNRECOGNIZED
67-
spanType: Local
68-
tags:
69-
- { key: gen_ai.tool.name, value: get_weather }
70-
- { key: gen_ai.operation.name, value: execute_tool }
71-
- { key: gen_ai.tool.call.arguments, value: '{"arg0":"new york"}' }
72-
- { key: gen_ai.tool.call.result, value: '"Sunny, 10°C"' }
73+
- { key: gen_ai.output.messages, value: '[{"role":"assistant","parts":[{"type":"text","content":"The weather in New York is currently sunny with a temperature of 10°C."}],"finish_reason":"stop"}]' }

0 commit comments

Comments
 (0)