[SDK reference](../../index.md) / [Models](../index.md) / [AgentService](index.md)

# AiAgentRun

**Kind:** class  
**Namespace:** `Egulu.Sdk.Models.AgentService`  

One conversation with one version of an agent. Its input, answer and steps are project data: size-capped, redacted of secret-looking values, and erased with the run.

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `Agent` | `string?` | `agent` | The agent. |
| `AgentVersion` | `int?` | `agentVersion` | The version of the agent the run uses. |
| `BudgetPerRunMicros` | `long?` | `budgetPerRunMicros` | The run's budget, in micro-euros. |
| `CreateTime` | `DateTimeOffset?` | `createTime` | The createTime property |
| `EndDetail` | `string?` | `endDetail` | A sentence about the end, with the amounts for a budget. |
| `EndReason` | `string?` | `endReason` | Why the run ended, as a stable code: `final-answer`, `stopped`, `step-limit`, `run-budget`, `day-budget`, `spend-cap`, `step-outcome-unknown`, `model-reply`, `model-unavailable`, `guardrail-input`, `guardrail-output`, `guardrail-unavailable`, `tool-call-limit`, `sponsor-lost`, `agent-suspended`, `agent-missing`. |
| `EndTime` | `DateTimeOffset?` | `endTime` | The endTime property |
| `Etag` | `string?` | `etag` | The etag property |
| `Evaluation` | `string?` | `evaluation` | The evaluation that started the run, if one did. |
| `ExpireTime` | `DateTimeOffset?` | `expireTime` | When the transcript is erased (30 days after the run ends). |
| `FinalAnswer` | `string?` | `finalAnswer` | The final answer, once the run has succeeded. Text the model wrote: untrusted. |
| `Input` | `string?` | `input` | What the run was asked (at most 16 KiB; redacted). |
| `Labels` | `Models.AgentService.AiAgentRun_labels?` | `labels` | At most 64. |
| `ModelCalls` | `int?` | `modelCalls` | The modelCalls property |
| `Name` | `string?` | `name` | projects/{project}/locations/{location}/aiAgents/{agent}/runs/{run}. |
| `PendingApprovalStep` | `int?` | `pendingApprovalStep` | The step waiting for an approval, if the run is waiting. |
| `SpentMicros` | `long?` | `spentMicros` | What the model calls cost so far, in micro-euros, as the gateway settled them. |
| `Sponsor` | `string?` | `sponsor` | The user the run acts for: the agent's sponsor, never more than they may do. |
| `StartTime` | `DateTimeOffset?` | `startTime` | The startTime property |
| `State` | `Models.AgentService.AiAgentRunState?` | `state` | The state of a run. |
| `ToolCalls` | `int?` | `toolCalls` | The toolCalls property |
