InferenceDetails interface

推理调用的详细信息

属性

cacheReadInputTokens

从缓存中读取的输入令牌数

cacheWriteInputTokens

写入缓存的输入令牌数

endpoint

推理调用的终结点

finishReasons

完成原因数组

inputTokens

使用的输入令牌数

model

请求的模型名称/标识符。 至少需要一个模型或 responseModel。

operationName

推理的作名称/类型

outputTokens

生成的输出令牌数

providerName

提供程序名称(例如 openai、azure、人类)

responseModel

提供程序返回的模型名称/标识符

thoughtProcess

代理使用的思维过程

属性详细信息

cacheReadInputTokens

从缓存中读取的输入令牌数

cacheReadInputTokens?: number

属性值

number

cacheWriteInputTokens

写入缓存的输入令牌数

cacheWriteInputTokens?: number

属性值

number

endpoint

推理调用的终结点

endpoint?: ServiceEndpoint

属性值

finishReasons

完成原因数组

finishReasons?: string[]

属性值

string[]

inputTokens

使用的输入令牌数

inputTokens?: number

属性值

number

model

请求的模型名称/标识符。 至少需要一个模型或 responseModel。

model?: string

属性值

string

operationName

推理的作名称/类型

operationName: InferenceOperationType

属性值

outputTokens

生成的输出令牌数

outputTokens?: number

属性值

number

providerName

提供程序名称(例如 openai、azure、人类)

providerName: string

属性值

string

responseModel

提供程序返回的模型名称/标识符

responseModel?: string

属性值

string

thoughtProcess

代理使用的思维过程

thoughtProcess?: string

属性值

string