Saltar al contenido principal

Variable: PromptContextPreviewResponseSchema

const PromptContextPreviewResponseSchema: TObject<{ preview: TObject<{ budget: TObject<{ contextLimit: TInteger; promptTokens: TInteger; reservedForReply: TInteger; }>; chatTemplateId: TUnion<[TString, TNull]>; contextStrategy: TString; diagnostics: TArray<TString>; entries: TArray<TObject<{ content: TString; exclusionReason: TUnion<[TLiteral<"disabled">, TLiteral<"empty">, TLiteral<"manual">, TLiteral<"context-shift">, TLiteral<"final-budget">, TLiteral<"interceptor">, TLiteral<"model-mismatch">, TLiteral<"none">]>; identifier: TString; included: TBoolean; name: TOptional<TString>; order: TInteger; role: TUnion<[TLiteral<"system">, TLiteral<"user">, TLiteral<"assistant">, TLiteral<"tool">, TLiteral<"plugin">]>; source: TString; tokens: TInteger; }>>; model: TString; promptTemplateId: TUnion<[TString, TNull]>; promptTemplateMode: TUnion<[TLiteral<"chat">, TLiteral<"text">]>; providerConfigId: TUnion<[TString, TNull]>; providerKind: TString; providerMessages: TArray<TObject<{ content: TString; name: TOptional<TUnion<[TString, TNull]>>; role: TUnion<[TLiteral<"system">, TLiteral<"user">, TLiteral<"assistant">, TLiteral<"tool">, TLiteral<"plugin">]>; }>>; providerSource: TUnion<[TString, TNull]>; tokenizer: TObject<{ approximate: TBoolean; profile: TString; }>; }>; }>

Defined in: packages/contracts/src/promptAudit.ts:135