(logs []database.WorkspaceAgentLog)
| 2411 | } |
| 2412 | |
| 2413 | func convertWorkspaceAgentLogs(logs []database.WorkspaceAgentLog) []codersdk.WorkspaceAgentLog { |
| 2414 | sdk := make([]codersdk.WorkspaceAgentLog, 0, len(logs)) |
| 2415 | for _, logEntry := range logs { |
| 2416 | sdk = append(sdk, db2sdk.WorkspaceAgentLog(logEntry)) |
| 2417 | } |
| 2418 | return sdk |
| 2419 | } |
| 2420 | |
| 2421 | // maxChatContextParts caps the number of parts per request to |
| 2422 | // prevent unbounded message payloads. |
no test coverage detected