Skip to content

Commit c8f53ae

Browse files
committed
fix(telemetry): extract renamed knowledge_base_url arg for blob6
1 parent 5ae00f2 commit c8f53ae

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

workers/src/telemetry.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,10 @@ export function parseToolCall(payload: unknown): {
160160
if (typeof a.input === "string" && a.input.includes("://")) {
161161
documentUri = a.input;
162162
}
163-
// Extract canon_url from tool arguments
164-
if (typeof a.canon_url === "string" && a.canon_url) {
163+
// Extract knowledge base URL from tool arguments (accept legacy canon_url alias)
164+
if (typeof a.knowledge_base_url === "string" && a.knowledge_base_url) {
165+
canonUrl = a.knowledge_base_url;
166+
} else if (typeof a.canon_url === "string" && a.canon_url) {
165167
canonUrl = a.canon_url;
166168
}
167169
}

0 commit comments

Comments
 (0)