( ctx context.Context, logger slog.Logger, db database.Store, ownerID uuid.UUID, organizationID uuid.UUID, msg string, buildID uuid.UUID, action buildFailureAction, )
| 147 | } |
| 148 | |
| 149 | func quotaErrorToolResponse( |
| 150 | ctx context.Context, |
| 151 | logger slog.Logger, |
| 152 | db database.Store, |
| 153 | ownerID uuid.UUID, |
| 154 | organizationID uuid.UUID, |
| 155 | msg string, |
| 156 | buildID uuid.UUID, |
| 157 | action buildFailureAction, |
| 158 | ) fantasy.ToolResponse { |
| 159 | quota := workspaceQuotaDetails(ctx, logger, db, ownerID, organizationID) |
| 160 | return marshalToolResponse(newQuotaError(msg, buildID, action, quota)) |
| 161 | } |
| 162 | |
| 163 | // buildFailureToolResponse keeps build failures as JSON carried in a normal |
| 164 | // text tool response. The chatprompt pipeline flattens IsError responses into |
no test coverage detected