InferenceDetails interface

Details for an inference call

Properties

cacheReadInputTokens

Number of input tokens read from a cache

cacheWriteInputTokens

Number of input tokens written to a cache

endpoint

The endpoint for the inference call

finishReasons

Array of finish reasons

inputTokens

Number of input tokens used

model

The requested model name/identifier. At least one of model or responseModel is required.

operationName

The operation name/type for the inference

outputTokens

Number of output tokens generated

providerName

The provider name (e.g., openai, azure, anthropic)

responseModel

The model name/identifier returned by the provider

thoughtProcess

The thought process used by the agent

Property Details

cacheReadInputTokens

Number of input tokens read from a cache

cacheReadInputTokens?: number

Property Value

number

cacheWriteInputTokens

Number of input tokens written to a cache

cacheWriteInputTokens?: number

Property Value

number

endpoint

The endpoint for the inference call

endpoint?: ServiceEndpoint

Property Value

finishReasons

Array of finish reasons

finishReasons?: string[]

Property Value

string[]

inputTokens

Number of input tokens used

inputTokens?: number

Property Value

number

model

The requested model name/identifier. At least one of model or responseModel is required.

model?: string

Property Value

string

operationName

The operation name/type for the inference

operationName: InferenceOperationType

Property Value

outputTokens

Number of output tokens generated

outputTokens?: number

Property Value

number

providerName

The provider name (e.g., openai, azure, anthropic)

providerName: string

Property Value

string

responseModel

The model name/identifier returned by the provider

responseModel?: string

Property Value

string

thoughtProcess

The thought process used by the agent

thoughtProcess?: string

Property Value

string