SYMBOL INDEX (1459 symbols across 282 files) FILE: cookbook/integrations/vercel/app/api/chat/route.ts function POST (line 4) | async function POST(request: Request) { FILE: cookbook/integrations/vercel/app/examples/basic-chatbot/page.tsx function Chat (line 5) | function Chat() { FILE: cookbook/integrations/vercel/app/examples/generate-text/page.tsx function Page (line 7) | function Page() { FILE: cookbook/integrations/vercel/app/examples/generate-ui-streamui/action.tsx type ServerMessage (line 12) | interface ServerMessage { type ClientMessage (line 17) | interface ClientMessage { function continueConversation (line 23) | async function continueConversation( FILE: cookbook/integrations/vercel/app/examples/generate-ui-streamui/joke.ts type Joke (line 9) | type Joke = DeepPartial; FILE: cookbook/integrations/vercel/app/examples/generate-ui-streamui/page.tsx function Home (line 8) | function Home() { FILE: cookbook/integrations/vercel/app/examples/layout.tsx function Layout (line 1) | function Layout({ children }: { children: React.ReactNode }) { FILE: cookbook/integrations/vercel/app/examples/stream-text/page.tsx function Page (line 8) | function Page() { FILE: cookbook/integrations/vercel/app/examples/tools/basic/page.tsx function Page (line 9) | function Page() { FILE: cookbook/integrations/vercel/app/layout.tsx function RootLayout (line 14) | function RootLayout({ FILE: cookbook/integrations/vercel/app/page.tsx function Page (line 3) | function Page() { FILE: cookbook/integrations/vercel/components/ui/button.tsx type ButtonProps (line 36) | interface ButtonProps FILE: cookbook/integrations/vercel/components/ui/input.tsx type InputProps (line 5) | interface InputProps FILE: cookbook/integrations/vercel/core/generate-text.ts function main (line 7) | async function main() { FILE: cookbook/integrations/vercel/core/stream-text.ts function main (line 7) | async function main() { FILE: cookbook/integrations/vercel/core/tools.ts function main (line 8) | async function main() { FILE: cookbook/integrations/vercel/lib/utils.ts function cn (line 4) | function cn(...inputs: ClassValue[]) { FILE: plugins/acuvity/helper.ts type GuardResult (line 3) | interface GuardResult { class GuardName (line 12) | class GuardName { method constructor (line 13) | private constructor(private readonly name: string) {} method toString (line 27) | public toString(): string { method equals (line 31) | public equals(other: GuardName): boolean { function decodeJwt (line 41) | function decodeJwt(token: string) { function getApexUrlFromToken (line 62) | function getApexUrlFromToken(token: string): string | null { class ResponseHelper (line 73) | class ResponseHelper { method evaluate (line 83) | public evaluate( method getGuardValue (line 166) | private getGuardValue( method getTextDetections (line 179) | private getTextDetections( FILE: plugins/acuvity/model.ts type ClosedEnum (line 1) | type ClosedEnum = T[keyof T]; type Modality (line 3) | type Modality = { type TextualdetectionType (line 26) | type TextualdetectionType = ClosedEnum; type Textualdetection (line 31) | type Textualdetection = { type Extraction (line 70) | type Extraction = { FILE: plugins/acuvity/scan.test.ts function getPromptInjectionParameters (line 7) | function getPromptInjectionParameters(): PluginParameters { function getJailBreakParameters (line 15) | function getJailBreakParameters(): PluginParameters { function getHarmfulParameters (line 23) | function getHarmfulParameters(): PluginParameters { function getToxicityParameters (line 31) | function getToxicityParameters(): PluginParameters { function getLanguageParameters (line 39) | function getLanguageParameters(): PluginParameters { function getPIIParameters (line 47) | function getPIIParameters(): PluginParameters { function getPIIRedactParameters (line 61) | function getPIIRedactParameters(): PluginParameters { function getSecretsParameters (line 76) | function getSecretsParameters(): PluginParameters { function getSecretsRedactedParameters (line 91) | function getSecretsRedactedParameters(): PluginParameters { function getLangParameters (line 107) | function getLangParameters(): PluginParameters { function getParameters (line 115) | function getParameters(): PluginParameters { FILE: plugins/acuvity/scan.ts type ScanRequest (line 15) | interface ScanRequest { function evaluateAllParameters (line 190) | function evaluateAllParameters( FILE: plugins/aporia/aporia.test.ts function getParameters (line 4) | function getParameters() { FILE: plugins/aporia/validateProject.ts constant APORIA_BASE_URL (line 10) | const APORIA_BASE_URL = 'https://gr-prd.aporia.com'; FILE: plugins/azure/types.ts type AzureCredentials (line 1) | interface AzureCredentials { FILE: plugins/azure/utils.ts function getAccessTokenFromEntraId (line 5) | async function getAccessTokenFromEntraId( function getAzureManagedIdentityToken (line 59) | async function getAzureManagedIdentityToken( FILE: plugins/bedrock/index.ts constant REQUIRED_CREDENTIAL_KEYS (line 10) | const REQUIRED_CREDENTIAL_KEYS = [ FILE: plugins/bedrock/type.ts type BedrockAccessKeyCreds (line 1) | type BedrockAccessKeyCreds = { type BedrockAssumedRoleCreds (line 9) | type BedrockAssumedRoleCreds = { type BedrockBody (line 16) | type BedrockBody = { type PIIType (line 21) | type PIIType = type BedrockAction (line 54) | interface BedrockAction { type ContentPolicy (line 58) | interface ContentPolicy extends BedrockAction { type WordPolicy (line 70) | interface WordPolicy extends BedrockAction { type PIIFilter (line 74) | interface PIIFilter extends BedrockAction { type BedrockResponse (line 79) | interface BedrockResponse { type BedrockParameters (line 105) | interface BedrockParameters { FILE: plugins/bedrock/util.ts function getAssumedRoleCredentials (line 144) | async function getAssumedRoleCredentials( function parseXml (line 239) | function parseXml(xml: string) { FILE: plugins/crowdstrike-aidr/guardChatCompletion.ts function errorToString (line 141) | function errorToString(response: any): string { FILE: plugins/crowdstrike-aidr/version.ts constant VERSION (line 1) | const VERSION = 'v1.0.0-beta'; FILE: plugins/default/alllowercase.ts function isAllLowerCase (line 9) | function isAllLowerCase(str: string): boolean { FILE: plugins/default/alluppercase.ts function isAllUpperCase (line 9) | function isAllUpperCase(str: string): boolean { FILE: plugins/default/characterCount.ts function countCharacters (line 9) | function countCharacters(text: string): number { FILE: plugins/default/jsonKeys.ts function extractJson (line 10) | function extractJson(text: string): string[] { type BestMatch (line 69) | interface BestMatch { function getExplanation (line 156) | function getExplanation( FILE: plugins/default/jwt.ts type JWKSCacheOptions (line 4) | interface JWKSCacheOptions { function getMatchingKey (line 10) | async function getMatchingKey(token: string, jwks: any) { function fetchAndCacheJWKS (line 20) | async function fetchAndCacheJWKS( FILE: plugins/default/modelRules.ts type RulesData (line 8) | interface RulesData { type RulesShape (line 35) | type RulesShape = { FILE: plugins/default/regexReplace.ts function parseRegex (line 9) | function parseRegex(input: string): RegExp { FILE: plugins/default/sentenceCount.ts function countSentences (line 9) | function countSentences(text: string): number { FILE: plugins/default/validUrls.ts function checkUrl (line 111) | async function checkUrl(target: string): Promise { function checkDNS (line 147) | async function checkDNS(target: string): Promise { FILE: plugins/default/webhook.ts function parseHeaders (line 9) | function parseHeaders(headers: unknown): Record { FILE: plugins/default/wordCount.ts function countWords (line 9) | function countWords(text: string): number { FILE: plugins/exa/online.ts constant BASE_URL (line 9) | const BASE_URL = 'https://api.exa.ai/search'; type SearchResult (line 11) | interface SearchResult { type ExaSearchResponse (line 19) | interface ExaSearchResponse { FILE: plugins/f5-guardrails/scan.ts type F5GuardrailsCredentials (line 14) | interface F5GuardrailsCredentials { type F5GuardrailsResponse (line 20) | interface F5GuardrailsResponse { FILE: plugins/javelin/guardrails.ts type JavelinCredentials (line 9) | interface JavelinCredentials { type GuardrailAssessment (line 15) | interface GuardrailAssessment { type GuardrailsResponse (line 33) | interface GuardrailsResponse { function callJavelinGuardrails (line 37) | async function callJavelinGuardrails( FILE: plugins/lasso/classify.ts constant LASSO_BASE_URL (line 10) | const LASSO_BASE_URL = 'https://server.lasso.security'; type LassoMessage (line 12) | interface LassoMessage { type LassoClassifyRequest (line 17) | interface LassoClassifyRequest { type LassoClassifyResponse (line 21) | interface LassoClassifyResponse { FILE: plugins/lasso/lasso.test.ts function getParameters (line 4) | function getParameters() { FILE: plugins/mistral/index.ts type MistralResponse (line 9) | interface MistralResponse { type GuardrailFunction (line 40) | type GuardrailFunction = keyof MistralResponse['results'][0]['categories']; FILE: plugins/mistral/mistral.test.ts function getParameters (line 5) | function getParameters() { FILE: plugins/pangea/textGuard.ts function errorToString (line 101) | function errorToString(response: any): string { FILE: plugins/pangea/version.ts constant VERSION (line 1) | const VERSION = 'v1.0.0-beta'; FILE: plugins/panw-prisma-airs/intercept.ts constant AIRS_URL (line 9) | const AIRS_URL = FILE: plugins/patronus/globals.ts constant BASE_URL (line 3) | const BASE_URL = 'https://api.patronus.ai/v1/evaluate'; type Position (line 34) | interface Position { type AllLongestPositionsResult (line 41) | interface AllLongestPositionsResult { function findAllLongestPositions (line 46) | function findAllLongestPositions( FILE: plugins/patronus/pii.ts function maskEntities (line 10) | function maskEntities( FILE: plugins/pillar/globals.ts constant PILLAR_BASE_URL (line 3) | const PILLAR_BASE_URL = 'https://api.pillarseclabs.com/api/v1'; FILE: plugins/pillar/pillar.test.ts function getParameters (line 5) | function getParameters( FILE: plugins/portkey/globals.ts constant BASE_URL (line 5) | const BASE_URL = 'https://api.portkey.ai/v1/execute-guardrails'; constant PORTKEY_ENDPOINTS (line 7) | const PORTKEY_ENDPOINTS = { type PIIEntity (line 14) | interface PIIEntity { type PIIResponse (line 19) | interface PIIResponse { type PIIResult (line 24) | interface PIIResult { type LogObjectRequest (line 30) | interface LogObjectRequest { type LogObjectResponse (line 38) | interface LogObjectResponse { type LogObjectMetadata (line 46) | interface LogObjectMetadata extends Record { type LogObject (line 53) | interface LogObject { type PIIParameters (line 60) | interface PIIParameters extends PluginParameters { function generateSpanId (line 137) | function generateSpanId(): string { FILE: plugins/portkey/pii.ts function detectPII (line 20) | async function detectPII( FILE: plugins/promptfoo/globals.ts constant PROMPTFOO_BASE_URL (line 4) | const PROMPTFOO_BASE_URL = 'https://api.promptfoo.dev/v1'; FILE: plugins/promptfoo/types.ts type PromptfooResult (line 2) | interface PromptfooResult { type GuardCategories (line 8) | interface GuardCategories { type GuardCategoryScores (line 13) | interface GuardCategoryScores { type GuardResult (line 18) | interface GuardResult { type PIIEntity (line 25) | interface PIIEntity { type PIICategories (line 32) | interface PIICategories { type PIICategoryScores (line 36) | interface PIICategoryScores { type PIIPayload (line 40) | interface PIIPayload { type PIIResult (line 44) | interface PIIResult { type HarmCategories (line 52) | interface HarmCategories { type HarmCategoryScores (line 69) | interface HarmCategoryScores { type HarmResult (line 86) | interface HarmResult { FILE: plugins/promptsecurity/promptsecurity.test.ts function getParameters (line 4) | function getParameters() { FILE: plugins/qualifire/globals.ts constant BASE_URL (line 3) | const BASE_URL = 'https://proxy.qualifire.ai/api/evaluation/evaluate'; type AvailableTool (line 5) | interface AvailableTool { type ToolCall (line 11) | interface ToolCall { type Message (line 17) | interface Message { FILE: plugins/qualifire/qualifire.test.ts function getParameters (line 28) | function getParameters() { FILE: plugins/sydelabs/sydeguard.ts constant SYDEGUARD_URL (line 9) | const SYDEGUARD_URL = FILE: plugins/sydelabs/sydelabs.test.ts function getParameters (line 4) | function getParameters( FILE: plugins/types.ts type PluginContext (line 1) | interface PluginContext { type PluginParameters (line 8) | interface PluginParameters> { type PluginHandlerResponse (line 13) | interface PluginHandlerResponse { type HookEventType (line 22) | type HookEventType = 'beforeRequestHook' | 'afterRequestHook'; type PluginHandler (line 24) | type PluginHandler

> = ( FILE: plugins/utils.ts type PostOptions (line 3) | interface PostOptions extends RequestInit { type ErrorResponse (line 8) | interface ErrorResponse { class HttpError (line 15) | class HttpError extends Error { method constructor (line 18) | constructor(message: string, response: ErrorResponse) { class TimeoutError (line 25) | class TimeoutError extends Error { method constructor (line 30) | constructor(message: string, url: string, timeout: number, method: str... function setRequestContentPart (line 148) | function setRequestContentPart( function setResponseContentPart (line 180) | function setResponseContentPart( function post (line 221) | async function post( function postWithCloudflareServiceBinding (line 304) | async function postWithCloudflareServiceBinding( FILE: plugins/walledai/walledprotect.ts constant API_URL (line 9) | const API_URL = 'https://services.walled.ai/v1/walled-protect'; constant DEFAULT_PII_LIST (line 11) | const DEFAULT_PII_LIST = [ constant DEFAULT_GREETINGS_LIST (line 21) | const DEFAULT_GREETINGS_LIST = ['Casual & Friendly']; FILE: src/errors/GatewayError.ts class GatewayError (line 1) | class GatewayError extends Error { method constructor (line 2) | constructor( FILE: src/errors/RouterError.ts class RouterError (line 1) | class RouterError extends Error { method constructor (line 2) | constructor( FILE: src/globals.ts constant POWERED_BY (line 3) | const POWERED_BY: string = 'portkey'; constant MAX_RETRY_LIMIT_MS (line 5) | const MAX_RETRY_LIMIT_MS = 60 * 1000; constant POSSIBLE_RETRY_STATUS_HEADERS (line 7) | const POSSIBLE_RETRY_STATUS_HEADERS = [ constant HEADER_KEYS (line 13) | const HEADER_KEYS: Record = { constant RESPONSE_HEADER_KEYS (line 30) | const RESPONSE_HEADER_KEYS: Record = { constant RETRY_STATUS_CODES (line 38) | const RETRY_STATUS_CODES = [429, 500, 502, 503, 504]; constant MAX_RETRIES (line 39) | const MAX_RETRIES = 5; constant REQUEST_TIMEOUT_STATUS_CODE (line 40) | const REQUEST_TIMEOUT_STATUS_CODE = 408; constant PRECONDITION_CHECK_FAILED_STATUS_CODE (line 41) | const PRECONDITION_CHECK_FAILED_STATUS_CODE = 412; constant OPEN_AI (line 43) | const OPEN_AI: string = 'openai'; constant COHERE (line 44) | const COHERE: string = 'cohere'; constant AZURE_OPEN_AI (line 45) | const AZURE_OPEN_AI: string = 'azure-openai'; constant AZURE_AI_INFERENCE (line 46) | const AZURE_AI_INFERENCE: string = 'azure-ai'; constant ANTHROPIC (line 47) | const ANTHROPIC: string = 'anthropic'; constant ANYSCALE (line 48) | const ANYSCALE: string = 'anyscale'; constant PALM (line 49) | const PALM: string = 'palm'; constant TOGETHER_AI (line 50) | const TOGETHER_AI: string = 'together-ai'; constant GOOGLE (line 51) | const GOOGLE: string = 'google'; constant GOOGLE_VERTEX_AI (line 52) | const GOOGLE_VERTEX_AI: string = 'vertex-ai'; constant HUGGING_FACE (line 53) | const HUGGING_FACE: string = 'huggingface'; constant PERPLEXITY_AI (line 54) | const PERPLEXITY_AI: string = 'perplexity-ai'; constant REKA_AI (line 55) | const REKA_AI: string = 'reka-ai'; constant MISTRAL_AI (line 56) | const MISTRAL_AI: string = 'mistral-ai'; constant DEEPINFRA (line 57) | const DEEPINFRA: string = 'deepinfra'; constant NCOMPASS (line 58) | const NCOMPASS: string = 'ncompass'; constant STABILITY_AI (line 59) | const STABILITY_AI: string = 'stability-ai'; constant NOMIC (line 60) | const NOMIC: string = 'nomic'; constant OLLAMA (line 61) | const OLLAMA: string = 'ollama'; constant AI21 (line 62) | const AI21: string = 'ai21'; constant BEDROCK (line 63) | const BEDROCK: string = 'bedrock'; constant GROQ (line 64) | const GROQ: string = 'groq'; constant SEGMIND (line 65) | const SEGMIND: string = 'segmind'; constant JINA (line 66) | const JINA: string = 'jina'; constant FIREWORKS_AI (line 67) | const FIREWORKS_AI: string = 'fireworks-ai'; constant WORKERS_AI (line 68) | const WORKERS_AI: string = 'workers-ai'; constant MOONSHOT (line 69) | const MOONSHOT: string = 'moonshot'; constant OPENROUTER (line 70) | const OPENROUTER: string = 'openrouter'; constant LINGYI (line 71) | const LINGYI: string = 'lingyi'; constant ZHIPU (line 72) | const ZHIPU: string = 'zhipu'; constant NOVITA_AI (line 73) | const NOVITA_AI: string = 'novita-ai'; constant MONSTERAPI (line 74) | const MONSTERAPI: string = 'monsterapi'; constant DEEPSEEK (line 75) | const DEEPSEEK: string = 'deepseek'; constant PREDIBASE (line 76) | const PREDIBASE: string = 'predibase'; constant TRITON (line 77) | const TRITON: string = 'triton'; constant VOYAGE (line 78) | const VOYAGE: string = 'voyage'; constant GITHUB (line 79) | const GITHUB: string = 'github'; constant DEEPBRICKS (line 80) | const DEEPBRICKS: string = 'deepbricks'; constant SILICONFLOW (line 81) | const SILICONFLOW: string = 'siliconflow'; constant CEREBRAS (line 82) | const CEREBRAS: string = 'cerebras'; constant INFERENCENET (line 83) | const INFERENCENET: string = 'inference-net'; constant SAMBANOVA (line 84) | const SAMBANOVA: string = 'sambanova'; constant LEMONFOX_AI (line 85) | const LEMONFOX_AI: string = 'lemonfox-ai'; constant UPSTAGE (line 86) | const UPSTAGE: string = 'upstage'; constant LAMBDA (line 87) | const LAMBDA: string = 'lambda'; constant DASHSCOPE (line 88) | const DASHSCOPE: string = 'dashscope'; constant X_AI (line 89) | const X_AI: string = 'x-ai'; constant CORTEX (line 90) | const CORTEX: string = 'cortex'; constant SAGEMAKER (line 91) | const SAGEMAKER: string = 'sagemaker'; constant NEBIUS (line 92) | const NEBIUS: string = 'nebius'; constant RECRAFTAI (line 93) | const RECRAFTAI: string = 'recraft-ai'; constant MILVUS (line 94) | const MILVUS: string = 'milvus'; constant REPLICATE (line 95) | const REPLICATE: string = 'replicate'; constant LEPTON (line 96) | const LEPTON: string = 'lepton'; constant KLUSTER_AI (line 97) | const KLUSTER_AI: string = 'kluster-ai'; constant NSCALE (line 98) | const NSCALE: string = 'nscale'; constant HYPERBOLIC (line 99) | const HYPERBOLIC: string = 'hyperbolic'; constant BYTEZ (line 100) | const BYTEZ: string = 'bytez'; constant FEATHERLESS_AI (line 101) | const FEATHERLESS_AI: string = 'featherless-ai'; constant KRUTRIM (line 102) | const KRUTRIM: string = 'krutrim'; constant QDRANT (line 103) | const QDRANT: string = 'qdrant'; constant THREE_ZERO_TWO_AI (line 104) | const THREE_ZERO_TWO_AI: string = '302ai'; constant COMETAPI (line 105) | const COMETAPI: string = 'cometapi'; constant MATTERAI (line 106) | const MATTERAI: string = 'matterai'; constant MESHY (line 107) | const MESHY: string = 'meshy'; constant TRIPO3D (line 108) | const TRIPO3D: string = 'tripo3d'; constant NEXTBIT (line 109) | const NEXTBIT: string = 'nextbit'; constant MODAL (line 110) | const MODAL: string = 'modal'; constant Z_AI (line 111) | const Z_AI: string = 'z-ai'; constant ORACLE (line 112) | const ORACLE: string = 'oracle'; constant IO_INTELLIGENCE (line 113) | const IO_INTELLIGENCE: string = 'iointelligence'; constant AIBADGR (line 114) | const AIBADGR: string = 'aibadgr'; constant OVHCLOUD (line 115) | const OVHCLOUD: string = 'ovhcloud'; constant VALID_PROVIDERS (line 117) | const VALID_PROVIDERS = [ constant CONTENT_TYPES (line 194) | const CONTENT_TYPES = { constant MULTIPART_FORM_DATA_ENDPOINTS (line 207) | const MULTIPART_FORM_DATA_ENDPOINTS: endpointStrings[] = [ type BatchEndpoints (line 278) | enum BatchEndpoints { type RateLimiterKeyTypes (line 291) | enum RateLimiterKeyTypes { constant METRICS_KEYS (line 298) | const METRICS_KEYS = { FILE: src/handlers/batchesHandler.ts function batchesHandler (line 8) | function batchesHandler(endpoint: endpointStrings, method: 'POST' | 'GET... FILE: src/handlers/chatCompletionsHandler.ts function chatCompletionsHandler (line 16) | async function chatCompletionsHandler(c: Context): Promise { FILE: src/handlers/completionsHandler.ts function completionsHandler (line 16) | async function completionsHandler(c: Context): Promise { FILE: src/handlers/createSpeechHandler.ts function createSpeechHandler (line 15) | async function createSpeechHandler(c: Context): Promise { FILE: src/handlers/createTranscriptionHandler.ts function createTranscriptionHandler (line 15) | async function createTranscriptionHandler( FILE: src/handlers/createTranslationHandler.ts function createTranslationHandler (line 15) | async function createTranslationHandler(c: Context): Promise { FILE: src/handlers/embeddingsHandler.ts function embeddingsHandler (line 16) | async function embeddingsHandler(c: Context): Promise { FILE: src/handlers/filesHandler.ts function filesHandler (line 8) | function filesHandler( FILE: src/handlers/finetuneHandler.ts constant BODY_SUPPORTED_ENDPOINTS (line 30) | const BODY_SUPPORTED_ENDPOINTS = ['createFinetune']; function finetuneHandler (line 32) | async function finetuneHandler(c: Context) { FILE: src/handlers/handlerUtils.ts function constructRequestBody (line 41) | function constructRequestBody( function constructRequestHeaders (line 78) | function constructRequestHeaders( function constructRequest (line 169) | async function constructRequest( function selectProviderByWeight (line 204) | function selectProviderByWeight(providers: Options[]): Options { function convertHooksShorthand (line 233) | function convertHooksShorthand( function tryPost (line 288) | async function tryPost( function tryTargetsRecursively (line 476) | async function tryTargetsRecursively( function constructConfigFromRequestHeaders (line 836) | function constructConfigFromRequestHeaders( function recursiveAfterRequestHookHandler (line 1182) | async function recursiveAfterRequestHookHandler( function beforeRequestHookHandler (line 1300) | async function beforeRequestHookHandler( FILE: src/handlers/imageEditsHandler.ts function imageEditsHandler (line 16) | async function imageEditsHandler(c: Context): Promise { FILE: src/handlers/imageGenerationsHandler.ts function imageGenerationsHandler (line 16) | async function imageGenerationsHandler(c: Context): Promise { FILE: src/handlers/messagesCountTokensHandler.ts function messagesCountTokensHandler (line 16) | async function messagesCountTokensHandler( FILE: src/handlers/messagesHandler.ts function messagesHandler (line 16) | async function messagesHandler(c: Context): Promise { FILE: src/handlers/modelResponsesHandler.ts function modelResponsesHandler (line 8) | function modelResponsesHandler( FILE: src/handlers/proxyHandler.ts function getRequestData (line 9) | async function getRequestData(request: Request, contentType: string) { function proxyHandler (line 26) | async function proxyHandler(c: Context): Promise { FILE: src/handlers/realtimeHandler.ts function realTimeHandler (line 30) | async function realTimeHandler(c: Context): Promise { FILE: src/handlers/realtimeHandlerNode.ts function realTimeHandlerNode (line 10) | async function realTimeHandlerNode( FILE: src/handlers/responseHandlers.ts function responseHandler (line 38) | async function responseHandler( function createHookResponse (line 184) | function createHookResponse( function afterRequestHookHandler (line 223) | async function afterRequestHookHandler( FILE: src/handlers/retryHandler.ts function fetchWithTimeout (line 4) | async function fetchWithTimeout( FILE: src/handlers/services/cacheService.ts type CacheResponseObject (line 9) | interface CacheResponseObject { class CacheService (line 16) | class CacheService { method constructor (line 17) | constructor( method isEndpointCacheable (line 22) | isEndpointCacheable(endpoint: endpointStrings): boolean { method getFromCacheFunction (line 43) | get getFromCacheFunction() { method getCacheIdentifier (line 47) | get getCacheIdentifier() { method noCacheObject (line 51) | get noCacheObject(): CacheResponseObject { method createResponseObject (line 60) | private createResponseObject( method getCachedResponse (line 78) | async getCachedResponse( FILE: src/handlers/services/hooksService.ts class HooksService (line 7) | class HooksService { method constructor (line 10) | constructor(private requestContext: RequestContext) { method createSpan (line 15) | createSpan(): HookSpan { method hookSpan (line 40) | get hookSpan(): HookSpan { method results (line 44) | get results(): AllHookResults | undefined { method areSyncHooksAvailable (line 48) | get areSyncHooksAvailable(): boolean { method hasFailedHooks (line 60) | hasFailedHooks(hookType: 'beforeRequest' | 'afterRequest' | 'any'): bo... method hasResults (line 78) | hasResults(hookType: 'beforeRequest' | 'afterRequest' | 'any'): boolean { FILE: src/handlers/services/logsService.ts type LogObject (line 36) | interface LogObject { type otlpSpanObject (line 64) | interface otlpSpanObject { class LogsService (line 94) | class LogsService { method constructor (line 95) | constructor(private honoContext: Context) {} method createExecuteToolSpan (line 97) | createExecuteToolSpan( method createLogObject (line 165) | async createLogObject( method requestLogs (line 206) | get requestLogs(): any[] { method addRequestLog (line 210) | addRequestLog(log: any) { class LogObjectBuilder (line 215) | class LogObjectBuilder { method constructor (line 219) | constructor( method clone (line 239) | private clone() { method updateRequestContext (line 278) | updateRequestContext( method addResponse (line 298) | addResponse( method addExecutionTime (line 309) | addExecutionTime(createdAt: Date) { method addTransformedRequest (line 315) | addTransformedRequest( method addCache (line 326) | addCache(cacheStatus?: string, cacheKey?: string) { method addHookSpanId (line 332) | addHookSpanId(hookSpanId: string) { method log (line 338) | log(): this { method isComplete (line 361) | private isComplete(obj: unknown): obj is LogObject { method commit (line 467) | commit(): void { method isDestroyed (line 479) | isDestroyed(): boolean { method [Symbol.dispose] (line 483) | [Symbol.dispose]() { FILE: src/handlers/services/preRequestValidatorService.ts class PreRequestValidatorService (line 6) | class PreRequestValidatorService { method constructor (line 8) | constructor( method getResponse (line 15) | async getResponse(): Promise<{ FILE: src/handlers/services/providerContext.ts class ProviderContext (line 13) | class ProviderContext { method constructor (line 14) | constructor(private provider: string) { method providerConfig (line 20) | get providerConfig(): ProviderConfigs { method apiConfig (line 24) | get apiConfig(): ProviderAPIConfig { method getHeaders (line 28) | async getHeaders(context: RequestContext): Promise> { method getBaseURL (line 43) | async getBaseURL(context: RequestContext): Promise { method getEndpointPath (line 53) | getEndpointPath(context: RequestContext): string { method getProxyPath (line 64) | getProxyPath(context: RequestContext, baseURL: string): string { method getFullURL (line 96) | async getFullURL(context: RequestContext): Promise { method requestHandlers (line 109) | get requestHandlers(): RequestHandlers { method hasRequestHandler (line 113) | hasRequestHandler(context: RequestContext): boolean { method getRequestHandler (line 117) | getRequestHandler( FILE: src/handlers/services/requestContext.ts class RequestContext (line 16) | class RequestContext { method constructor (line 22) | constructor( method requestURL (line 39) | get requestURL(): string { method requestURL (line 43) | set requestURL(requestURL: string) { method overrideParams (line 47) | get overrideParams(): Params { method params (line 51) | get params(): Params { method params (line 62) | set params(params: Params) { method transformedRequestBody (line 66) | set transformedRequestBody(transformedRequestBody: any) { method transformedRequestBody (line 70) | get transformedRequestBody(): any { method getHeader (line 74) | getHeader(key: string): string { method traceId (line 85) | get traceId(): string { method isStreaming (line 89) | get isStreaming(): boolean { method strictOpenAiCompliance (line 99) | get strictOpenAiCompliance(): boolean { method metadata (line 110) | get metadata(): Record { method forwardHeaders (line 118) | get forwardHeaders(): string[] { method customHost (line 127) | get customHost(): string { method requestTimeout (line 135) | get requestTimeout(): number | null { method provider (line 144) | get provider(): string { method normalizeRetryConfig (line 148) | private normalizeRetryConfig(retry?: RetrySettings): RetrySettings { method retryConfig (line 158) | get retryConfig(): RetrySettings { method cacheConfig (line 162) | get cacheConfig(): CacheSettings & { cacheStatus: string } { method hasRetries (line 184) | hasRetries(): boolean { method beforeRequestHooks (line 188) | get beforeRequestHooks(): HookObject[] { method afterRequestHooks (line 195) | get afterRequestHooks(): HookObject[] { method hooksManager (line 202) | get hooksManager(): HooksManager { method transformToProviderRequestAndSave (line 211) | transformToProviderRequestAndSave() { method requestOptions (line 226) | get requestOptions(): any[] { method appendRequestOptions (line 230) | appendRequestOptions(requestOptions: any) { method updateModelPricingConfig (line 237) | updateModelPricingConfig(modelPricingConfig: Record) { FILE: src/handlers/services/responseService.ts type CreateResponseOptions (line 9) | interface CreateResponseOptions { class ResponseService (line 25) | class ResponseService { method constructor (line 26) | constructor( method create (line 31) | async create(options: CreateResponseOptions): Promise<{ method getResponse (line 73) | async getResponse( method updateHeaders (line 99) | updateHeaders( FILE: src/handlers/streamHandler.ts function readUInt32BE (line 19) | function readUInt32BE(buffer: Uint8Array, offset: number) { function getPayloadFromAWSChunk (line 38) | function getPayloadFromAWSChunk(chunk: Uint8Array): string { function concatenateUint8Arrays (line 54) | function concatenateUint8Arrays(a: Uint8Array, b: Uint8Array): Uint8Array { function handleTextResponse (line 211) | async function handleTextResponse( function handleNonStreamingMode (line 235) | async function handleNonStreamingMode( function handleAudioResponse (line 288) | function handleAudioResponse(response: Response) { function handleOctetStreamResponse (line 292) | function handleOctetStreamResponse(response: Response) { function handleImageResponse (line 296) | function handleImageResponse(response: Response) { function handleStreamingMode (line 300) | function handleStreamingMode( function handleJSONToStreamResponse (line 414) | async function handleJSONToStreamResponse( FILE: src/handlers/streamHandlerUtils.ts method transform (line 145) | transform(chunk, controller) { method transform (line 223) | transform(chunk, controller) { method transform (line 250) | transform(chunk, controller) { function createLineSplitter (line 302) | function createLineSplitter(): TransformStream { FILE: src/middlewares/cache/index.ts constant CACHE_STATUS (line 5) | const CACHE_STATUS = { FILE: src/middlewares/hooks/globals.ts constant HOOKS_EVENT_TYPE_PRESETS (line 1) | const HOOKS_EVENT_TYPE_PRESETS = { FILE: src/middlewares/hooks/index.ts class HookSpan (line 18) | class HookSpan { method constructor (line 29) | constructor( method createContext (line 64) | private createContext( method extractRequestText (line 93) | private extractRequestText(requestParams: any): string { method initializeHooks (line 113) | private initializeHooks( method setContextResponse (line 120) | public setContextResponse( method setContextAfterTransform (line 133) | public setContextAfterTransform( method extractResponseText (line 150) | private extractResponseText(responseJSON: Record): string { method addHookResult (line 162) | public addHookResult(eventType: EventType, result: HookResult): void { method resetHookResult (line 170) | public resetHookResult(eventType: EventType): void { method getContext (line 178) | public getContext(): HookSpanContext { method getBeforeRequestHooks (line 182) | public getBeforeRequestHooks(): HookObject[] { method getAfterRequestHooks (line 186) | public getAfterRequestHooks(): HookObject[] { method getParentHookSpanId (line 190) | public getParentHookSpanId(): string | null { method getHooksResult (line 194) | public getHooksResult(): { class HooksManager (line 202) | class HooksManager { method constructor (line 206) | constructor() { method createSpan (line 210) | public createSpan( method setSpanContextResponse (line 237) | public setSpanContextResponse( method executeHooks (line 246) | public async executeHooks( method getSpan (line 277) | public getSpan(spanId: string): HookSpan { method executeFunction (line 282) | private async executeFunction( method executeEachHook (line 328) | private async executeEachHook( method shouldSkipHook (line 449) | private shouldSkipHook(span: HookSpan, hook: HookObject): boolean { method createFeedbackObject (line 466) | private createFeedbackObject( method getCheckIds (line 490) | private getCheckIds( method getHooksToExecute (line 505) | public getHooksToExecute( FILE: src/middlewares/hooks/types.ts type Check (line 1) | interface Check { type HookOnFailObject (line 7) | interface HookOnFailObject { type HookOnSuccessObject (line 11) | interface HookOnSuccessObject { type HookObject (line 17) | interface HookObject { type HookSpanContextRequest (line 29) | interface HookSpanContextRequest { type HookSpanContextResponse (line 37) | interface HookSpanContextResponse { type HookSpanContext (line 45) | interface HookSpanContext { type GuardrailFeedbackMetadata (line 53) | interface GuardrailFeedbackMetadata { type GuardrailFeedback (line 59) | interface GuardrailFeedback { type HookFeedback (line 65) | type HookFeedback = GuardrailFeedback; type GuardrailCheckResult (line 67) | interface GuardrailCheckResult { type GuardrailResult (line 87) | interface GuardrailResult { type HookResult (line 103) | type HookResult = GuardrailResult; type AllHookResults (line 105) | type AllHookResults = { type EventType (line 110) | type EventType = 'beforeRequestHook' | 'afterRequestHook'; type HookType (line 112) | enum HookType { type HandlerOptions (line 117) | interface HandlerOptions { FILE: src/middlewares/log/index.ts constant MAX_RESPONSE_LENGTH (line 5) | const MAX_RESPONSE_LENGTH = 100000; function processLog (line 50) | async function processLog(c: Context, start: number) { FILE: src/middlewares/requestValidator/index.ts constant VALIDATION_PATTERNS (line 7) | const VALIDATION_PATTERNS = { constant DISALLOWED_SCHEMES (line 21) | const DISALLOWED_SCHEMES = ['file://', 'data:', 'gopher:', 'ftp://', 'ft... constant BLOCKED_HOSTS (line 24) | const BLOCKED_HOSTS = [ constant BLOCKED_TLDS (line 34) | const BLOCKED_TLDS = [ constant IPV4_RANGES (line 65) | const IPV4_RANGES = { function isValidCustomHost (line 232) | function isValidCustomHost(customHost: string, c?: Context) { function intToIPv4 (line 343) | function intToIPv4(num: number): string { function ipv4ToInt (line 352) | function ipv4ToInt(ip: string): number { function isValidPort (line 358) | function isValidPort(port: string): boolean { function isIPv4 (line 363) | function isIPv4(parts: string[]): boolean { function isPrivateIPv4 (line 382) | function isPrivateIPv4(ip: string): boolean { function isReservedIPv4 (line 389) | function isReservedIPv4(ip: string): boolean { function isLocalOrPrivateIPv6 (line 396) | function isLocalOrPrivateIPv6(host: string): boolean { function isAlternativeIPRepresentation (line 405) | function isAlternativeIPRepresentation(host: string, parts: string[]): b... FILE: src/providers/302ai/chatComplete.ts type AI302ChatCompleteResponse (line 59) | interface AI302ChatCompleteResponse extends ChatCompletionResponse { type AI302StreamChunk (line 71) | interface AI302StreamChunk { FILE: src/providers/ai21/chatComplete.ts type AI21ChatCompleteResponse (line 110) | interface AI21ChatCompleteResponse { FILE: src/providers/ai21/complete.ts type AI21CompleteResponse (line 68) | interface AI21CompleteResponse { type AI21ErrorResponse (line 88) | interface AI21ErrorResponse { FILE: src/providers/ai21/embed.ts type AI21EmbedResponse (line 25) | interface AI21EmbedResponse { FILE: src/providers/aibadgr/chatComplete.ts type AIBadgrStreamChunk (line 3) | interface AIBadgrStreamChunk { FILE: src/providers/anthropic-base/constants.ts constant ANTHROPIC_MESSAGE_START_EVENT (line 1) | const ANTHROPIC_MESSAGE_START_EVENT = JSON.stringify({ constant ANTHROPIC_MESSAGE_DELTA_EVENT (line 20) | const ANTHROPIC_MESSAGE_DELTA_EVENT = JSON.stringify({ constant ANTHROPIC_MESSAGE_STOP_EVENT (line 34) | const ANTHROPIC_MESSAGE_STOP_EVENT = { constant ANTHROPIC_CONTENT_BLOCK_STOP_EVENT (line 38) | const ANTHROPIC_CONTENT_BLOCK_STOP_EVENT = JSON.stringify({ constant ANTHROPIC_CONTENT_BLOCK_START_EVENT (line 43) | const ANTHROPIC_CONTENT_BLOCK_START_EVENT = JSON.stringify({ FILE: src/providers/anthropic-base/types.ts type AnthropicMessageStartEvent (line 1) | interface AnthropicMessageStartEvent { type AnthropicMessageDeltaEvent (line 20) | interface AnthropicMessageDeltaEvent { FILE: src/providers/anthropic-base/utils/streamGenerator.ts constant MESSAGE_STOP_EVENT (line 29) | const MESSAGE_STOP_EVENT = `event: message_stop\ndata: {"type": "message... FILE: src/providers/anthropic/chatComplete.ts type AnthropicTool (line 30) | interface AnthropicTool extends PromptCache { type AnthropicToolResultContentItem (line 65) | interface AnthropicToolResultContentItem { type AnthropicBase64ImageContentItem (line 80) | interface AnthropicBase64ImageContentItem { type AnthropicUrlImageContentItem (line 89) | interface AnthropicUrlImageContentItem { type AnthropicTextContentItem (line 97) | interface AnthropicTextContentItem { type AnthropicUrlPdfContentItem (line 102) | interface AnthropicUrlPdfContentItem { type AnthropicBase64PdfContentItem (line 110) | interface AnthropicBase64PdfContentItem { type AnthropicPlainTextContentItem (line 119) | interface AnthropicPlainTextContentItem { type AnthropicMessageContentItem (line 128) | type AnthropicMessageContentItem = type AnthropicMessage (line 137) | interface AnthropicMessage extends Message, PromptCache { type AnthorpicTextContentItem (line 474) | interface AnthorpicTextContentItem { type AnthropicToolContentItem (line 479) | interface AnthropicToolContentItem { type AnthropicContentItem (line 486) | type AnthropicContentItem = AnthorpicTextContentItem | AnthropicToolCont... type AnthropicChatCompleteResponse (line 488) | interface AnthropicChatCompleteResponse { type AnthropicChatCompleteStreamResponse (line 504) | interface AnthropicChatCompleteStreamResponse { FILE: src/providers/anthropic/complete.ts type AnthropicCompleteResponse (line 65) | interface AnthropicCompleteResponse { FILE: src/providers/anthropic/types.ts type AnthropicStreamState (line 1) | type AnthropicStreamState = { type AnthropicErrorObject (line 15) | interface AnthropicErrorObject { type AnthropicErrorResponse (line 20) | interface AnthropicErrorResponse { type ANTHROPIC_STOP_REASON (line 26) | enum ANTHROPIC_STOP_REASON { FILE: src/providers/anyscale/chatComplete.ts type AnyscaleChatCompleteResponse (line 104) | interface AnyscaleChatCompleteResponse extends ChatCompletionResponse {} type AnyscaleValidationErrorResponse (line 106) | interface AnyscaleValidationErrorResponse { type AnyscaleErrorResponse (line 114) | interface AnyscaleErrorResponse extends ErrorResponse {} type AnyscaleStreamChunk (line 116) | interface AnyscaleStreamChunk { FILE: src/providers/anyscale/complete.ts type AnyscaleCompleteResponse (line 77) | interface AnyscaleCompleteResponse extends CompletionResponse {} type AnyscaleCompleteStreamChunk (line 78) | interface AnyscaleCompleteStreamChunk { FILE: src/providers/anyscale/embed.ts type AnyscaleEmbedResponse (line 26) | interface AnyscaleEmbedResponse extends EmbedResponse {} FILE: src/providers/azure-ai-inference/api.ts constant NON_INFERENCE_ENDPOINTS (line 11) | const NON_INFERENCE_ENDPOINTS = [ FILE: src/providers/azure-ai-inference/chatComplete.ts type AzureAIInferenceChatCompleteResponse (line 128) | interface AzureAIInferenceChatCompleteResponse extends ChatCompletionRes... FILE: src/providers/azure-ai-inference/complete.ts type AzureAIInferenceCompleteResponse (line 54) | interface AzureAIInferenceCompleteResponse extends CompletionResponse {} FILE: src/providers/azure-ai-inference/embed.ts type AzureAIInferenceEmbedResponse (line 19) | interface AzureAIInferenceEmbedResponse extends EmbedResponse {} FILE: src/providers/azure-openai/chatComplete.ts type AzureOpenAIChatCompleteResponse (line 130) | interface AzureOpenAIChatCompleteResponse extends ChatCompletionResponse {} FILE: src/providers/azure-openai/complete.ts type AzureOpenAICompleteResponse (line 72) | interface AzureOpenAICompleteResponse extends CompletionResponse {} FILE: src/providers/azure-openai/embed.ts type AzureOpenAIEmbedResponse (line 29) | interface AzureOpenAIEmbedResponse extends EmbedResponse {} FILE: src/providers/azure-openai/imageGenerate.ts type AzureOpenAIImageObject (line 37) | interface AzureOpenAIImageObject { type AzureOpenAIImageGenerateResponse (line 43) | interface AzureOpenAIImageGenerateResponse extends ImageGenerateResponse { FILE: src/providers/azure-openai/utils.ts function getAccessTokenFromEntraId (line 6) | async function getAccessTokenFromEntraId( function getAzureManagedIdentityToken (line 43) | async function getAzureManagedIdentityToken( function getAzureWorkloadIdentityToken (line 71) | async function getAzureWorkloadIdentityToken( FILE: src/providers/bedrock/api.ts type BedrockAPIConfigInterface (line 14) | interface BedrockAPIConfigInterface extends Omit): string { function importPrivateKey (line 66) | async function importPrivateKey(pem: string): Promise { constant OPENAI_AUDIO_FORMAT_TO_VERTEX_MIME_TYPE_MAPPING (line 716) | const OPENAI_AUDIO_FORMAT_TO_VERTEX_MIME_TYPE_MAPPING = { FILE: src/providers/google/chatComplete.ts constant SYSTEM_INSTRUCTION_DISABLED_MODELS (line 114) | const SYSTEM_INSTRUCTION_DISABLED_MODELS = [ type GoogleMessageRole (line 123) | type GoogleMessageRole = 'user' | 'model' | 'system' | 'function'; type GoogleFunctionCallMessagePart (line 125) | interface GoogleFunctionCallMessagePart { type GoogleFunctionResponseMessagePart (line 129) | interface GoogleFunctionResponseMessagePart { type GoogleMessagePart (line 139) | type GoogleMessagePart = type GoogleInlineDataMessagePart (line 146) | interface GoogleInlineDataMessagePart { type GoogleFileDataMessagePart (line 153) | interface GoogleFileDataMessagePart { type GoogleMessage (line 159) | interface GoogleMessage { type GoogleToolConfig (line 164) | interface GoogleToolConfig { type GoogleToolChoiceType (line 193) | type GoogleToolChoiceType = 'AUTO' | 'ANY' | 'NONE'; type GoogleErrorResponse (line 509) | interface GoogleErrorResponse { type GoogleGenerateFunctionCall (line 518) | interface GoogleGenerateFunctionCall { type GoogleResponseCandidate (line 523) | interface GoogleResponseCandidate { type GoogleGenerateContentResponse (line 563) | interface GoogleGenerateContentResponse { FILE: src/providers/google/embed.ts type GoogleEmbedResponse (line 40) | interface GoogleEmbedResponse { FILE: src/providers/google/types.ts type GOOGLE_GENERATE_CONTENT_FINISH_REASON (line 3) | enum GOOGLE_GENERATE_CONTENT_FINISH_REASON { type PortkeyGeminiParams (line 17) | interface PortkeyGeminiParams extends Params { FILE: src/providers/groq/chatComplete.ts type GroqChatCompleteResponse (line 8) | interface GroqChatCompleteResponse extends ChatCompletionResponse {} type GroqErrorResponse (line 10) | interface GroqErrorResponse extends ErrorResponse {} type GroqStreamChunkUsage (line 12) | interface GroqStreamChunkUsage { type GroqStreamChunk (line 22) | interface GroqStreamChunk { FILE: src/providers/huggingface/chatComplete.ts type HuggingfaceChatCompleteResponse (line 13) | interface HuggingfaceChatCompleteResponse extends ChatCompletionResponse {} FILE: src/providers/huggingface/complete.ts type HuggingfaceCompleteResponse (line 8) | interface HuggingfaceCompleteResponse extends CompletionResponse {} FILE: src/providers/huggingface/types.ts type HuggingfaceErrorResponse (line 1) | interface HuggingfaceErrorResponse { FILE: src/providers/hyperbolic/api.ts constant HYPERBOLIC_API_URL (line 3) | const HYPERBOLIC_API_URL = 'https://api.hyperbolic.xyz'; FILE: src/providers/hyperbolic/chatComplete.ts type HyperbolicStreamChunk (line 2) | interface HyperbolicStreamChunk { FILE: src/providers/hyperbolic/imageGenerate.ts type HyperbolicImageObject (line 25) | interface HyperbolicImageObject { type HyperbolicImageGenerateResponse (line 31) | interface HyperbolicImageGenerateResponse { FILE: src/providers/inference-net/api.ts method headers (line 5) | headers({ providerOptions }) { method getEndpoint (line 9) | getEndpoint({ fn }) { FILE: src/providers/jina/embed.ts type JinaEmbedResponse (line 27) | interface JinaEmbedResponse extends EmbedResponse {} type JinaErrorResponse (line 29) | interface JinaErrorResponse { FILE: src/providers/kluster-ai/chatComplete.ts type KlusterAIChatCompleteResponse (line 5) | interface KlusterAIChatCompleteResponse extends ChatCompletionResponse {} FILE: src/providers/krutrim/chatComplete.ts type KrutrimChatCompleteResponse (line 5) | interface KrutrimChatCompleteResponse extends ChatCompletionResponse {} type KrutrimChatCompleteErrorResponse (line 6) | interface KrutrimChatCompleteErrorResponse extends ErrorResponse { FILE: src/providers/lambda/api.ts method headers (line 5) | headers({ providerOptions }) { method getEndpoint (line 12) | getEndpoint({ fn }) { FILE: src/providers/lemonfox-ai/chatComplete.ts type LemonfoxAIStreamChunk (line 3) | interface LemonfoxAIStreamChunk { FILE: src/providers/lemonfox-ai/imageGenerate.ts type LemonfoxAIImageObject (line 32) | interface LemonfoxAIImageObject { type LemonfoxAIImageGenerateResponse (line 37) | interface LemonfoxAIImageGenerateResponse extends ImageGenerateResponse { FILE: src/providers/lepton/api.ts constant LEPTON_API_URL (line 3) | const LEPTON_API_URL = 'https://api.lepton.ai'; FILE: src/providers/lepton/chatComplete.ts type LeptonChatCompleteResponse (line 9) | interface LeptonChatCompleteResponse extends ChatCompletionResponse {} type LeptonStreamChunk (line 150) | interface LeptonStreamChunk { FILE: src/providers/lepton/complete.ts type LeptonCompleteResponse (line 5) | interface LeptonCompleteResponse extends CompletionResponse {} type LeptonCompleteStreamChunk (line 142) | interface LeptonCompleteStreamChunk { FILE: src/providers/lingyi/chatComplete.ts type LingyiChatCompleteResponse (line 57) | interface LingyiChatCompleteResponse extends ChatCompletionResponse { type LingyiErrorResponse (line 69) | interface LingyiErrorResponse { type LingyiStreamChunk (line 77) | interface LingyiStreamChunk { FILE: src/providers/matterai/api.ts constant DEFAULT_MATTERAI_BASE_URL (line 3) | const DEFAULT_MATTERAI_BASE_URL = 'https://api.matterai.so/v1'; FILE: src/providers/matterai/chatComplete.ts type MatterAIStreamChunk (line 15) | interface MatterAIStreamChunk { FILE: src/providers/mistral-ai/chatComplete.ts type MistralToolCallFunction (line 105) | interface MistralToolCallFunction { type MistralToolCall (line 110) | interface MistralToolCall { type MistralAIChatCompleteResponse (line 116) | interface MistralAIChatCompleteResponse extends ChatCompletionResponse { type MistralAIErrorResponse (line 128) | interface MistralAIErrorResponse { type MistralAIStreamChunk (line 136) | interface MistralAIStreamChunk { FILE: src/providers/mistral-ai/embed.ts type MistralAIEmbedResponse (line 29) | interface MistralAIEmbedResponse extends EmbedResponse {} FILE: src/providers/mistral-ai/types.ts type MISTRAL_AI_FINISH_REASON (line 1) | enum MISTRAL_AI_FINISH_REASON { FILE: src/providers/modal/api.ts method headers (line 5) | headers({ providerOptions }) { method getEndpoint (line 12) | getEndpoint({ fn }) { FILE: src/providers/monsterapi/chatComplete.ts type MonsterAPIErrorResponse (line 60) | interface MonsterAPIErrorResponse { FILE: src/providers/moonshot/chatComplete.ts type MoonshotChatCompleteResponse (line 58) | interface MoonshotChatCompleteResponse extends ChatCompletionResponse { type MoonshotErrorResponse (line 70) | interface MoonshotErrorResponse { type MoonshotStreamChunk (line 78) | interface MoonshotStreamChunk { FILE: src/providers/ncompass/chatComplete.ts type NCompassErrorResponse (line 82) | interface NCompassErrorResponse { type NCompassStreamChunk (line 90) | interface NCompassStreamChunk { FILE: src/providers/nebius/api.ts method headers (line 5) | headers({ providerOptions }) { method getEndpoint (line 9) | getEndpoint({ fn }) { FILE: src/providers/nextbit/api.ts method headers (line 5) | headers({ providerOptions }) { method getEndpoint (line 9) | getEndpoint({ fn }) { FILE: src/providers/nomic/embed.ts type NomicEmbedResponse (line 31) | interface NomicEmbedResponse { type NomicValidationErrorResponse (line 40) | interface NomicValidationErrorResponse { type NomicErrorResponse (line 48) | interface NomicErrorResponse { FILE: src/providers/novita-ai/chatComplete.ts type NovitaAIChatCompleteResponse (line 86) | interface NovitaAIChatCompleteResponse extends ChatCompletionResponse { type NovitaAIErrorResponse (line 94) | interface NovitaAIErrorResponse { type NovitaAIOpenAICompatibleErrorResponse (line 103) | interface NovitaAIOpenAICompatibleErrorResponse extends ErrorResponse {} type NovitaAIChatCompletionStreamChunk (line 105) | interface NovitaAIChatCompletionStreamChunk { FILE: src/providers/novita-ai/complete.ts type NovitaAICompleteResponse (line 51) | interface NovitaAICompleteResponse extends CompletionResponse { type NovitaAICompletionStreamChunk (line 59) | interface NovitaAICompletionStreamChunk { FILE: src/providers/ollama/chatComplete.ts type OllamaChatCompleteResponse (line 88) | interface OllamaChatCompleteResponse extends ChatCompletionResponse { type OllamaStreamChunk (line 92) | interface OllamaStreamChunk { FILE: src/providers/ollama/embed.ts type OllamaEmbedResponse (line 21) | interface OllamaEmbedResponse extends EmbedResponse { type OllamaErrorResponse (line 25) | interface OllamaErrorResponse { FILE: src/providers/open-ai-base/constants.ts constant RESPONSE_ERROR_EVENT (line 24) | const RESPONSE_ERROR_EVENT: ResponseErrorEvent = { constant RESPONSE_CREATED_EVENT (line 32) | const RESPONSE_CREATED_EVENT: ResponseCreatedEvent = { constant RESPONSE_IN_PROGRESS_EVENT (line 69) | const RESPONSE_IN_PROGRESS_EVENT: ResponseInProgressEvent = { constant RESPONSE_OUTPUT_MESSAGE_ITEM_ADDED_EVENT (line 106) | const RESPONSE_OUTPUT_MESSAGE_ITEM_ADDED_EVENT: ResponseOutputItemAddedE... constant RESPONSE_OUTPUT_MESSAGE_OUTPUT_TEXT_CONTENT_PART_ADDED_EVENT (line 119) | const RESPONSE_OUTPUT_MESSAGE_OUTPUT_TEXT_CONTENT_PART_ADDED_EVENT: Resp... constant RESPONSE_OUTPUT_MESSAGE_REFUSAL_CONTENT_PART_ADDED_EVENT (line 132) | const RESPONSE_OUTPUT_MESSAGE_REFUSAL_CONTENT_PART_ADDED_EVENT: Response... constant RESPONSE_OUTPUT_TEXT_DELTA_EVENT (line 144) | const RESPONSE_OUTPUT_TEXT_DELTA_EVENT: ResponseTextDeltaEvent = { constant RESPONSE_OUTPUT_TEXT_ANNOTATION_ADDED_EVENT (line 152) | const RESPONSE_OUTPUT_TEXT_ANNOTATION_ADDED_EVENT: ResponseTextAnnotatio... constant RESPONSE_OUTPUT_TEXT_DONE_EVENT (line 166) | const RESPONSE_OUTPUT_TEXT_DONE_EVENT: ResponseTextDoneEvent = { constant RESPONSE_OUTPUT_REFUSAL_DELTA_EVENT (line 174) | const RESPONSE_OUTPUT_REFUSAL_DELTA_EVENT: ResponseRefusalDeltaEvent = { constant RESPONSE_OUTPUT_REFUSAL_DONE_EVENT (line 182) | const RESPONSE_OUTPUT_REFUSAL_DONE_EVENT: ResponseRefusalDoneEvent = { constant RESPONSE_OUTPUT_MESSAGE_REFUSAL_CONTENT_PART_DONE_EVENT (line 190) | const RESPONSE_OUTPUT_MESSAGE_REFUSAL_CONTENT_PART_DONE_EVENT: ResponseC... constant RESPONSE_OUTPUT_MESSAGE_OUTPUT_TEXT_CONTENT_PART_DONE_EVENT (line 202) | const RESPONSE_OUTPUT_MESSAGE_OUTPUT_TEXT_CONTENT_PART_DONE_EVENT: Respo... constant RESPONSE_OUTPUT_MESSAGE_ITEM_DONE_EVENT (line 216) | const RESPONSE_OUTPUT_MESSAGE_ITEM_DONE_EVENT: ResponseOutputItemDoneEve... constant RESPONSE_OUTPUT_FUNCTION_CALL_ITEM_ADDED_EVENT (line 236) | const RESPONSE_OUTPUT_FUNCTION_CALL_ITEM_ADDED_EVENT: ResponseOutputItem... constant RESPONSE_OUTPUT_FUNCTION_CALL_ARGUMENTS_DELTA_EVENT (line 251) | const RESPONSE_OUTPUT_FUNCTION_CALL_ARGUMENTS_DELTA_EVENT: ResponseFunct... constant RESPONSE_OUTPUT_FUNCTION_CALL_ARGUMENTS_DONE_EVENT (line 260) | const RESPONSE_OUTPUT_FUNCTION_CALL_ARGUMENTS_DONE_EVENT: ResponseFuncti... constant RESPONSE_OUTPUT_FUNCTION_CALL_ITEM_DONE_EVENT (line 269) | const RESPONSE_OUTPUT_FUNCTION_CALL_ITEM_DONE_EVENT: ResponseOutputItemD... constant RESPONSE_OUTPUT_WEB_SEARCH_ITEM_ADDED_EVENT (line 284) | const RESPONSE_OUTPUT_WEB_SEARCH_ITEM_ADDED_EVENT: ResponseOutputItemAdd... constant RESPONSE_OUTPUT_WEB_SEARCH_CALL_IN_PROGRESS_EVENT (line 296) | const RESPONSE_OUTPUT_WEB_SEARCH_CALL_IN_PROGRESS_EVENT: ResponseWebSear... constant RESPONSE_OUTPUT_WEB_SEARCH_CALL_SEARCHING_EVENT (line 304) | const RESPONSE_OUTPUT_WEB_SEARCH_CALL_SEARCHING_EVENT: ResponseWebSearch... constant RESPONSE_OUTPUT_WEB_SEARCH_CALL_COMPLETED_EVENT (line 312) | const RESPONSE_OUTPUT_WEB_SEARCH_CALL_COMPLETED_EVENT: ResponseWebSearch... constant RESPONSE_OUTPUT_WEB_SEARCH_ITEM_DONE_EVENT (line 319) | const RESPONSE_OUTPUT_WEB_SEARCH_ITEM_DONE_EVENT: ResponseOutputItemDone... constant RESPONSE_OUTPUT_FILE_SEARCH_ITEM_ADDED_EVENT (line 330) | const RESPONSE_OUTPUT_FILE_SEARCH_ITEM_ADDED_EVENT: ResponseOutputItemAd... constant RESPONSE_OUTPUT_FILE_SEARCH_CALL_IN_PROGRESS_EVENT (line 343) | const RESPONSE_OUTPUT_FILE_SEARCH_CALL_IN_PROGRESS_EVENT: ResponseFileSe... constant RESPONSE_OUTPUT_FILE_SEARCH_CALL_SEARCHING_EVENT (line 350) | const RESPONSE_OUTPUT_FILE_SEARCH_CALL_SEARCHING_EVENT: ResponseFileSear... constant RESPONSE_OUTPUT_FILE_SEARCH_CALL_COMPLETED_EVENT (line 357) | const RESPONSE_OUTPUT_FILE_SEARCH_CALL_COMPLETED_EVENT: ResponseFileSear... constant RESPONSE_OUTPUT_FILE_SEARCH_ITEM_DONE_EVENT (line 364) | const RESPONSE_OUTPUT_FILE_SEARCH_ITEM_DONE_EVENT: ResponseOutputItemDon... constant RESPONSE_OUTPUT_COMPUTER_CALL_ITEM_ADDED_EVENT (line 377) | const RESPONSE_OUTPUT_COMPUTER_CALL_ITEM_ADDED_EVENT: ResponseOutputItem... constant RESPONSE_OUTPUT_COMPUTER_CALL_ITEM_DONE_EVENT (line 391) | const RESPONSE_OUTPUT_COMPUTER_CALL_ITEM_DONE_EVENT: ResponseOutputItemD... constant RESPONSE_OUTPUT_REASONING_ITEM_ADDED_EVENT (line 405) | const RESPONSE_OUTPUT_REASONING_ITEM_ADDED_EVENT: ResponseOutputItemAdde... constant RESPONSE_OUTPUT_REASONING_ITEM_DONE_EVENT (line 416) | const RESPONSE_OUTPUT_REASONING_ITEM_DONE_EVENT: ResponseOutputItemDoneE... FILE: src/providers/open-ai-base/index.ts type CustomTransformer (line 18) | type CustomTransformer = ( type DefaultValues (line 23) | type DefaultValues = { FILE: src/providers/openai/chatComplete.ts type OpenAIChatCompleteResponse (line 135) | interface OpenAIChatCompleteResponse extends ChatCompletionResponse { FILE: src/providers/openai/complete.ts type OpenAICompleteResponse (line 83) | interface OpenAICompleteResponse extends CompletionResponse { FILE: src/providers/openai/embed.ts type OpenAIEmbedResponse (line 29) | interface OpenAIEmbedResponse extends EmbedResponse {} FILE: src/providers/openai/imageGenerate.ts type OpenAIImageObject (line 37) | interface OpenAIImageObject { type OpenAIImageGenerateResponse (line 43) | interface OpenAIImageGenerateResponse extends ImageGenerateResponse { FILE: src/providers/openrouter/chatComplete.ts type OpenrouterUsageDetails (line 104) | interface OpenrouterUsageDetails { type OpenrouterChatCompleteResponse (line 121) | interface OpenrouterChatCompleteResponse extends ChatCompletionResponse { type OpenrouterErrorResponse (line 135) | interface OpenrouterErrorResponse { type OpenrouterStreamChunk (line 143) | interface OpenrouterStreamChunk { FILE: src/providers/openrouter/utils.ts type OpenrouterUsageParam (line 3) | interface OpenrouterUsageParam { type OpenRouterParams (line 7) | interface OpenRouterParams extends Params { type OpenrouterReasoningParam (line 15) | type OpenrouterReasoningParam = { FILE: src/providers/oracle/types/ChatDetails.ts type OracleMessageRole (line 10) | type OracleMessageRole = type ChatDetails (line 17) | interface ChatDetails { type ServingMode (line 26) | interface ServingMode { type DedicatedServingMode (line 30) | interface DedicatedServingMode extends ServingMode { type OnDemandServingMode (line 39) | interface OnDemandServingMode extends ServingMode { type ChatContent (line 48) | interface ChatContent { type Message (line 53) | interface Message { type StreamOptions (line 62) | interface StreamOptions { type TextContent (line 70) | interface TextContent extends ChatContent { type Prediction (line 79) | interface Prediction { type StaticContent (line 83) | interface StaticContent extends Prediction { type ResponseFormat (line 93) | interface ResponseFormat { type TextResponseFormat (line 97) | interface TextResponseFormat extends ResponseFormat { type JsonObjectResponseFormat (line 101) | interface JsonObjectResponseFormat extends ResponseFormat { type ResponseJsonSchema (line 105) | interface ResponseJsonSchema { type JsonSchemaResponseFormat (line 125) | interface JsonSchemaResponseFormat extends ResponseFormat { type ToolChoice (line 131) | interface ToolChoice { type ToolChoiceFunction (line 135) | interface ToolChoiceFunction extends ToolChoice { type ToolChoiceNone (line 144) | interface ToolChoiceNone extends ToolChoice { type ToolChoiceAuto (line 148) | interface ToolChoiceAuto extends ToolChoice { type ToolChoiceRequired (line 152) | interface ToolChoiceRequired extends ToolChoice { type ToolDefinition (line 156) | interface ToolDefinition { type ApproximateLocation (line 163) | interface ApproximateLocation { type WebSearchOptions (line 182) | interface WebSearchOptions { type SearchContextSize (line 195) | type SearchContextSize = 'HIGH' | 'MEDIUM' | 'LOW'; type BaseChatRequest (line 198) | interface BaseChatRequest { type GenericChatRequest (line 202) | interface GenericChatRequest extends BaseChatRequest { type ReasoningEffort (line 330) | type ReasoningEffort = 'minimal' | 'low' | 'medium' | 'high'; type Verbosity (line 331) | type Verbosity = number; type ServiceTier (line 332) | type ServiceTier = string; type CohereMessage (line 335) | interface CohereMessage { type CohereResponseFormat (line 339) | interface CohereResponseFormat { type CohereResponseTextFormat (line 343) | interface CohereResponseTextFormat extends CohereResponseFormat { type CohereResponseJsonFormat (line 347) | interface CohereResponseJsonFormat extends CohereResponseFormat { type CohereParameterDefinition (line 356) | interface CohereParameterDefinition { type CohereTool (line 362) | interface CohereTool { type CohereToolCall (line 377) | interface CohereToolCall { type CohereToolResult (line 388) | interface CohereToolResult { type CohereChatRequest (line 396) | interface CohereChatRequest extends BaseChatRequest { type PromptTruncation (line 530) | type PromptTruncation = 'AUTO_PRESERVE_ORDER' | 'OFF'; type CitationQuality (line 531) | type CitationQuality = 'FAST' | 'ACCURATE'; type SafetyMode (line 532) | type SafetyMode = 'CONTEXTUAL' | 'STRICT' | 'OFF'; function getJsonObj (line 536) | function getJsonObj(obj: ChatDetails): object { function getDeserializedJsonObj (line 547) | function getDeserializedJsonObj(obj: ChatDetails): object { FILE: src/providers/oracle/types/GenericChatResponse.ts type OracleErrorResponse (line 7) | interface OracleErrorResponse { type OracleChatCompleteResponse (line 12) | interface OracleChatCompleteResponse { type GenericChatResponse (line 19) | interface GenericChatResponse { type ChatContent (line 37) | interface ChatContent { type Message (line 42) | interface Message { type SystemMessage (line 51) | interface SystemMessage extends Message { type ToolCall (line 60) | interface ToolCall { type UrlCitation (line 71) | interface UrlCitation { type Annotation (line 90) | interface Annotation { type AssistantMessage (line 98) | interface AssistantMessage extends Message { type UserMessage (line 119) | interface UserMessage extends Message { type ToolMessage (line 128) | interface ToolMessage extends Message { type DeveloperMessage (line 137) | interface DeveloperMessage extends Message { type Logprobs (line 146) | interface Logprobs { type CompletionTokensDetails (line 165) | interface CompletionTokensDetails { type PromptTokensDetails (line 185) | interface PromptTokensDetails { type Usage (line 196) | interface Usage { type SearchEntryPoint (line 213) | interface SearchEntryPoint { type GroundingWebChunk (line 220) | interface GroundingWebChunk { type GroundingChunk (line 235) | interface GroundingChunk { type GroundingSupportSegment (line 239) | interface GroundingSupportSegment { type GroundingSupport (line 254) | interface GroundingSupport { type GroundingMetadata (line 262) | interface GroundingMetadata { type ChatChoice (line 278) | interface ChatChoice { function getJsonObj (line 306) | function getJsonObj( function getDeserializedJsonObj (line 321) | function getDeserializedJsonObj( FILE: src/providers/oracle/utils.ts type OCIConfig (line 28) | interface OCIConfig { type SigningHeaders (line 37) | interface SigningHeaders { class OCIRequestSigner (line 41) | class OCIRequestSigner { method constructor (line 45) | constructor(config: OCIConfig) { method signRequest (line 60) | public async signRequest( FILE: src/providers/ovhcloud/api.ts constant DEFAULT_OVHCLOUD_BASE_URL (line 3) | const DEFAULT_OVHCLOUD_BASE_URL = FILE: src/providers/ovhcloud/chatComplete.ts type OVHcloudStreamChunk (line 15) | interface OVHcloudStreamChunk { FILE: src/providers/palm/embed.ts type embedding (line 21) | interface embedding { type PalmEmbedResponse (line 25) | interface PalmEmbedResponse { FILE: src/providers/perplexity-ai/chatComplete.ts type PerplexityAIChatChoice (line 91) | interface PerplexityAIChatChoice { type PerplexityAIChatCompleteResponse (line 104) | interface PerplexityAIChatCompleteResponse { type PerplexityAIErrorResponse (line 118) | interface PerplexityAIErrorResponse { type PerplexityAIChatCompletionStreamChunk (line 126) | interface PerplexityAIChatCompletionStreamChunk { FILE: src/providers/predibase/chatComplete.ts type PredibaseChatCompleteResponse (line 96) | interface PredibaseChatCompleteResponse extends ChatCompletionResponse { type PredibaseErrorResponse (line 108) | interface PredibaseErrorResponse extends ErrorResponse {} type PredibaseChatChoice (line 150) | interface PredibaseChatChoice { type PredibaseChatCompletionStreamChunk (line 163) | interface PredibaseChatCompletionStreamChunk { FILE: src/providers/recraft-ai/imageGenerate.ts type RecraftAIImageObject (line 5) | interface RecraftAIImageObject { type RecraftAIImageGenerateResponse (line 10) | interface RecraftAIImageGenerateResponse extends ImageGenerateResponse { FILE: src/providers/reka-ai/chatComplete.ts type RekaMessageItem (line 13) | interface RekaMessageItem { type RekaAIChatCompleteResponse (line 134) | interface RekaAIChatCompleteResponse { type RekaAIErrorResponse (line 144) | interface RekaAIErrorResponse { FILE: src/providers/sambanova/chatComplete.ts type SambaNovaStreamChunk (line 3) | interface SambaNovaStreamChunk { FILE: src/providers/segmind/imageGenerate.ts type SegmindImageGenerateResponse (line 101) | interface SegmindImageGenerateResponse { type SegmindImageGenerateErrorResponse (line 107) | interface SegmindImageGenerateErrorResponse { FILE: src/providers/siliconflow/embed.ts type SiliconFlowEmbedResponse (line 23) | interface SiliconFlowEmbedResponse extends EmbedResponse {} FILE: src/providers/siliconflow/imageGenerate.ts type SiliconFlowImageObject (line 28) | interface SiliconFlowImageObject { type SiliconFlowImageGenerateResponse (line 34) | interface SiliconFlowImageGenerateResponse extends ImageGenerateResponse { FILE: src/providers/stability-ai/constants.ts constant STABILITY_V1_MODELS (line 1) | const STABILITY_V1_MODELS = [ FILE: src/providers/stability-ai/imageGenerate.ts type StabilityAIImageGenerateV1Response (line 63) | interface StabilityAIImageGenerateV1Response extends ImageGenerateRespon... type StabilityAIImageGenerateV1ErrorResponse (line 67) | interface StabilityAIImageGenerateV1ErrorResponse { type ImageArtifact (line 73) | interface ImageArtifact { FILE: src/providers/stability-ai/imageGenerateV2.ts type StabilityAIIMageGenerateV2FinishReason (line 47) | enum StabilityAIIMageGenerateV2FinishReason { type StabilityAIIMageGenerateV2Response (line 52) | interface StabilityAIIMageGenerateV2Response { type StabilityAIIMageGenerateV2ErrorResponse (line 58) | interface StabilityAIIMageGenerateV2ErrorResponse { FILE: src/providers/together-ai/chatComplete.ts type TogetherAIChatCompleteResponse (line 78) | interface TogetherAIChatCompleteResponse extends ChatCompletionResponse { type TogetherAIErrorResponse (line 86) | interface TogetherAIErrorResponse { type TogetherAIOpenAICompatibleErrorResponse (line 95) | interface TogetherAIOpenAICompatibleErrorResponse type TogetherAIChatCompletionStreamChunk (line 98) | interface TogetherAIChatCompletionStreamChunk { FILE: src/providers/together-ai/complete.ts type TogetherAICompleteResponse (line 51) | interface TogetherAICompleteResponse extends CompletionResponse { type TogetherAICompletionStreamChunk (line 59) | interface TogetherAICompletionStreamChunk { FILE: src/providers/together-ai/embed.ts type TogetherAIEmbedResponse (line 29) | interface TogetherAIEmbedResponse extends EmbedResponse {} FILE: src/providers/together-ai/types.ts type TOGETHER_AI_FINISH_REASON (line 1) | enum TOGETHER_AI_FINISH_REASON { FILE: src/providers/triton/complete.ts type TritonCompleteResponse (line 41) | interface TritonCompleteResponse extends CompletionResponse { type TritonErrorResponse (line 52) | interface TritonErrorResponse { FILE: src/providers/types.ts type ParameterConfig (line 19) | interface ParameterConfig { type ProviderConfig (line 38) | interface ProviderConfig { type ProviderAPIConfig (line 47) | interface ProviderAPIConfig { type endpointStrings (line 85) | type endpointStrings = type ProviderAPIConfigs (line 126) | interface ProviderAPIConfigs { type RequestHandler (line 131) | type RequestHandler< type RequestHandlers (line 141) | type RequestHandlers = Partial< type ProviderConfigs (line 149) | interface ProviderConfigs { type BaseResponse (line 162) | interface BaseResponse { type CResponse (line 171) | interface CResponse extends BaseResponse { type CompletionResponse (line 201) | interface CompletionResponse extends CResponse { type GroundingMetadata (line 210) | interface GroundingMetadata { type ChatChoice (line 233) | interface ChatChoice { type Logprobs (line 241) | interface Logprobs { type ChatCompletionResponse (line 256) | interface ChatCompletionResponse extends CResponse { type ErrorResponse (line 266) | interface ErrorResponse { type ImageGenerateResponse (line 280) | interface ImageGenerateResponse { type UploadFileResponse (line 290) | interface UploadFileResponse extends File {} type GetFileResponse (line 296) | interface GetFileResponse extends File {} type GetFilesResponse (line 302) | interface GetFilesResponse { type File (line 311) | interface File { type DeleteFileResponse (line 334) | interface DeleteFileResponse { type Batch (line 340) | interface Batch { type CreateBatchResponse (line 377) | interface CreateBatchResponse extends Batch {} type RetrieveBatchResponse (line 378) | interface RetrieveBatchResponse extends Batch {} type CancelBatchResponse (line 379) | interface CancelBatchResponse extends Batch {} type ListBatchesResponse (line 380) | interface ListBatchesResponse { type FinetuneProviderOptions (line 385) | interface FinetuneProviderOptions { type FinetuneRequest (line 391) | interface FinetuneRequest { type CreateBatchRequest (line 423) | interface CreateBatchRequest { type StreamContentBlock (line 429) | interface StreamContentBlock { type FINISH_REASON (line 439) | enum FINISH_REASON { type PROVIDER_FINISH_REASON (line 447) | type PROVIDER_FINISH_REASON = FILE: src/providers/upstage/api.ts method headers (line 5) | headers({ providerOptions }) { method getEndpoint (line 9) | getEndpoint({ fn }) { FILE: src/providers/utils.ts type SplitResult (line 45) | type SplitResult = { function splitString (line 50) | function splitString(input: string, separator: string): SplitResult { FILE: src/providers/voyage/embed.ts type VoyageEmbedResponse (line 42) | interface VoyageEmbedResponse { type VoyageValidationErrorResponse (line 51) | interface VoyageValidationErrorResponse { FILE: src/providers/workers-ai/chatComplete.ts type WorkersAiChatCompleteResponse (line 40) | interface WorkersAiChatCompleteResponse { type WorkersAiChatCompleteStreamResponse (line 49) | interface WorkersAiChatCompleteStreamResponse { FILE: src/providers/workers-ai/complete.ts type WorkersAiCompleteResponse (line 28) | interface WorkersAiCompleteResponse { type WorkersAiCompleteStreamResponse (line 37) | interface WorkersAiCompleteStreamResponse { FILE: src/providers/workers-ai/embed.ts type WorkersAiEmbedResponse (line 28) | interface WorkersAiEmbedResponse { FILE: src/providers/workers-ai/imageGenerate.ts type WorkersAiImageGenerateResponse (line 9) | interface WorkersAiImageGenerateResponse extends ImageGenerateResponse { FILE: src/providers/workers-ai/utils.ts type WorkersAiErrorResponse (line 5) | interface WorkersAiErrorResponse { type WorkersAiErrorObject (line 10) | interface WorkersAiErrorObject { FILE: src/providers/x-ai/index.ts type XAIErrorResponse (line 11) | interface XAIErrorResponse { FILE: src/providers/zhipu/chatComplete.ts type ZhipuChatCompleteResponse (line 52) | interface ZhipuChatCompleteResponse extends ChatCompletionResponse { type ZhipuErrorResponse (line 64) | interface ZhipuErrorResponse { type ZhipuStreamChunk (line 72) | interface ZhipuStreamChunk { FILE: src/providers/zhipu/embed.ts type ZhipuEmbedResponse (line 18) | interface ZhipuEmbedResponse extends EmbedResponse {} FILE: src/services/conditionalRouter.ts type Query (line 3) | type Query = { type RouterContext (line 7) | interface RouterContext { type Operator (line 15) | enum Operator { class ConditionalRouter (line 32) | class ConditionalRouter { method constructor (line 36) | constructor(config: Targets, context: RouterContext) { method resolveTarget (line 44) | resolveTarget(): Targets { method evaluateQuery (line 64) | private evaluateQuery(query: Query): boolean { method evaluateOperator (line 92) | private evaluateOperator(operator: string, value: any): boolean { method findTarget (line 137) | private findTarget(name: string): Targets { method getContextValue (line 150) | private getContextValue(key: string): any { FILE: src/services/realtimeLlmEventParser.ts class RealtimeLlmEventParser (line 4) | class RealtimeLlmEventParser { method constructor (line 7) | constructor() { method handleEvent (line 18) | handleEvent(c: Context, event: any, sessionOptions: any): void { method handleSessionCreated (line 44) | private handleSessionCreated( method handleSessionUpdated (line 66) | private handleSessionUpdated( method handleConversationItemCreated (line 88) | private handleConversationItemCreated(c: Context, data: any): void { method handleConversationItemDeleted (line 93) | private handleConversationItemDeleted(c: Context, data: any): void { method handleResponseDone (line 97) | private handleResponseDone(c: Context, data: any, sessionOptions: any)... method handleError (line 132) | private handleError(c: Context, data: any, sessionOptions: any): void { method rebuildConversationSequence (line 142) | private rebuildConversationSequence(items: Map): string[] { method getOrderedConversationItems (line 162) | private getOrderedConversationItems(sequence: string[]): any { FILE: src/services/transformToProviderRequest.ts function setNestedProperty (line 16) | function setNestedProperty(obj: any, path: string, value: any) { FILE: src/shared/services/cache/backends/cloudflareKV.ts type ICloudflareKVClient (line 21) | interface ICloudflareKVClient { class CloudflareKVCacheBackend (line 28) | class CloudflareKVCacheBackend implements CacheBackend { method constructor (line 41) | constructor(client: ICloudflareKVClient, dbName: string) { method getFullKey (line 46) | private getFullKey(key: string, namespace?: string): string { method serializeEntry (line 52) | private serializeEntry(entry: CacheEntry): string { method deserializeEntry (line 56) | private deserializeEntry(data: string): CacheEntry { method get (line 60) | async get( method set (line 84) | async set( method delete (line 111) | async delete(key: string, namespace?: string): Promise { method clear (line 128) | async clear(namespace?: string): Promise { method keys (line 132) | async keys(namespace?: string): Promise { method getStats (line 144) | async getStats(namespace?: string): Promise { method has (line 159) | async has(key: string, namespace?: string): Promise { method cleanup (line 164) | async cleanup(): Promise { method close (line 172) | async close(): Promise { class CloudflareKVClient (line 178) | class CloudflareKVClient implements ICloudflareKVClient { method constructor (line 181) | constructor(env: any, kvBindingName: string) { function createCloudflareKVBackend (line 223) | function createCloudflareKVBackend( FILE: src/shared/services/cache/backends/file.ts type FileCacheData (line 22) | interface FileCacheData { class FileCacheBackend (line 28) | class FileCacheBackend implements CacheBackend { method constructor (line 44) | constructor( method ensureLoaded (line 59) | private async ensureLoaded(): Promise { method ensureDataDir (line 65) | private async ensureDataDir(): Promise { method loadCache (line 74) | private async loadCache(): Promise { method saveCache (line 88) | private async saveCache(): Promise { method scheduleSave (line 98) | private scheduleSave(): void { method startCleanup (line 109) | private startCleanup(intervalMs: number): void { method isExpired (line 115) | private isExpired(entry: CacheEntry): boolean { method updateStats (line 119) | private updateStats(): void { method getNamespaceData (line 136) | private getNamespaceData( method get (line 145) | async get( method set (line 171) | async set( method delete (line 195) | async delete(key: string, namespace?: string): Promise { method clear (line 209) | async clear(namespace?: string): Promise { method has (line 228) | async has(key: string, namespace?: string): Promise { method keys (line 244) | async keys(namespace?: string): Promise { method getStats (line 257) | async getStats(namespace?: string): Promise { method cleanup (line 281) | async cleanup(): Promise { method waitForReady (line 304) | async waitForReady(): Promise { method close (line 308) | async close(): Promise { FILE: src/shared/services/cache/backends/memory.ts class MemoryCacheBackend (line 19) | class MemoryCacheBackend implements CacheBackend { method constructor (line 32) | constructor(maxSize: number = 10000, cleanupIntervalMs: number = 60000) { method startCleanup (line 37) | private startCleanup(intervalMs: number): void { method getFullKey (line 43) | private getFullKey(key: string, namespace?: string): string { method isExpired (line 47) | private isExpired(entry: CacheEntry): boolean { method evictIfNeeded (line 51) | private evictIfNeeded(): void { method get (line 66) | async get( method set (line 89) | async set( method delete (line 110) | async delete(key: string, namespace?: string): Promise { method clear (line 122) | async clear(namespace?: string): Promise { method has (line 142) | async has(key: string, namespace?: string): Promise { method keys (line 157) | async keys(namespace?: string): Promise { method getStats (line 170) | async getStats(namespace?: string): Promise { method cleanup (line 195) | async cleanup(): Promise { method close (line 212) | async close(): Promise { FILE: src/shared/services/cache/backends/redis.ts type RedisClient (line 9) | type RedisClient = Redis; class RedisCacheBackend (line 23) | class RedisCacheBackend implements CacheBackend { method constructor (line 36) | constructor(client: RedisClient, dbName: string) { method serializeEntry (line 41) | private serializeEntry(entry: CacheEntry): string { method deserializeEntry (line 45) | private deserializeEntry(data: string): CacheEntry { method isExpired (line 49) | private isExpired(entry: CacheEntry): boolean { method getFullKey (line 53) | getFullKey(key: string, namespace?: string): string { method get (line 59) | async get( method set (line 91) | async set( method delete (line 124) | async delete(key: string, namespace?: string): Promise { method clear (line 141) | async clear(namespace?: string): Promise { method has (line 159) | async has(key: string, namespace?: string): Promise { method keys (line 170) | async keys(namespace?: string): Promise { method getStats (line 188) | async getStats(namespace?: string): Promise { method script (line 205) | async script(mode: 'LOAD' | 'EXISTS', script: string): Promise { method evalsha (line 209) | async evalsha(sha: string, keys: string[], args: string[]): Promise { method close (line 219) | async close(): Promise { function createRedisBackend (line 230) | function createRedisBackend( FILE: src/shared/services/cache/index.ts class CacheService (line 42) | class CacheService { method constructor (line 46) | constructor(config: CacheConfig) { method createBackend (line 51) | private createBackend(config: CacheConfig): CacheBackend { method get (line 93) | async get(key: string, namespace?: string): Promise { method getEntry (line 101) | async getEntry( method set (line 111) | async set( method setWithTtl (line 127) | async setWithTtl( method delete (line 142) | async delete(key: string, namespace?: string): Promise { method has (line 149) | async has(key: string, namespace?: string): Promise { method keys (line 156) | async keys(namespace?: string): Promise { method clear (line 163) | async clear(namespace?: string): Promise { method getStats (line 170) | async getStats(namespace?: string): Promise { method cleanup (line 177) | async cleanup(): Promise { method waitForReady (line 184) | async waitForReady(): Promise { method close (line 193) | async close(): Promise { method getOrSet (line 200) | async getOrSet( method increment (line 218) | async increment( method setMany (line 233) | async setMany( method getMany (line 246) | async getMany( method getClient (line 257) | getClient(): CacheBackend { function getDefaultCache (line 273) | function getDefaultCache(): CacheService { function getTokenCache (line 283) | function getTokenCache(): CacheService { function getSessionCache (line 293) | function getSessionCache(): CacheService { function getTokenIntrospectionCache (line 303) | function getTokenIntrospectionCache(): CacheService { function getConfigCache (line 311) | function getConfigCache(): CacheService { function getOauthStore (line 321) | function getOauthStore(): CacheService { function getMcpServersCache (line 328) | function getMcpServersCache(): CacheService { function initializeCache (line 338) | function initializeCache(config: CacheConfig): CacheService { function createCacheBackendsLocal (line 342) | async function createCacheBackendsLocal(): Promise { function createCacheBackendsRedis (line 394) | function createCacheBackendsRedis(redisUrl: string): void { function createCacheBackendsCF (line 440) | function createCacheBackendsCF(env: any): void { FILE: src/shared/services/cache/types.ts type CacheEntry (line 6) | interface CacheEntry { type CacheOptions (line 13) | interface CacheOptions { type CacheStats (line 19) | interface CacheStats { type CacheBackend (line 28) | interface CacheBackend { type CacheConfig (line 40) | interface CacheConfig { FILE: src/shared/services/cache/utils/rateLimiter.ts constant RATE_LIMIT_LUA (line 5) | const RATE_LIMIT_LUA = ` class RedisRateLimiter (line 84) | class RedisRateLimiter { method constructor (line 95) | constructor( method loadOrGetScriptSha (line 115) | private async loadOrGetScriptSha(): Promise { method executeScript (line 125) | private async executeScript(keys: string[], args: string[]): Promise { method decrementToken (line 179) | async decrementToken( FILE: src/shared/utils/logger.ts type LogLevel (line 6) | enum LogLevel { type LoggerConfig (line 14) | interface LoggerConfig { class Logger (line 21) | class Logger { method constructor (line 32) | constructor(config: LoggerConfig) { method formatMessage (line 40) | private formatMessage(level: string, message: string): string { method log (line 57) | private log(level: LogLevel, levelName: string, message: string, data?... method error (line 73) | error(message: string, error?: Error | any) { method critical (line 86) | critical(message: string, data?: any) { method warn (line 90) | warn(message: string, data?: any) { method info (line 94) | info(message: string, data?: any) { method debug (line 98) | debug(message: string, data?: any) { method createChild (line 102) | createChild(prefix: string): Logger { function createLogger (line 126) | function createLogger(prefix: string): Logger { FILE: src/start-server.ts function sendWithTimeout (line 61) | async function sendWithTimeout(fn: () => Promise, timeoutMs = 200) { function showLoadingAnimation (line 156) | async function showLoadingAnimation() { FILE: src/tests/resources/constants.ts constant CHAT_COMPLETIONS_ENDPOINT (line 2) | const CHAT_COMPLETIONS_ENDPOINT = `${baseURL}/v1/chat/completions`; FILE: src/tests/resources/requestTemplates.ts constant CHAT_COMPLETE_WITH_MESSAGE_CONTENT_ARRAYS_REQUEST (line 3) | const CHAT_COMPLETE_WITH_MESSAGE_CONTENT_ARRAYS_REQUEST: Params = { constant CHAT_COMPLETE_WITH_MESSAGE_STRING_REQUEST (line 33) | const CHAT_COMPLETE_WITH_MESSAGE_STRING_REQUEST: Params = { FILE: src/tests/resources/testVariables.ts type TestVariable (line 3) | interface TestVariable { type TestVariables (line 10) | interface TestVariables { FILE: src/types/MessagesRequest.ts type CacheControlEphemeral (line 1) | interface CacheControlEphemeral { type ServerToolUseBlockParam (line 5) | interface ServerToolUseBlockParam { type WebSearchResultBlockParam (line 20) | interface WebSearchResultBlockParam { type WebSearchToolRequestError (line 32) | interface WebSearchToolRequestError { type WebSearchToolResultBlockParamContent (line 43) | type WebSearchToolResultBlockParamContent = type WebSearchToolResultBlockParam (line 47) | interface WebSearchToolResultBlockParam { type CitationCharLocationParam (line 60) | interface CitationCharLocationParam { type CitationPageLocationParam (line 74) | interface CitationPageLocationParam { type CitationContentBlockLocationParam (line 88) | interface CitationContentBlockLocationParam { type CitationWebSearchResultLocationParam (line 102) | interface CitationWebSearchResultLocationParam { type TextCitationParam (line 114) | type TextCitationParam = type TextBlockParam (line 120) | interface TextBlockParam { type Base64ImageSource (line 133) | interface Base64ImageSource { type URLImageSource (line 141) | interface URLImageSource { type FileImageSource (line 149) | interface FileImageSource { type ImageBlockParam (line 155) | interface ImageBlockParam { type ToolUseBlockParam (line 166) | interface ToolUseBlockParam { type ToolResultBlockParam (line 181) | interface ToolResultBlockParam { type Base64PDFSource (line 196) | interface Base64PDFSource { type PlainTextSource (line 204) | interface PlainTextSource { type ContentBlockSource (line 212) | interface ContentBlockSource { type ContentBlockSourceContent (line 218) | type ContentBlockSourceContent = TextBlockParam | ImageBlockParam; type URLPDFSource (line 220) | interface URLPDFSource { type CitationsConfigParam (line 228) | interface CitationsConfigParam { type DocumentBlockParam (line 232) | interface DocumentBlockParam { type ThinkingBlockParam (line 249) | interface ThinkingBlockParam { type RedactedThinkingBlockParam (line 257) | interface RedactedThinkingBlockParam { type BetaCodeExecutionToolResultErrorCode (line 263) | type BetaCodeExecutionToolResultErrorCode = type BetaCodeExecutionToolResultErrorParam (line 269) | interface BetaCodeExecutionToolResultErrorParam { type BetaCodeExecutionOutputBlockParam (line 275) | interface BetaCodeExecutionOutputBlockParam { type BetaCodeExecutionResultBlockParam (line 281) | interface BetaCodeExecutionResultBlockParam { type BetaCodeExecutionToolResultBlockParamContent (line 293) | type BetaCodeExecutionToolResultBlockParamContent = type BetaCodeExecutionToolResultBlockParam (line 297) | interface BetaCodeExecutionToolResultBlockParam { type ContentBlockParam (line 313) | type ContentBlockParam = type MessageParam (line 325) | interface MessageParam { type Metadata (line 331) | interface Metadata { type ThinkingConfigEnabled (line 338) | interface ThinkingConfigEnabled { type ThinkingConfigDisabled (line 347) | interface ThinkingConfigDisabled { type ThinkingConfigParam (line 351) | type ThinkingConfigParam = type ToolChoiceAny (line 358) | interface ToolChoiceAny { type ToolChoiceAuto (line 373) | interface ToolChoiceAuto { type ToolChoiceNone (line 388) | interface ToolChoiceNone { type ToolChoiceTool (line 395) | interface ToolChoiceTool { type ToolInputSchema (line 412) | interface ToolInputSchema { type Tool (line 422) | interface Tool { type ToolBash20250124 (line 477) | interface ToolBash20250124 { type ToolTextEditor20250124 (line 493) | interface ToolTextEditor20250124 { type WebSearchUserLocation (line 509) | interface WebSearchUserLocation { type WebSearchTool20250305 (line 535) | interface WebSearchTool20250305 { type TextEditor20250429 (line 574) | interface TextEditor20250429 { type ToolSearchToolRegex (line 595) | interface ToolSearchToolRegex { type ToolSearchToolBM25 (line 614) | interface ToolSearchToolBM25 { type CodeExecutionTool (line 633) | interface CodeExecutionTool { type MCPToolConfig (line 650) | interface MCPToolConfig { type MCPToolset (line 667) | interface MCPToolset { type ToolUnion (line 691) | type ToolUnion = type ToolChoice (line 706) | type ToolChoice = type MessageCreateParamsBase (line 712) | interface MessageCreateParamsBase { FILE: src/types/MessagesStreamResponse.ts type RawMessageStartEvent (line 17) | interface RawMessageStartEvent { type RawMessageDelta (line 23) | interface RawMessageDelta { type RawMessageDeltaEvent (line 29) | interface RawMessageDeltaEvent { type RawMessageStopEvent (line 40) | interface RawMessageStopEvent { type RawContentBlockStartEvent (line 44) | interface RawContentBlockStartEvent { type TextDelta (line 58) | interface TextDelta { type InputJSONDelta (line 64) | interface InputJSONDelta { type CitationsDelta (line 70) | interface CitationsDelta { type ThinkingDelta (line 80) | interface ThinkingDelta { type SignatureDelta (line 86) | interface SignatureDelta { type RawContentBlockDelta (line 92) | type RawContentBlockDelta = type RawContentBlockDeltaEvent (line 99) | interface RawContentBlockDeltaEvent { type RawContentBlockStopEvent (line 107) | interface RawContentBlockStopEvent { type RawPingEvent (line 113) | interface RawPingEvent { type RawMessageStreamEvent (line 117) | type RawMessageStreamEvent = FILE: src/types/embedRequestBody.ts type EmbedInput (line 4) | type EmbedInput = { type EmbedParams (line 21) | interface EmbedParams { type EmbedRequestBody (line 28) | interface EmbedRequestBody { type EmbedResponseData (line 39) | interface EmbedResponseData { type EmbedResponse (line 51) | interface EmbedResponse extends BaseResponse { FILE: src/types/inputList.ts type ResponseItemList (line 8) | interface ResponseItemList { type Message (line 45) | interface Message { type ComputerCallOutput (line 74) | interface ComputerCallOutput { type Output (line 112) | interface Output { type AcknowledgedSafetyCheck (line 133) | interface AcknowledgedSafetyCheck { type FunctionCallOutput (line 151) | interface FunctionCallOutput { FILE: src/types/messagesResponse.ts type CitationCharLocation (line 1) | interface CitationCharLocation { type CitationPageLocation (line 15) | interface CitationPageLocation { type CitationContentBlockLocation (line 29) | interface CitationContentBlockLocation { type CitationsWebSearchResultLocation (line 43) | interface CitationsWebSearchResultLocation { type TextCitation (line 55) | type TextCitation = type TextBlock (line 61) | interface TextBlock { type ToolUseCaller (line 81) | interface ToolUseCaller { type ToolUseBlock (line 93) | interface ToolUseBlock { type ServerToolUseBlock (line 109) | interface ServerToolUseBlock { type WebSearchToolResultError (line 119) | interface WebSearchToolResultError { type WebSearchResultBlock (line 130) | interface WebSearchResultBlock { type WebSearchToolResultBlockContent (line 142) | type WebSearchToolResultBlockContent = type WebSearchToolResultBlock (line 146) | interface WebSearchToolResultBlock { type CodeExecutionToolResultErrorCode (line 157) | type CodeExecutionToolResultErrorCode = type CodeExecutionToolResultError (line 166) | interface CodeExecutionToolResultError { type CodeExecutionOutputBlock (line 175) | interface CodeExecutionOutputBlock { type CodeExecutionResultBlock (line 184) | interface CodeExecutionResultBlock { type CodeExecutionToolResultBlockContent (line 196) | type CodeExecutionToolResultBlockContent = type CodeExecutionToolResultBlock (line 204) | interface CodeExecutionToolResultBlock { type ThinkingBlock (line 212) | interface ThinkingBlock { type RedactedThinkingBlock (line 220) | interface RedactedThinkingBlock { type ContentBlock (line 226) | type ContentBlock = type ANTHROPIC_STOP_REASON (line 235) | enum ANTHROPIC_STOP_REASON { type ServerToolUsage (line 244) | interface ServerToolUsage { type Usage (line 251) | interface Usage { type MessagesResponse (line 283) | interface MessagesResponse { FILE: src/types/modelResponses.ts type ParsedResponseOutputText (line 5) | interface ParsedResponseOutputText extends ResponseOutputText { type ParsedContent (line 9) | type ParsedContent = type ParsedResponseOutputMessage (line 13) | interface ParsedResponseOutputMessage type ParsedResponseFunctionToolCall (line 18) | interface ParsedResponseFunctionToolCall type ParsedResponseOutputItem (line 23) | type ParsedResponseOutputItem = type ParsedResponse (line 31) | interface ParsedResponse extends OpenAIResponse { type ResponseParseParams (line 37) | type ResponseParseParams = ResponseCreateParamsNonStreaming; type ComputerTool (line 43) | interface ComputerTool { type EasyInputMessage (line 72) | interface EasyInputMessage { type FileSearchTool (line 96) | interface FileSearchTool { type FileSearchToolRankingOptions (line 124) | interface FileSearchToolRankingOptions { type FunctionTool (line 143) | interface FunctionTool { type OpenAIResponse (line 171) | interface OpenAIResponse { type IncompleteDetails (line 348) | interface IncompleteDetails { type ResponseAudioDeltaEvent (line 358) | interface ResponseAudioDeltaEvent { type ResponseAudioDoneEvent (line 373) | interface ResponseAudioDoneEvent { type ResponseAudioTranscriptDeltaEvent (line 383) | interface ResponseAudioTranscriptDeltaEvent { type ResponseAudioTranscriptDoneEvent (line 398) | interface ResponseAudioTranscriptDoneEvent { type ResponseCodeInterpreterCallCodeDeltaEvent (line 408) | interface ResponseCodeInterpreterCallCodeDeltaEvent { type ResponseCodeInterpreterCallCodeDoneEvent (line 428) | interface ResponseCodeInterpreterCallCodeDoneEvent { type ResponseCodeInterpreterCallCompletedEvent (line 448) | interface ResponseCodeInterpreterCallCompletedEvent { type ResponseCodeInterpreterCallInProgressEvent (line 468) | interface ResponseCodeInterpreterCallInProgressEvent { type ResponseCodeInterpreterCallInterpretingEvent (line 488) | interface ResponseCodeInterpreterCallInterpretingEvent { type ResponseCodeInterpreterToolCall (line 508) | interface ResponseCodeInterpreterToolCall { type Logs (line 541) | interface Logs { type Files (line 556) | interface Files { type File (line 566) | interface File { type ResponseCompletedEvent (line 583) | interface ResponseCompletedEvent { type ResponseComputerToolCall (line 600) | interface ResponseComputerToolCall { type Click (line 647) | interface Click { type DoubleClick (line 674) | interface DoubleClick { type Drag (line 695) | interface Drag { type Path (line 720) | interface Path { type Keypress (line 736) | interface Keypress { type Move (line 753) | interface Move { type Screenshot (line 774) | interface Screenshot { type Scroll (line 785) | interface Scroll { type Type (line 816) | interface Type { type Wait (line 832) | interface Wait { type PendingSafetyCheck (line 843) | interface PendingSafetyCheck { type ResponseContent (line 864) | type ResponseContent = type ResponseContentPartAddedEvent (line 874) | interface ResponseContentPartAddedEvent { type ResponseContentPartDoneEvent (line 904) | interface ResponseContentPartDoneEvent { type ResponseCreatedEvent (line 934) | interface ResponseCreatedEvent { type ResponseError (line 949) | interface ResponseError { type ResponseErrorEvent (line 964) | interface ResponseErrorEvent { type ResponseFailedEvent (line 989) | interface ResponseFailedEvent { type ResponseFileSearchCallCompletedEvent (line 1004) | interface ResponseFileSearchCallCompletedEvent { type ResponseFileSearchCallInProgressEvent (line 1024) | interface ResponseFileSearchCallInProgressEvent { type ResponseFileSearchCallSearchingEvent (line 1044) | interface ResponseFileSearchCallSearchingEvent { type ResponseFileSearchToolCall (line 1066) | interface ResponseFileSearchToolCall { type Result (line 1095) | interface Result { type ResponseFormatTextConfig (line 1142) | type ResponseFormatTextConfig = type ResponseFormatTextJSONSchemaConfig (line 1152) | interface ResponseFormatTextJSONSchemaConfig { type ResponseFunctionCallArgumentsDeltaEvent (line 1189) | interface ResponseFunctionCallArgumentsDeltaEvent { type ResponseFunctionCallArgumentsDoneEvent (line 1214) | interface ResponseFunctionCallArgumentsDoneEvent { type ResponseFunctionToolCall (line 1238) | interface ResponseFunctionToolCall { type ResponseFunctionWebSearch (line 1276) | interface ResponseFunctionWebSearch { type ResponseInProgressEvent (line 1296) | interface ResponseInProgressEvent { type ResponseIncludable (line 1318) | type ResponseIncludable = type ResponseIncompleteEvent (line 1326) | interface ResponseIncompleteEvent { type ResponseInput (line 1342) | type ResponseInput = Array; type ResponseInputAudio (line 1347) | interface ResponseInputAudio { type ResponseInputContent (line 1367) | type ResponseInputContent = type ResponseInputFile (line 1375) | interface ResponseInputFile { type ResponseInputImage (line 1401) | interface ResponseInputImage { type ResponseInputItem (line 1432) | type ResponseInputItem = type Message (line 1451) | interface Message { type ComputerCallOutput (line 1478) | interface ComputerCallOutput { type Output (line 1516) | interface Output { type AcknowledgedSafetyCheck (line 1537) | interface AcknowledgedSafetyCheck { type FunctionCallOutput (line 1558) | interface FunctionCallOutput { type Reasoning (line 1591) | interface Reasoning { type Content (line 1615) | interface Content { type ItemReference (line 1631) | interface ItemReference { type ResponseInputMessageContentList (line 1648) | type ResponseInputMessageContentList = Array; type ResponseInputText (line 1653) | interface ResponseInputText { type ResponseOutputAudio (line 1668) | interface ResponseOutputAudio { type ResponseOutputItem (line 1688) | type ResponseOutputItem = type ResponseOutputItemReasoning (line 1696) | interface ResponseOutputItemReasoning { type ResponseOutputItemAddedEvent (line 1737) | interface ResponseOutputItemAddedEvent { type ResponseOutputItemDoneEvent (line 1757) | interface ResponseOutputItemDoneEvent { type ResponseOutputMessage (line 1777) | interface ResponseOutputMessage { type ResponseOutputRefusal (line 1808) | interface ResponseOutputRefusal { type ResponseOutputText (line 1823) | interface ResponseOutputText { type FileCitation (line 1848) | interface FileCitation { type URLCitation (line 1868) | interface URLCitation { type FilePath (line 1898) | interface FilePath { type ResponseRefusalDeltaEvent (line 1919) | interface ResponseRefusalDeltaEvent { type ResponseRefusalDoneEvent (line 1949) | interface ResponseRefusalDoneEvent { type ResponseStatus (line 1980) | type ResponseStatus = type ResponseStreamEvent (line 1989) | type ResponseStreamEvent = type ResponseTextAnnotationDeltaEvent (line 2026) | interface ResponseTextAnnotationDeltaEvent { type FileCitation (line 2065) | interface FileCitation { type URLCitation (line 2085) | interface URLCitation { type FilePath (line 2115) | interface FilePath { type ResponseTextConfig (line 2140) | interface ResponseTextConfig { type ResponseTextDeltaEvent (line 2162) | interface ResponseTextDeltaEvent { type ResponseTextDoneEvent (line 2192) | interface ResponseTextDoneEvent { type ResponseUsage (line 2223) | interface ResponseUsage { type OutputTokensDetails (line 2249) | interface OutputTokensDetails { type ResponseWebSearchCallCompletedEvent (line 2260) | interface ResponseWebSearchCallCompletedEvent { type ResponseWebSearchCallInProgressEvent (line 2280) | interface ResponseWebSearchCallInProgressEvent { type ResponseWebSearchCallSearchingEvent (line 2300) | interface ResponseWebSearchCallSearchingEvent { type Tool (line 2322) | type Tool = FileSearchTool | FunctionTool | ComputerTool | WebSearchTool; type ToolChoiceFunction (line 2327) | interface ToolChoiceFunction { type ToolChoiceOptions (line 2349) | type ToolChoiceOptions = 'none' | 'auto' | 'required'; type ToolChoiceTypes (line 2355) | interface ToolChoiceTypes { type WebSearchTool (line 2378) | interface WebSearchTool { type WebSearchToolUserLocation (line 2396) | interface WebSearchToolUserLocation { type ResponseCreateParams (line 2425) | type ResponseCreateParams = type ResponseCreateParamsBase (line 2429) | interface ResponseCreateParamsBase { type ResponseCreateParamsNonStreaming (line 2596) | interface ResponseCreateParamsNonStreaming type ResponseCreateParamsStreaming (line 2609) | interface ResponseCreateParamsStreaming type ResponseRetrieveParams (line 2622) | interface ResponseRetrieveParams { type ModelResponseDeleteResponse (line 2630) | interface ModelResponseDeleteResponse { FILE: src/types/requestBody.ts type RetrySettings (line 8) | interface RetrySettings { type CacheSettings (line 17) | interface CacheSettings { type StrategyModes (line 22) | enum StrategyModes { type Strategy (line 29) | interface Strategy { type Options (line 45) | interface Options { type Targets (line 186) | interface Targets { type Config (line 231) | interface Config { type ContentType (line 248) | interface ContentType extends PromptCache { type ToolCall (line 272) | interface ToolCall { type MESSAGE_ROLES (line 283) | enum MESSAGE_ROLES { constant SYSTEM_MESSAGE_ROLES (line 292) | const SYSTEM_MESSAGE_ROLES = ['system', 'developer']; type OpenAIMessageRole (line 294) | type OpenAIMessageRole = type ContentBlockChunk (line 302) | interface ContentBlockChunk extends Omit { type Message (line 311) | interface Message { type PromptCache (line 329) | interface PromptCache { type CitationMetadata (line 333) | interface CitationMetadata { type CitationSource (line 337) | interface CitationSource { type JsonSchema (line 348) | interface JsonSchema { type Function (line 357) | interface Function { type ToolChoiceObject (line 386) | interface ToolChoiceObject { type CustomToolChoice (line 393) | interface CustomToolChoice { type ToolChoice (line 400) | type ToolChoice = type Tool (line 414) | interface Tool extends PromptCache { type Params (line 427) | interface Params { type Examples (line 490) | interface Examples { type FullRequestBody (line 499) | interface FullRequestBody { type ShortConfig (line 510) | interface ShortConfig { type ShortRequestBody (line 539) | interface ShortRequestBody { type RequestBody (line 550) | type RequestBody = FullRequestBody | ShortRequestBody; FILE: src/types/responseBody.ts type CitationSource (line 1) | interface CitationSource { type CitationMetadata (line 8) | interface CitationMetadata { type PalmMessage (line 12) | interface PalmMessage { type ContentFilter (line 18) | interface ContentFilter { type PalmChatCompleteResponse (line 23) | interface PalmChatCompleteResponse { type PalmTextOutput (line 30) | interface PalmTextOutput { type safetyRatings (line 35) | interface safetyRatings { type PalmFilter (line 46) | interface PalmFilter { type PalmError (line 50) | interface PalmError { type PalmCompleteResponse (line 56) | interface PalmCompleteResponse { FILE: src/types/shared.ts type ComparisonFilter (line 5) | interface ComparisonFilter { type CompoundFilter (line 33) | interface CompoundFilter { type Metadata (line 54) | type Metadata = Record; type Reasoning (line 62) | interface Reasoning { type ReasoningEffort (line 91) | type ReasoningEffort = 'low' | 'medium' | 'high' | null; type ResponseFormatText (line 96) | interface ResponseFormatText { type ResponseFormatJSONObject (line 108) | interface ResponseFormatJSONObject { type CursorPageParams (line 115) | interface CursorPageParams { FILE: src/utils.ts type SplitPatternType (line 58) | type SplitPatternType = '\n\n' | '\r\n\r\n' | '\n' | '\r\n' | ' '; function convertKeysToCamelCase (line 81) | function convertKeysToCamelCase( FILE: src/utils/CryptoUtils.ts class CryptoUtils (line 2) | class CryptoUtils { method normalizePemKey (line 6) | private static normalizePemKey(pemKey: string): string { method importPrivateKey (line 61) | private static async importPrivateKey( method base64ToArrayBuffer (line 97) | private static base64ToArrayBuffer(base64: string): ArrayBuffer { method arrayBufferToBase64 (line 110) | private static arrayBufferToBase64(buffer: ArrayBuffer): string { method sign (line 121) | static async sign(privateKey: CryptoKey, data: string): Promise { method sha256 (line 134) | static async sha256(data: string): Promise { method loadPrivateKey (line 141) | static async loadPrivateKey( FILE: src/utils/env.ts function getValueOrFileContents (line 12) | function getValueOrFileContents(value?: string, ignore?: boolean) { FILE: src/utils/misc.ts function toSnakeCase (line 4) | function toSnakeCase(str: string) { FILE: tests/integration/src/handlers/requestBuilder.ts class RequestBuilder (line 7) | class RequestBuilder { method constructor (line 13) | constructor() { method useGet (line 35) | useGet() { method client (line 40) | get client() { method options (line 44) | get options() { method model (line 65) | model(model: string) { method messages (line 73) | messages(messages: any[]) { method maxTokens (line 81) | maxTokens(maxTokens: number) { method stream (line 89) | stream(stream: boolean) { method provider (line 97) | provider(provider: string) { method providerHeaders (line 107) | providerHeaders(providerHeaders: Record) { method addHeaders (line 121) | addHeaders(headers: Record) { method apiKey (line 129) | apiKey(apiKey: string) { method body (line 138) | body(body: Record | FormData) { method config (line 147) | config(config: any) { class URLBuilder (line 161) | class URLBuilder { method constructor (line 164) | constructor() {} method url (line 166) | get url() { method endpoint (line 170) | endpoint(endpoint: string) { method chat (line 175) | chat() { method files (line 180) | files() { method transcription (line 185) | transcription() { method images (line 190) | images() { method path (line 195) | path(path: string) { method clear (line 200) | clear() { FILE: tests/unit/src/handlers/services/benchmark.ts function createSampleData (line 9) | function createSampleData(size: number) { function measureOperation (line 58) | function measureOperation(name: string, fn: () => void, indent: number =... function measureWithIterations (line 67) | function measureWithIterations( function runBenchmarks (line 95) | async function runBenchmarks() {