ChatDebugRunSummary converts a database.ChatDebugRun to a codersdk.ChatDebugRunSummary.
(r database.ChatDebugRun)
| 1884 | // ChatDebugRunSummary converts a database.ChatDebugRun to a |
| 1885 | // codersdk.ChatDebugRunSummary. |
| 1886 | func ChatDebugRunSummary(r database.ChatDebugRun) codersdk.ChatDebugRunSummary { |
| 1887 | return codersdk.ChatDebugRunSummary{ |
| 1888 | ID: r.ID, |
| 1889 | ChatID: r.ChatID, |
| 1890 | Kind: codersdk.ChatDebugRunKind(r.Kind), |
| 1891 | Status: codersdk.ChatDebugStatus(r.Status), |
| 1892 | Provider: nullStringPtr(r.Provider), |
| 1893 | Model: nullStringPtr(r.Model), |
| 1894 | Summary: rawJSONObject(r.Summary), |
| 1895 | StartedAt: r.StartedAt, |
| 1896 | UpdatedAt: r.UpdatedAt, |
| 1897 | FinishedAt: nullTimePtr(r.FinishedAt), |
| 1898 | } |
| 1899 | } |
| 1900 | |
| 1901 | // ChatDebugStep converts a database.ChatDebugStep to a |
| 1902 | // codersdk.ChatDebugStep. |