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

Function TerminalErrorPayload

coderd/x/chatd/chaterror/payload.go:9–21  ·  view source on GitHub ↗
(classified ClassifiedError)

Source from the content-addressed store, hash-verified

7)
8
9func TerminalErrorPayload(classified ClassifiedError) *codersdk.ChatError {
10 if classified.Message == "" {
11 return nil
12 }
13 return &codersdk.ChatError{
14 Message: classified.Message,
15 Detail: classified.Detail,
16 Kind: classified.Kind,
17 Provider: classified.Provider,
18 Retryable: classified.Retryable,
19 StatusCode: classified.StatusCode,
20 }
21}
22
23func StreamRetryPayload(
24 attempt int,

Calls

no outgoing calls