SDK reference / Models / AgentService
AiAgentStep
Kind: class
Namespace: Egulu.Sdk.Models.AgentService
One step of a run: a model call or a tool call, recorded before it ran.
Properties
| Name | Type | JSON name | Description |
|---|---|---|---|
Arguments | string? | arguments | The arguments of the call (redacted, capped at 4 KiB). |
ChargedMicros | long? | chargedMicros | The settled price of the model call, in micro-euros. |
CreateTime | DateTimeOffset? | createTime | The createTime property |
Decision | string? | decision | `allowed`, `refused`, `approval-required`, `approved` or `rejected`. |
DecisionReason | string? | decisionReason | Why, with the code that refused (the model is never told this). |
EndTime | DateTimeOffset? | endTime | The endTime property |
Endpoint | string? | endpoint | The inference endpoint that answered (a model step). |
Guardrail | string? | guardrail | What the safety hooks said, if they stopped something. |
Kind | string? | kind | `model` or `tool`. |
LatencyMs | int? | latencyMs | The latencyMs property |
Name | string? | name | projects/{project}/locations/{location}/aiAgents/{agent}/runs/{run}/steps/{step}. |
Result | string? | result | A summary of the result (redacted, capped at 2 KiB). Text a tool returned is untrusted. |
Seq | int? | seq | The step key within the run; also the request ID of its model call or tool call. |
State | string? | state | `PLANNED`, `STARTED`, `WAITING`, `DONE`, `REFUSED`, `FAILED` or `OUTCOME_UNKNOWN`. |
Text | string? | text | What the model wrote (a model step; redacted, capped at 8 KiB). |
TokensIn | int? | tokensIn | The tokensIn property |
TokensOut | int? | tokensOut | The tokensOut property |
Tool | string? | tool | The tool property |
Turn | int? | turn | The model call it belongs to, from 1. |
Untrusted | bool? | untrusted | Whether the result is third-party text; the next prompt marks it as data. |