# Sandbox.Services.Ai.Response

An assistant response and credits charged for the request.

- Kind: class
- Assembly: `Sandbox.Engine`

## Properties

- [`Credits`](/api/Sandbox.Services.Ai.Response/Credits): Account balance after the request, or null when unavailable.
- [`CreditsSpent`](/api/Sandbox.Services.Ai.Response/CreditsSpent): Credits charged for this request, or null when accounting is unavailable.
- [`FinishReason`](/api/Sandbox.Services.Ai.Response/FinishReason): Why generation ended.
- [`IsSuccess`](/api/Sandbox.Services.Ai.Response/IsSuccess): Whether the model completed normally.
- [`Refusal`](/api/Sandbox.Services.Ai.Response/Refusal): Provider refusal text, when present.
- [`Text`](/api/Sandbox.Services.Ai.Response/Text): Generated text, which can accompany tool calls.
- [`TotalCreditsSpent`](/api/Sandbox.Services.Ai.Response/TotalCreditsSpent): Total credits charged across the conversation, or null without a conversation or available accounting.
