refactor(schema): apply session review decisions (#35793)
This commit is contained in:
parent
d27746e5b3
commit
ed6ad272ec
142 changed files with 4239 additions and 3174 deletions
14
packages/schema/src/token-usage.ts
Normal file
14
packages/schema/src/token-usage.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
export * as TokenUsage from "./token-usage.js"
|
||||
|
||||
import { Schema } from "effect"
|
||||
|
||||
export interface Info extends Schema.Schema.Type<typeof Info> {}
|
||||
export const Info = Schema.Struct({
|
||||
input: Schema.Finite,
|
||||
output: Schema.Finite,
|
||||
reasoning: Schema.Finite,
|
||||
cache: Schema.Struct({
|
||||
read: Schema.Finite,
|
||||
write: Schema.Finite,
|
||||
}),
|
||||
}).annotate({ identifier: "TokenUsage.Info" })
|
||||
Loading…
Add table
Add a link
Reference in a new issue