feat(core): widen interleaved reasoning fields
This commit is contained in:
parent
1f2de535aa
commit
f28cc51f12
13 changed files with 140 additions and 37 deletions
|
|
@ -163,7 +163,12 @@ export type SessionMessageProviderState7 = { [x: string]: any }
|
|||
|
||||
export type EventLogSynced = { type: "log.synced"; aggregateID: string; seq?: number }
|
||||
|
||||
export type ModelCapabilities = { tools: boolean; input: Array<string>; output: Array<string> }
|
||||
export type ModelInterleavedField =
|
||||
| "reasoning"
|
||||
| "reasoning_content"
|
||||
| "reasoning_text"
|
||||
| "reasoning_details"
|
||||
| (string & {})
|
||||
|
||||
export type ModelVariant = {
|
||||
id: string
|
||||
|
|
@ -1094,7 +1099,7 @@ export type TuiCommandExecute = {
|
|||
| "prompt.clear"
|
||||
| "prompt.submit"
|
||||
| "agent.cycle"
|
||||
| string
|
||||
| (string & {})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1401,6 +1406,8 @@ export type SessionToolFailed = {
|
|||
}
|
||||
}
|
||||
|
||||
export type ModelInterleaved = true | { field: ModelInterleavedField }
|
||||
|
||||
export type ModelCost = {
|
||||
tier?: { type: "context"; size: number }
|
||||
input: MoneyUSDPerMillionTokens
|
||||
|
|
@ -1885,23 +1892,11 @@ export type SessionMessageCompaction =
|
|||
| SessionMessageCompactionCompleted
|
||||
| SessionMessageCompactionFailed
|
||||
|
||||
export type ModelInfo = {
|
||||
id: string
|
||||
modelID: string
|
||||
providerID: string
|
||||
family?: string
|
||||
name: string
|
||||
package?: string
|
||||
settings?: { [x: string]: JsonValue }
|
||||
headers?: { [x: string]: string }
|
||||
body?: { [x: string]: JsonValue }
|
||||
capabilities: ModelCapabilities
|
||||
variants: Array<ModelVariant>
|
||||
time: { released: number }
|
||||
cost: Array<ModelCost>
|
||||
status: "alpha" | "beta" | "deprecated" | "active"
|
||||
enabled: boolean
|
||||
limit: { context: number; input?: number; output: number }
|
||||
export type ModelCapabilities = {
|
||||
tools: boolean
|
||||
input: Array<string>
|
||||
output: Array<string>
|
||||
interleaved?: ModelInterleaved
|
||||
}
|
||||
|
||||
export type IntegrationOAuthMethod = {
|
||||
|
|
@ -2031,6 +2026,25 @@ export type SessionMessageAssistantTool = {
|
|||
time: { created: number; ran?: number; completed?: number }
|
||||
}
|
||||
|
||||
export type ModelInfo = {
|
||||
id: string
|
||||
modelID: string
|
||||
providerID: string
|
||||
family?: string
|
||||
name: string
|
||||
package?: string
|
||||
settings?: { [x: string]: JsonValue }
|
||||
headers?: { [x: string]: string }
|
||||
body?: { [x: string]: JsonValue }
|
||||
capabilities: ModelCapabilities
|
||||
variants: Array<ModelVariant>
|
||||
time: { released: number }
|
||||
cost: Array<ModelCost>
|
||||
status: "alpha" | "beta" | "deprecated" | "active"
|
||||
enabled: boolean
|
||||
limit: { context: number; input?: number; output: number }
|
||||
}
|
||||
|
||||
export type IntegrationMethod =
|
||||
| IntegrationOAuthMethod
|
||||
| IntegrationCommandMethod
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue