Skip to content

uni-flow 公开 API(中文注解)


uni-flow 公开 API(中文注解) / PolicyContext

Interface: PolicyContext

Defined in: layer4/types.ts:140

策略判定时的运行上下文(attempt、用量、耗时等)。

Properties

attempt

attempt: number

Defined in: layer4/types.ts:143


error?

optional error?: Error

Defined in: layer4/types.ts:147


runId

runId: string

Defined in: layer4/types.ts:141


startTime

startTime: number

Defined in: layer4/types.ts:146


totalCost

totalCost: number

Defined in: layer4/types.ts:145


totalTokens

totalTokens: number

Defined in: layer4/types.ts:144


unitId

unitId: string

Defined in: layer4/types.ts:142

MIT Licensed