SDK reference / Models / AgentService

AiAgent

Kind: class

Namespace: Egulu.Sdk.Models.AgentService

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

Properties

NameTypeJSON nameDescription
ApproveRiskybool?approveRiskyWhether R2 tools wait for a human's approval. R3 tools always do. Default true.
BudgetPerDayMicroslong?budgetPerDayMicrosThe most all runs of the agent may spend in one UTC day, in micro-euros.
BudgetPerRunMicroslong?budgetPerRunMicrosThe most one run may spend on model calls, in micro-euros: 1 to 100,000,000.
CallsPerMinuteint?callsPerMinuteThe most tool calls a minute: 1 to 600. Default 60.
CreateTimeDateTimeOffset?createTimeThe createTime property
Descriptionstring?descriptionUp to 300 characters.
DisplayNamestring?displayName1 to 63 characters.
Endpointstring?endpointThe inference endpoint of the project that answers (a `text` endpoint), by its short name.
Etagstring?etagThe etag property
GuardrailsModels.AgentService.AiAgentGuardrails?guardrailsWhere the safety hooks (AI-11) look. Both default to on.
Instructionsstring?instructionsWhat the agent is for and how it behaves; at most 16 KiB. It is the system section of every prompt.
LabelsModels.AgentService.AiAgent_labels?labelsAt most 64.
MaxOutputTokensint?maxOutputTokensThe most tokens one model call may write: 1 to 8192. Default 1024.
MaxStepsint?maxStepsThe most model calls one run makes: 1 to 40. Default 12.
Namestring?nameprojects/{project}/locations/{location}/agents/{agent}.
Policystring?policyThe name of one of the project's agent policies (IAM-11) that also restricts this agent. Optional below R3; required for R3.
Principalstring?principalThe agent principal, `agent:{uid}`, that a run acts as.
RiskCeilingstring?riskCeilingThe highest risk class a tool may have: `R0` to `R3`. Default `R2`. `R3` needs a `policy`; `R4` is refused.
Sponsorstring?sponsorThe user the agent acts for; a run is never more than this user may do.
StateModels.AgentService.AiAgentState?stateWhether the agent may start runs.
Temperaturedouble?temperature0 to 2. Default 0.2.
ToolAllowListList<string>?toolAllowListThe 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.
ToolsList<string>?toolsThe 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.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property
UpdatedBystring?updatedByWho wrote the current version.
Versionint?versionThe current version, from 1.