@sqlrooms/ai-core / ProviderContextDiagnostic
Type Alias: ProviderContextDiagnostic
ProviderContextDiagnostic =
object
Metadata-only measurement of one outbound provider step.
Properties
id
id:
string
recordedAt
recordedAt:
number
role
role:
string
Stable caller-assigned role label, e.g. chat-coordinator.
provider
provider:
string
model
model:
string
sessionId?
optionalsessionId?:string
step
step:
number
Zero-based provider invocation within the owning request.
instructions
instructions:
object
| Name | Type |
|---|---|
chars | number |
bytes | number |
messages
messages:
object
| Name | Type |
|---|---|
count | number |
bytes | number |
tools
tools:
object[]
| Name | Type |
|---|---|
name | string |
schemaBytes | number |
toolSchemaBytes
toolSchemaBytes:
number
sources
sources:
string[]
Names of request-assembly sources; never their content.
preparationMetrics?
optionalpreparationMetrics?:Record<string,number>
Numeric request-preparation facts such as catalog or candidate size.
inputTokens?
optionalinputTokens?:number
Provider-reported input tokens, populated after the step completes.