Skip to content

Agent Run

Custom object AgentRun__c. Tracks the durable lifecycle and aggregate state of one agent execution.

FieldAPI nameTypeDescription
Agent DefinitionAgentDefinition__cLookupSystem-maintained Agent Definition for this durable agent run.
Agent Execution IdentityExecutionIdentity__cLookupThe Agent Execution Identity frozen at run start; blank when the run acts as the user who started it.
Anchor Record IDAnchorRecordId__cTextOptional Salesforce record ID that identifies the primary durable business context for this run.
Attended ByAttendedBy__cLookupThe person a Delegated Principal run works for, captured when that person started it in their own request (a Lightning page, screen flow, or API call). Record data the run’s tools and context return, and records its standard tools change, are limited to what this person can read and edit. Blank for scheduled, triggered, event, and background starts, and for Initiating User runs, which already run as that person.
Cancellation ReasonCancellationReason__cLongTextAreaBounded reason supplied by the authorized caller requesting cancellation.
Cancellation Requested AtCancellationRequestedAt__cDateTimeTime an authorized caller requested cancellation while a command was already leased.
Command SequenceCommandSequence__cNumberMonotonic per-run command counter that identifies each durable operation independently of run revision.
Completed AtCompletedAt__cDateTimeSystem-maintained Completed At for this durable agent run.
Configuration HashConfigurationHash__cTextSHA-256 hash of the executable agent configuration (definition, active tools, and context providers) that the run last used. A different hash on a later call records a Configuration Changed event.
Continuation ModeContinuationMode__cPicklistSystem-maintained Continuation Mode for this durable agent run. Values: Model, Conversation, Reinvoke Tool.
Current CommandCurrentCommand__cLookupSystem-maintained Current Command for this durable agent run.
Delete AfterDeleteAfter__cDateTimeSystem-maintained earliest time at which this payload-purged terminal run and its evidence may be permanently deleted.
Error CodeErrorCode__cTextSystem-maintained Error Code for this durable agent run.
Error MessageErrorMessage__cLongTextAreaSystem-maintained Error Message for this durable agent run.
Execution Context StatusExecutionContextStatus__cPicklistSystem-maintained Execution Context Status for this durable agent run. Values: Pending, Established.
Expected Principal UserExpectedPrincipalUser__cLookupAllowlisted Delegated Principal user snapshotted at run start. Loopback dispatch may resolve only this user.
External Correlation KeyExternalCorrelationKey__cTextCaller-supplied business key used to correlate and idempotently start a run within one agent definition.
Initiating UserInitiatingUser__cLookupSystem-maintained Initiating User for this durable agent run.
InputInput__cLongTextAreaSystem-maintained Input for this durable agent run.
Input HashInputHash__cTextSystem-maintained Input Hash for this durable agent run.
Input Token CountInputTokenCount__cNumberSystem-maintained Input Token Count for this durable agent run.
Invocation Entry PointInvocationEntryPoint__cPicklistSystem-maintained Invocation Entry Point for this durable agent run. Values: Apex, Flow, REST, Platform Event, Chat.
Last Activity AtLastActivityAt__cDateTimeSystem-maintained Last Activity At for this durable agent run.
Last Event SequenceLastEventSequence__cNumberMonotonic sequence allocated while the run row is locked for the append-only event ledger.
Last Lifecycle Publish Failure AtLastLifecyclePublishFailureAt__cDateTimeMost recent time Core observed a lifecycle platform-event publish failure for this run.
Lifecycle Publish Failure CountLifecyclePublishFailureCount__cNumberPayload-free count of best-effort lifecycle platform-event publish failures for this run.
Loopback Named CredentialLoopbackNamedCredential__cTextSystem-maintained Loopback Named Credential for this durable agent run.
Max RetriesMaxRetries__cNumberSystem-maintained retry budget captured when this durable run started.
Model Call CountModelCallCount__cNumberSystem-maintained Model Call Count for this durable agent run.
Model Calls Before ReplyReplyModelCallBase__cNumberModel Call Count when the person’s latest reply arrived. A conversational run’s model-call budget counts only the calls after it.
Model Duration MillisecondsModelDurationMs__cNumberSystem-maintained Model Duration Ms for this durable agent run.
OutputOutput__cLongTextAreaSystem-maintained Output for this durable agent run.
Output HashOutputHash__cTextSystem-maintained Output Hash for this durable agent run.
Output Token CountOutputTokenCount__cNumberSystem-maintained Output Token Count for this durable agent run.
Parent RunParentRun__cLookupOptional lineage link to another Pluto Core run. Parent and child do not share budget, transcript, identity, or lifecycle.
Payload Purged AtPayloadPurgedAt__cDateTimeSystem-maintained Payload Purged At for this durable agent run.
Payload Retention DaysPayloadRetentionDays__cNumberSystem-maintained Payload Retention Days for this durable agent run.
Payload Retention ModePayloadRetentionMode__cPicklistSystem-maintained Payload Retention Mode for this durable agent run. Values: Redacted, Full, Hash Only, None.
Purge AfterPurgeAfter__cDateTimeQueryable deadline after which terminal run payloads are eligible for purge.
Record Retention DaysRecordRetentionDays__cNumberSystem-maintained evidence-record retention window captured when this durable run started.
Recovery Check AtRecoveryCheckAt__cDateTimeWhen scheduled recovery may next examine this run. Core sets it after a recovery step fails for this run so one failing run cannot stall recovery of others.
Resolved Principal UserResolvedPrincipalUser__cLookupSystem-maintained Resolved Principal User for this durable agent run.
Resume JSON SchemaResumeJsonSchema__cLongTextAreaSystem-maintained Resume Json Schema for this durable agent run.
Retained Payload CharactersRetainedPayloadCharacters__cNumberSystem-maintained Retained Payload Characters for this durable agent run.
Retry CountRetryCount__cNumberSystem-maintained Retry Count for this durable agent run.
RevisionRevision__cNumberSystem-maintained Revision for this durable agent run.
Run Duration MillisecondsRunDurationMs__cNumberElapsed wall-clock milliseconds from run start to terminal completion; calculated only for completed runs.
Sensitive JSON KeysSensitiveJsonKeys__cLongTextAreaSystem-maintained Sensitive Json Keys for this durable agent run.
Start Deduplication KeyStartDeduplicationKey__cTextSystem-generated SHA-256 key that uniquely scopes an external correlation key to one agent definition.
Start Request HashStartRequestHash__cTextSHA-256 fingerprint of the immutable values supplied by the original correlated start request.
Started AtStartedAt__cDateTimeSystem-maintained Started At for this durable agent run.
StatusStatus__cPicklistSystem-maintained Status for this durable agent run. Values: Running, Waiting, Paused, Succeeded, Failed, Cancelled.
Tokens Before ReplyReplyTokenBase__cNumberTotal Token Count when the person’s latest reply arrived. A conversational run’s token budget counts only the tokens after it.
Tool Call CountToolCallCount__cNumberSystem-maintained Tool Call Count for this durable agent run.
Tool Calls Before ReplyReplyToolCallBase__cNumberTool Call Count when the person’s latest reply arrived. A conversational run’s tool-call budget counts only the calls after it.
Tool Duration MillisecondsToolDurationMs__cNumberSystem-maintained Tool Duration Ms for this durable agent run.
Total Token CountTotalTokenCount__cNumberSystem-maintained Total Token Count for this durable agent run.
Unmetered Model AttemptsUnmeteredModelAttempts__cNumberModel attempts that ended without reported token usage, such as a timeout. Core estimates their input tokens from the request size and counts them toward Max Total Tokens.
Wait Expires AtWaitExpiresAt__cDateTimeSystem-maintained Wait Expires At for this durable agent run.
Waiting CommandWaitingCommand__cLookupSystem-maintained Waiting Command for this durable agent run.
Waiting ReasonWaitingReason__cTextSystem-maintained Waiting Reason for this durable agent run.

Pluto is licensed under the GNU Affero General Public License, version 3 only.