(usage database.AIBridgeToolUsage)
| 1199 | } |
| 1200 | |
| 1201 | func 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 |
nothing calls this directly
no test coverage detected