feat(ai): preserve raw finish reasons (#38423)
This commit is contained in:
parent
e7ecee5df2
commit
6401eeaea0
31 changed files with 410 additions and 133 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { LLMEvent, type FinishReason, type ProviderMetadata, type Usage } from "../../schema"
|
||||
import { LLMEvent, type FinishReasonDetails, type ProviderMetadata, type Usage } from "../../schema"
|
||||
|
||||
export interface State {
|
||||
readonly stepStarted: boolean
|
||||
|
|
@ -81,7 +81,7 @@ export const finish = (
|
|||
state: State,
|
||||
events: LLMEvent[],
|
||||
input: {
|
||||
readonly reason: FinishReason
|
||||
readonly reason: FinishReasonDetails
|
||||
readonly usage?: Usage
|
||||
readonly providerMetadata?: ProviderMetadata
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue