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

Function convertWorkspaceAgentLogs

coderd/workspaceagents.go:2413–2419  ·  view source on GitHub ↗
(logs []database.WorkspaceAgentLog)

Source from the content-addressed store, hash-verified

2411}
2412
2413func 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.

Callers 1

workspaceAgentLogsMethod · 0.85

Calls 1

WorkspaceAgentLogFunction · 0.92

Tested by

no test coverage detected