MCPcopy Index your code
hub / github.com/coder/coder / AIBridgeToolUsage

Function AIBridgeToolUsage

coderd/database/db2sdk/db2sdk.go:1201–1214  ·  view source on GitHub ↗
(usage database.AIBridgeToolUsage)

Source from the content-addressed store, hash-verified

1199}
1200
1201func AIBridgeToolUsage(usage database.AIBridgeToolUsage) codersdk.AIBridgeToolUsage {
1202 return codersdk.AIBridgeToolUsage{
1203 ID: usage.ID,
1204 InterceptionID: usage.InterceptionID,
1205 ProviderResponseID: usage.ProviderResponseID,
1206 ServerURL: usage.ServerUrl.String,
1207 Tool: usage.Tool,
1208 Input: usage.Input,
1209 Injected: usage.Injected,
1210 InvocationError: usage.InvocationError.String,
1211 Metadata: jsonOrEmptyMap(usage.Metadata),
1212 CreatedAt: usage.CreatedAt,
1213 }
1214}
1215
1216// AIBridgeSessionThreads converts session metadata and thread interceptions
1217// into the threads response. It groups interceptions into threads, builds

Callers

nothing calls this directly

Calls 1

jsonOrEmptyMapFunction · 0.85

Tested by

no test coverage detected