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

Function ChatDebugRunSummary

coderd/database/db2sdk/db2sdk.go:1886–1899  ·  view source on GitHub ↗

ChatDebugRunSummary converts a database.ChatDebugRun to a codersdk.ChatDebugRunSummary.

(r database.ChatDebugRun)

Source from the content-addressed store, hash-verified

1884// ChatDebugRunSummary converts a database.ChatDebugRun to a
1885// codersdk.ChatDebugRunSummary.
1886func 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.

Calls 5

ChatDebugRunKindTypeAlias · 0.92
ChatDebugStatusTypeAlias · 0.92
nullStringPtrFunction · 0.85
rawJSONObjectFunction · 0.85
nullTimePtrFunction · 0.85