12 lines
508 B
TypeScript
12 lines
508 B
TypeScript
export * as LLM from "./llm.js"
|
|
|
|
import { Schema } from "effect"
|
|
import { optional } from "./schema.js"
|
|
|
|
export const ProviderMetadata = Schema.Record(Schema.String, Schema.Record(Schema.String, Schema.Unknown)).annotate({
|
|
identifier: "LLM.ProviderMetadata",
|
|
})
|
|
export type ProviderMetadata = Schema.Schema.Type<typeof ProviderMetadata>
|
|
|
|
export const FinishReason = Schema.Literals(["stop", "length", "tool-calls", "content-filter", "error", "unknown"])
|
|
export type FinishReason = typeof FinishReason.Type
|