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

NameTypeJSON nameDescription
Argumentsstring?argumentsThe arguments of the call (redacted, capped at 4 KiB).
ChargedMicroslong?chargedMicrosThe settled price of the model call, in micro-euros.
CreateTimeDateTimeOffset?createTimeThe createTime property
Decisionstring?decision`allowed`, `refused`, `approval-required`, `approved` or `rejected`.
DecisionReasonstring?decisionReasonWhy, with the code that refused (the model is never told this).
EndTimeDateTimeOffset?endTimeThe endTime property
Endpointstring?endpointThe inference endpoint that answered (a model step).
Guardrailstring?guardrailWhat the safety hooks said, if they stopped something.
Kindstring?kind`model` or `tool`.
LatencyMsint?latencyMsThe latencyMs property
Namestring?nameprojects/{project}/locations/{location}/aiAgents/{agent}/runs/{run}/steps/{step}.
Resultstring?resultA summary of the result (redacted, capped at 2 KiB). Text a tool returned is untrusted.
Seqint?seqThe step key within the run; also the request ID of its model call or tool call.
Statestring?state`PLANNED`, `STARTED`, `WAITING`, `DONE`, `REFUSED`, `FAILED` or `OUTCOME_UNKNOWN`.
Textstring?textWhat the model wrote (a model step; redacted, capped at 8 KiB).
TokensInint?tokensInThe tokensIn property
TokensOutint?tokensOutThe tokensOut property
Toolstring?toolThe tool property
Turnint?turnThe model call it belongs to, from 1.
Untrustedbool?untrustedWhether the result is third-party text; the next prompt marks it as data.