Skip to main content

BidAiRun

The trace of one Bid Desk AI run on a bid: skill, prompt version, model, tokens, credits, validation errors and output. The model input is shown only as its size.

type BidAiRun {
attempts: Int!
bidId: ID!
cachedInputTokens: Int!
creditsUsedCents: Int!
errorCode: String
feature: String!
finishedAt: DateTime
id: ID!
inputBytes: Int!
inputTokens: Int!
model: String
origin: BidAiOrigin!
output: JSON
outputTokens: Int!
promptSha256: String!
promptVersion: Int!
skillKey: String!
startedAt: DateTime!
status: BidAiRunStatus!
userId: ID!
validationErrors: [String!]
}

Fields​

BidAiRun.attempts ● Int! non-null scalar​

Model calls made, at most two.

BidAiRun.bidId ● ID! non-null scalar​

The bid.

BidAiRun.cachedInputTokens ● Int! non-null scalar​

Input tokens read from the cache.

BidAiRun.creditsUsedCents ● Int! non-null scalar​

AI credits the run used, in hundredths of a credit unit. Not a bid cost.

BidAiRun.errorCode ● String scalar​

Why the run was refused or failed.

BidAiRun.feature ● String! non-null scalar​

The AI feature the run was routed by.

BidAiRun.finishedAt ● DateTime scalar​

When the run ended.

BidAiRun.id ● ID! non-null scalar​

The run's id.

BidAiRun.inputBytes ● Int! non-null scalar​

Size of the model input in bytes; the input itself is not exposed.

BidAiRun.inputTokens ● Int! non-null scalar​

Input tokens over all attempts.

BidAiRun.model ● String scalar​

The model that answered.

BidAiRun.origin ● BidAiOrigin! non-null enum​

Who started the run.

BidAiRun.output ● JSON scalar​

The validated answer.

BidAiRun.outputTokens ● Int! non-null scalar​

Output tokens over all attempts.

BidAiRun.promptSha256 ● String! non-null scalar​

The prompt text's sha256.

BidAiRun.promptVersion ● Int! non-null scalar​

The skill's prompt version.

BidAiRun.skillKey ● String! non-null scalar​

The skill that ran.

BidAiRun.startedAt ● DateTime! non-null scalar​

When the run started.

BidAiRun.status ● BidAiRunStatus! non-null enum​

Where the run ended.

BidAiRun.userId ● ID! non-null scalar​

The person the run acted for.

BidAiRun.validationErrors ● [String!] list scalar​

Why the answer failed its checks.

Returned By​

bidAiRun query ● bidAiRuns query