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

# AiAgent

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

One agent: a definition, versioned. Every change of the definition writes a new immutable version.

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `ApproveRisky` | `bool?` | `approveRisky` | Whether R2 tools wait for a human's approval. R3 tools always do. Default true. |
| `BudgetPerDayMicros` | `long?` | `budgetPerDayMicros` | The most all runs of the agent may spend in one UTC day, in micro-euros. |
| `BudgetPerRunMicros` | `long?` | `budgetPerRunMicros` | The most one run may spend on model calls, in micro-euros: 1 to 100,000,000. |
| `CallsPerMinute` | `int?` | `callsPerMinute` | The most tool calls a minute: 1 to 600. Default 60. |
| `CreateTime` | `DateTimeOffset?` | `createTime` | The createTime property |
| `Description` | `string?` | `description` | Up to 300 characters. |
| `DisplayName` | `string?` | `displayName` | 1 to 63 characters. |
| `Endpoint` | `string?` | `endpoint` | The inference endpoint of the project that answers (a `text` endpoint), by its short name. |
| `Etag` | `string?` | `etag` | The etag property |
| `Guardrails` | `Models.AgentService.AiAgentGuardrails?` | `guardrails` | Where the safety hooks (AI-11) look. Both default to on. |
| `Instructions` | `string?` | `instructions` | What the agent is for and how it behaves; at most 16 KiB. It is the system section of every prompt. |
| `Labels` | `Models.AgentService.AiAgent_labels?` | `labels` | At most 64. |
| `MaxOutputTokens` | `int?` | `maxOutputTokens` | The most tokens one model call may write: 1 to 8192. Default 1024. |
| `MaxSteps` | `int?` | `maxSteps` | The most model calls one run makes: 1 to 40. Default 12. |
| `Name` | `string?` | `name` | projects/{project}/locations/{location}/agents/{agent}. |
| `Policy` | `string?` | `policy` | The name of one of the project's agent policies (IAM-11) that also restricts this agent. Optional below R3; required for R3. |
| `Principal` | `string?` | `principal` | The agent principal, `agent:{uid}`, that a run acts as. |
| `RiskCeiling` | `string?` | `riskCeiling` | The highest risk class a tool may have: `R0` to `R3`. Default `R2`. `R3` needs a `policy`; `R4` is refused. |
| `Sponsor` | `string?` | `sponsor` | The user the agent acts for; a run is never more than this user may do. |
| `State` | `Models.AgentService.AiAgentState?` | `state` | Whether the agent may start runs. |
| `Temperature` | `double?` | `temperature` | 0 to 2. Default 0.2. |
| `ToolAllowList` | `List<string>?` | `toolAllowList` | The tool names the model may be offered and may call, for example `instances.list`. Empty means no tool at all (default deny). At most 100. |
| `Tools` | `List<string>?` | `tools` | The tool sets the agent may draw on: `platform:{group}` (a contract module's tools, for example `platform:compute`; only tools the contract marksas agent tools) and `server:{name}` (a registered tool server of the project). At most 20. |
| `UpdateTime` | `DateTimeOffset?` | `updateTime` | The updateTime property |
| `UpdatedBy` | `string?` | `updatedBy` | Who wrote the current version. |
| `Version` | `int?` | `version` | The current version, from 1. |
