Skip to content

Commit 8543a22

Browse files
committed
feat(observability): add Chat view and thread query interfaces
- Add GetTraceChat/GetThreadChat/GetThreadStat IDL definitions - Add ChatMessage struct with message_type and span fields - Implement ChatProcessor for extracting last user message from model span input - Support Standard ChatCompletion and Responses API formats - Add service layer implementations with chat processor integration - Add application handler layer with permission validation - Add ChatMessagesDO2DTO convertor function - Add unit tests for ChatProcessor
1 parent cb42bc1 commit 8543a22

38 files changed

Lines changed: 14396 additions & 2961 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ go.work.sum
2121
# the result of the go build
2222
output/
2323

24+
# local tool binaries
25+
backend/bin/
26+
2427
# Files generated by IDEs
2528
.idea/
2629
*.iml

backend/api/handler/coze/loop/apis/observability_trace_service.go

Lines changed: 48 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/api/router/coze/loop/apis/coze.loop.apis.go

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/api/router/coze/loop/apis/middleware.go

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/kitex_gen/coze/loop/apis/observabilitytraceservice/client.go

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/kitex_gen/coze/loop/apis/observabilitytraceservice/observabilitytraceservice.go

Lines changed: 108 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/kitex_gen/coze/loop/observability/observabilitytraceservice/client.go

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)