@anuma/sdk 6.7.3 → 6.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{react/chunk-5GBYOWRY.mjs → expo/chunk-CJ32HO6Q.mjs} +14 -1
- package/dist/expo/{chunk-ITRFWFNS.mjs → chunk-OUFITMDL.mjs} +1 -1
- package/dist/expo/{chunk-37VWRZTL.mjs → chunk-YO5UXOC4.mjs} +3 -2
- package/dist/{react/consolidate-FNFIDL37.mjs → expo/consolidate-4BMNVOL4.mjs} +3 -2
- package/dist/expo/index.cjs +34 -2
- package/dist/expo/index.d.mts +38 -0
- package/dist/expo/index.d.ts +38 -0
- package/dist/expo/index.mjs +16 -5
- package/dist/expo/{recall-FZ7JC4AX.mjs → recall-IEKVX4JL.mjs} +2 -2
- package/dist/index.cjs +10 -0
- package/dist/index.d.mts +49 -1
- package/dist/index.d.ts +49 -1
- package/dist/index.mjs +8 -0
- package/dist/{expo/chunk-5GBYOWRY.mjs → react/chunk-CJ32HO6Q.mjs} +14 -1
- package/dist/react/{chunk-ZZDMEEHO.mjs → chunk-DY5VGC6K.mjs} +1 -1
- package/dist/react/{chunk-NC7BZEEF.mjs → chunk-POCLKALT.mjs} +3 -2
- package/dist/{expo/consolidate-H6YD36XI.mjs → react/consolidate-5TP3J6BY.mjs} +3 -2
- package/dist/react/index.cjs +34 -2
- package/dist/react/index.d.mts +38 -0
- package/dist/react/index.d.ts +38 -0
- package/dist/react/index.mjs +16 -5
- package/dist/react/{recall-546HTUPK.mjs → recall-B2AIAPCM.mjs} +2 -2
- package/dist/server/{chunk-G6IH6QTZ.mjs → chunk-FS6DNUNT.mjs} +3 -2
- package/dist/server/{chunk-I2U35Z3O.mjs → chunk-KF5OU4IN.mjs} +14 -1
- package/dist/server/{chunk-5KIUGHQZ.mjs → chunk-MEQ2PAEX.mjs} +1 -1
- package/dist/server/{consolidate-S7QZ7V6T.mjs → consolidate-QDWEYFTZ.mjs} +3 -2
- package/dist/server/index.cjs +34 -2
- package/dist/server/index.d.mts +38 -0
- package/dist/server/index.d.ts +38 -0
- package/dist/server/index.mjs +16 -5
- package/dist/server/{recall-BIPVQMG4.mjs → recall-2GAPE2XH.mjs} +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8886,4 +8886,52 @@ declare function clearLazyTitleCache(): void;
|
|
|
8886
8886
|
*/
|
|
8887
8887
|
declare function decryptConversationTitle(encryptedTitle: string, address: string): Promise<string>;
|
|
8888
8888
|
|
|
8889
|
-
export { type AgentAgendaItem, type AgentAgendaTranscript, type AgentAnalysisSection, type AgentAnalysisTranscript, type AgentConfig, type AgentExampleConversation, type AgentManifest, type AgentMarketplaceContent, type AgentMarketplaceFamily, type AgentMarketplaceTranscript, type AgentPrimaryActionKind, type AgentRuntime, type AgentScheduleItem, type AgentTranscriptItem, type AgentTranscriptTone, type AgentUiMetadata, type AnalyzeStyleOptions, type AnalyzeStyleResult, type ApiResponse, BUILT_IN_TOOL_SETS, type BuildPromptOptions, type BuildPromptResult, CHUNKS_DISCARDED_ORIGIN, type ClientOptions, type ConnectorGuidance, type ConnectorGuidanceInput, type CreateServerToolsFilterOptions, DEFAULT_ANALYSIS_PROMPT, DEFAULT_ANALYZE_AFTER_MESSAGES, DEFAULT_DOCUMENT_PATTERN, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_MAX_INPUT_MESSAGES, DEFAULT_MAX_PROFILE_LENGTH, DEFAULT_MIN_MESSAGES, DEFAULT_PROMPT_TEMPLATES, DEFAULT_REFRESH_EVERY_MESSAGES, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, type DeleteApiV1AccountData, type DeleteApiV1AccountError, type DeleteApiV1AccountErrors, type DeleteApiV1AccountResponse, type DeleteApiV1AccountResponses, type DeleteApiV1AdminAgentsByIdData, type DeleteApiV1AdminAgentsByIdError, type DeleteApiV1AdminAgentsByIdErrors, type DeleteApiV1AdminAgentsByIdResponse, type DeleteApiV1AdminAgentsByIdResponses, type DeleteApiV1AdminAppsByAppIdApiKeysByIdData, type DeleteApiV1AdminAppsByAppIdApiKeysByIdError, type DeleteApiV1AdminAppsByAppIdApiKeysByIdErrors, type DeleteApiV1AdminAppsByAppIdApiKeysByIdResponse, type DeleteApiV1AdminAppsByAppIdApiKeysByIdResponses, type DeleteApiV1AdminAppsByIdData, type DeleteApiV1AdminAppsByIdError, type DeleteApiV1AdminAppsByIdErrors, type DeleteApiV1AdminAppsByIdResponse, type DeleteApiV1AdminAppsByIdResponses, type DeleteApiV1AdminPersonasByIdData, type DeleteApiV1AdminPersonasByIdError, type DeleteApiV1AdminPersonasByIdErrors, type DeleteApiV1AdminPersonasByIdResponse, type DeleteApiV1AdminPersonasByIdResponses, type DeleteApiV1AdminTextResetData, type DeleteApiV1AdminTextResetError, type DeleteApiV1AdminTextResetErrors, type DeleteApiV1AdminTextResetResponse, type DeleteApiV1AdminTextResetResponses, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdData, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdError, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdErrors, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdResponse, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdResponses, type DeleteApiV1DeveloperAppsByAppUuidData, type DeleteApiV1DeveloperAppsByAppUuidError, type DeleteApiV1DeveloperAppsByAppUuidErrors, type DeleteApiV1DeveloperAppsByAppUuidPrivyData, type DeleteApiV1DeveloperAppsByAppUuidPrivyError, type DeleteApiV1DeveloperAppsByAppUuidPrivyErrors, type DeleteApiV1DeveloperAppsByAppUuidPrivyResponse, type DeleteApiV1DeveloperAppsByAppUuidPrivyResponses, type DeleteApiV1DeveloperAppsByAppUuidResponse, type DeleteApiV1DeveloperAppsByAppUuidResponses, type DeleteApiV1UserApiKeysByKeyIdData, type DeleteApiV1UserApiKeysByKeyIdError, type DeleteApiV1UserApiKeysByKeyIdErrors, type DeleteApiV1UserApiKeysByKeyIdResponse, type DeleteApiV1UserApiKeysByKeyIdResponses, type DeleteApiV1WalletsBindingByAddressData, type DeleteApiV1WalletsBindingByAddressError, type DeleteApiV1WalletsBindingByAddressErrors, type DeleteApiV1WalletsBindingByAddressResponse, type DeleteApiV1WalletsBindingByAddressResponses, type FileExtractionStrategy, type GetApiV1AdminAppsByAppIdApiKeysByIdData, type GetApiV1AdminAppsByAppIdApiKeysByIdError, type GetApiV1AdminAppsByAppIdApiKeysByIdErrors, type GetApiV1AdminAppsByAppIdApiKeysByIdResponse, type GetApiV1AdminAppsByAppIdApiKeysByIdResponses, type GetApiV1AdminAppsByAppIdApiKeysData, type GetApiV1AdminAppsByAppIdApiKeysError, type GetApiV1AdminAppsByAppIdApiKeysErrors, type GetApiV1AdminAppsByAppIdApiKeysResponse, type GetApiV1AdminAppsByAppIdApiKeysResponses, type GetApiV1AdminAppsByIdData, type GetApiV1AdminAppsByIdError, type GetApiV1AdminAppsByIdErrors, type GetApiV1AdminAppsByIdResponse, type GetApiV1AdminAppsByIdResponses, type GetApiV1AdminAppsData, type GetApiV1AdminAppsError, type GetApiV1AdminAppsErrors, type GetApiV1AdminAppsResponse, type GetApiV1AdminAppsResponses, type GetApiV1AdminUsersLookupData, type GetApiV1AdminUsersLookupError, type GetApiV1AdminUsersLookupErrors, type GetApiV1AdminUsersLookupResponse, type GetApiV1AdminUsersLookupResponses, type GetApiV1AgentPreferencesData, type GetApiV1AgentPreferencesError, type GetApiV1AgentPreferencesErrors, type GetApiV1AgentPreferencesResponse, type GetApiV1AgentPreferencesResponses, type GetApiV1AgentsByIdData, type GetApiV1AgentsByIdError, type GetApiV1AgentsByIdErrors, type GetApiV1AgentsByIdResponse, type GetApiV1AgentsByIdResponses, type GetApiV1AgentsData, type GetApiV1AgentsError, type GetApiV1AgentsErrors, type GetApiV1AgentsResponse, type GetApiV1AgentsResponses, type GetApiV1ConfigData, type GetApiV1ConfigError, type GetApiV1ConfigErrors, type GetApiV1ConfigResponse, type GetApiV1ConfigResponses, type GetApiV1CreditsBalanceData, type GetApiV1CreditsBalanceError, type GetApiV1CreditsBalanceErrors, type GetApiV1CreditsBalanceResponse, type GetApiV1CreditsBalanceResponses, type GetApiV1CreditsPacksData, type GetApiV1CreditsPacksError, type GetApiV1CreditsPacksErrors, type GetApiV1CreditsPacksResponse, type GetApiV1CreditsPacksResponses, type GetApiV1DeveloperAppsByAppUuidApiKeysData, type GetApiV1DeveloperAppsByAppUuidApiKeysError, type GetApiV1DeveloperAppsByAppUuidApiKeysErrors, type GetApiV1DeveloperAppsByAppUuidApiKeysResponse, type GetApiV1DeveloperAppsByAppUuidApiKeysResponses, type GetApiV1DeveloperAppsByAppUuidData, type GetApiV1DeveloperAppsByAppUuidError, type GetApiV1DeveloperAppsByAppUuidErrors, type GetApiV1DeveloperAppsByAppUuidResponse, type GetApiV1DeveloperAppsByAppUuidResponses, type GetApiV1DeveloperAppsByAppUuidUsageData, type GetApiV1DeveloperAppsByAppUuidUsageError, type GetApiV1DeveloperAppsByAppUuidUsageErrors, type GetApiV1DeveloperAppsByAppUuidUsageResponse, type GetApiV1DeveloperAppsByAppUuidUsageResponses, type GetApiV1DeveloperAppsByAppUuidUsageUsersData, type GetApiV1DeveloperAppsByAppUuidUsageUsersError, type GetApiV1DeveloperAppsByAppUuidUsageUsersErrors, type GetApiV1DeveloperAppsByAppUuidUsageUsersResponse, type GetApiV1DeveloperAppsByAppUuidUsageUsersResponses, type GetApiV1DeveloperAppsByAppUuidUsersByAddressData, type GetApiV1DeveloperAppsByAppUuidUsersByAddressError, type GetApiV1DeveloperAppsByAppUuidUsersByAddressErrors, type GetApiV1DeveloperAppsByAppUuidUsersByAddressResponse, type GetApiV1DeveloperAppsByAppUuidUsersByAddressResponses, type GetApiV1DeveloperAppsByAppUuidUsersData, type GetApiV1DeveloperAppsByAppUuidUsersError, type GetApiV1DeveloperAppsByAppUuidUsersErrors, type GetApiV1DeveloperAppsByAppUuidUsersResponse, type GetApiV1DeveloperAppsByAppUuidUsersResponses, type GetApiV1DeveloperAppsData, type GetApiV1DeveloperAppsError, type GetApiV1DeveloperAppsErrors, type GetApiV1DeveloperAppsResponse, type GetApiV1DeveloperAppsResponses, type GetApiV1DeveloperBillingData, type GetApiV1DeveloperBillingError, type GetApiV1DeveloperBillingErrors, type GetApiV1DeveloperBillingResponse, type GetApiV1DeveloperBillingResponses, type GetApiV1DocsSwaggerJsonData, type GetApiV1DocsSwaggerJsonResponse, type GetApiV1DocsSwaggerJsonResponses, type GetApiV1ModelsData, type GetApiV1ModelsError, type GetApiV1ModelsErrors, type GetApiV1ModelsResponse, type GetApiV1ModelsResponses, type GetApiV1PersonasByIdData, type GetApiV1PersonasByIdError, type GetApiV1PersonasByIdErrors, type GetApiV1PersonasByIdResponse, type GetApiV1PersonasByIdResponses, type GetApiV1PersonasData, type GetApiV1PersonasError, type GetApiV1PersonasErrors, type GetApiV1PersonasResponse, type GetApiV1PersonasResponses, type GetApiV1PhoneCallsByCallIdData, type GetApiV1PhoneCallsByCallIdError, type GetApiV1PhoneCallsByCallIdErrors, type GetApiV1PhoneCallsByCallIdResponse, type GetApiV1PhoneCallsByCallIdResponses, type GetApiV1SubscriptionsPlansData, type GetApiV1SubscriptionsPlansError, type GetApiV1SubscriptionsPlansErrors, type GetApiV1SubscriptionsPlansResponse, type GetApiV1SubscriptionsPlansResponses, type GetApiV1SubscriptionsStatusData, type GetApiV1SubscriptionsStatusError, type GetApiV1SubscriptionsStatusErrors, type GetApiV1SubscriptionsStatusResponse, type GetApiV1SubscriptionsStatusResponses, type GetApiV1ToolsData, type GetApiV1ToolsError, type GetApiV1ToolsErrors, type GetApiV1ToolsResponse, type GetApiV1ToolsResponses, type GetApiV1UsageInferenceWeeklyData, type GetApiV1UsageInferenceWeeklyResponse, type GetApiV1UsageInferenceWeeklyResponses, type GetApiV1UsageModelsData, type GetApiV1UsageModelsError, type GetApiV1UsageModelsErrors, type GetApiV1UsageModelsResponse, type GetApiV1UsageModelsResponses, type GetApiV1UserApiKeysData, type GetApiV1UserApiKeysError, type GetApiV1UserApiKeysErrors, type GetApiV1UserApiKeysResponse, type GetApiV1UserApiKeysResponses, type GetApiV1WalletsBindingData, type GetApiV1WalletsBindingError, type GetApiV1WalletsBindingErrors, type GetApiV1WalletsBindingResponse, type GetApiV1WalletsBindingResponses, type GetApiV1ZetaCreditRateData, type GetApiV1ZetaCreditRateResponse, type GetApiV1ZetaCreditRateResponses, type GetApiV1ZetaMarketData, type GetApiV1ZetaMarketResponse, type GetApiV1ZetaMarketResponses, type GetHealthData, type GetHealthError, type GetHealthErrors, type GetHealthResponse, type GetHealthResponses, type HandlersAddCreditsRequest, type HandlersAddCreditsResponse, type HandlersAgentListItem, type HandlersAgentListResponse, type HandlersAgentResponse, type HandlersApiKeyResponse, type HandlersApiKeyWithKeyResponse, type HandlersAppConfig, type HandlersAppResponse, type HandlersAppUsageResponse, type HandlersAppUserUsageResponse, type HandlersBillingHistoryResponse, type HandlersBillingRecordResponse, type HandlersBindRequest, type HandlersBoundWalletResponse, type HandlersCancelScheduledDowngradeResponse, type HandlersCancelSubscriptionResponse, type HandlersCheckoutSessionResponse, type HandlersConfigResponse, type HandlersConfigurePrivyRequest, type HandlersCreateAgentRequest, type HandlersCreateApiKeyRequest, type HandlersCreateAppRequest, type HandlersCreateCheckoutSessionRequest, type HandlersCreateCreditPackCheckoutRequest, type HandlersCreateCustomerPortalRequest, type HandlersCreateDeveloperAppRequest, type HandlersCreatePersonaRequest, type HandlersCreatePhoneCallRequest, type HandlersCreditBalanceResponse, type HandlersCreditPack, type HandlersCreditPacksResponse, type HandlersCreditRateResponse, type HandlersCustomerPortalResponse, type HandlersDeveloperApiKeyRequest, type HandlersDeveloperApiKeyResponse, type HandlersDeveloperApiKeyWithSecretResponse, type HandlersDeveloperAppResponse, type HandlersDeveloperUserResponse, type HandlersExchangeRequest, type HandlersExpiringCredits, type HandlersFundDeveloperAppRequest, type HandlersGeneratedApiKey, type HandlersGetToolsResponse, type HandlersHealthResponse, type HandlersInferenceWeeklyResponse, type HandlersListApiKeysResponse, type HandlersListAppsResponse, type HandlersListDeveloperApiKeysResponse, type HandlersListDeveloperAppsResponse, type HandlersListResponse, type HandlersListTotals, type HandlersListUserApiKeysResponse, type HandlersListUsersResponse, type HandlersModelToolUsageItem, type HandlersModelUsageItem, type HandlersNonceResponse, type HandlersPaginationResponse, type HandlersPersonaListResponse, type HandlersPersonaResponse, type HandlersPhoneCallResponse, type HandlersPhoneCallTranscriptEntry, type HandlersProInfo, type HandlersRedeemTokensRequest, type HandlersRedeemTokensResponse, type HandlersRefreshRequest, type HandlersRenewSubscriptionResponse, type HandlersRevokeRequest, type HandlersScheduleDowngradeRequest, type HandlersScheduleDowngradeResponse, type HandlersSeedApiKeyInput, type HandlersSeedAppInput, type HandlersSeedAppsRequest, type HandlersSeedAppsResponse, type HandlersSetSubscriptionTierRequest, type HandlersSetSubscriptionTierResponse, type HandlersSetUserAgentPreferenceRequest, type HandlersSubscriptionPlan, type HandlersSubscriptionPlansResponse, type HandlersSubscriptionStatusResponse, type HandlersTokenResponse, type HandlersTool, type HandlersToolCallDetailItem, type HandlersTopUpUserRequest, type HandlersUpdateAgentRequest, type HandlersUpdateApiKeyRequest, type HandlersUpdateAppRequest, type HandlersUpdateDeveloperAppRequest, type HandlersUpdatePersonaRequest, type HandlersUpdateUserLimitRequest, type HandlersUpgradeSubscriptionRequest, type HandlersUpgradeSubscriptionResponse, type HandlersUsageByModelResponse, type HandlersUsagePeriod, type HandlersUsageTimeseriesPoint, type HandlersUsageTotals, type HandlersUserAgentPreferenceResponse, type HandlersUserAgentPreferencesListResponse, type HandlersUserApiKeyRequest, type HandlersUserApiKeyResponse, type HandlersUserApiKeyWithSecretResponse, type HandlersUserLookupAccount, type HandlersUserLookupEnrollment, type HandlersUserLookupResponse, type HandlersUserLookupTextReg, type HandlersUserUsageResponse, type HandlersWalletDetails, type HandlersWeeklyInferenceItem, type HandlersZetaMarketResponse, type LazyStoredConversation, type LlmapiChatCompletionExtraFields, type LlmapiChatCompletionRequest, type LlmapiChatCompletionResponse, type LlmapiChatCompletionTool, type LlmapiChatCompletionToolChoice, type LlmapiChatCompletionUsage, type OpenaiChatCompletionChoice as LlmapiChoice, type LlmapiEmbeddingData, type LlmapiEmbeddingExtraFields, type LlmapiEmbeddingRequest, type LlmapiEmbeddingResponse, type LlmapiEmbeddingUsage, type LlmapiMcpTool, type LlmapiMessage, type LlmapiMessageContentFile, type LlmapiMessageContentImage, type LlmapiMessageContentPart, type LlmapiModel, type LlmapiModelArchitecture, type LlmapiModelPerRequestLimits, type LlmapiModelPricing, type LlmapiModelTopProvider, type LlmapiModelsListExtraFields, type LlmapiModelsListResponse, type LlmapiPortalChatCompletionRequest, type LlmapiPortalChatCompletionResponse, type LlmapiResponseExtraFields, type LlmapiResponseInput, type LlmapiResponseOutputContent, type LlmapiResponseOutputItem, type LlmapiResponseReasoning, type LlmapiResponseRequest, type LlmapiResponseResponse, type LlmapiResponseTool, type LlmapiResponseToolChoice, type LlmapiResponseUsage, type LlmapiRole, type LlmapiThinkingOptions, type LlmapiToolCall, type LlmapiToolCallEvent, type LlmapiToolCallFunction, type Logger, MULTILINE_FIELD_MAX, type McpToolSchema, type MessageRedactionResult, type NerDetector, type Options, PII_PATTERNS, type PatchApiV1DeveloperAppsByAppUuidData, type PatchApiV1DeveloperAppsByAppUuidError, type PatchApiV1DeveloperAppsByAppUuidErrors, type PatchApiV1DeveloperAppsByAppUuidResponse, type PatchApiV1DeveloperAppsByAppUuidResponses, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressData, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressError, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressErrors, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressResponse, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressResponses, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PiiSpan, type PostApiV1AdminAddCreditsData, type PostApiV1AdminAddCreditsError, type PostApiV1AdminAddCreditsErrors, type PostApiV1AdminAddCreditsResponse, type PostApiV1AdminAddCreditsResponses, type PostApiV1AdminAgentsData, type PostApiV1AdminAgentsError, type PostApiV1AdminAgentsErrors, type PostApiV1AdminAgentsResponse, type PostApiV1AdminAgentsResponses, type PostApiV1AdminAppsByAppIdApiKeysData, type PostApiV1AdminAppsByAppIdApiKeysError, type PostApiV1AdminAppsByAppIdApiKeysErrors, type PostApiV1AdminAppsByAppIdApiKeysResponse, type PostApiV1AdminAppsByAppIdApiKeysResponses, type PostApiV1AdminAppsData, type PostApiV1AdminAppsError, type PostApiV1AdminAppsErrors, type PostApiV1AdminAppsResponse, type PostApiV1AdminAppsResponses, type PostApiV1AdminPersonasData, type PostApiV1AdminPersonasError, type PostApiV1AdminPersonasErrors, type PostApiV1AdminPersonasResponse, type PostApiV1AdminPersonasResponses, type PostApiV1AdminSeedAppsData, type PostApiV1AdminSeedAppsError, type PostApiV1AdminSeedAppsErrors, type PostApiV1AdminSeedAppsResponse, type PostApiV1AdminSeedAppsResponses, type PostApiV1AdminSubscriptionTierData, type PostApiV1AdminSubscriptionTierError, type PostApiV1AdminSubscriptionTierErrors, type PostApiV1AdminSubscriptionTierResponse, type PostApiV1AdminSubscriptionTierResponses, type PostApiV1ChatCompletionsData, type PostApiV1ChatCompletionsError, type PostApiV1ChatCompletionsErrors, type PostApiV1ChatCompletionsResponse, type PostApiV1ChatCompletionsResponses, type PostApiV1CreditsPurchaseData, type PostApiV1CreditsPurchaseError, type PostApiV1CreditsPurchaseErrors, type PostApiV1CreditsPurchaseResponse, type PostApiV1CreditsPurchaseResponses, type PostApiV1CreditsRedeemTokensData, type PostApiV1CreditsRedeemTokensError, type PostApiV1CreditsRedeemTokensErrors, type PostApiV1CreditsRedeemTokensResponse, type PostApiV1CreditsRedeemTokensResponses, type PostApiV1DeveloperAppsByAppUuidApiKeysData, type PostApiV1DeveloperAppsByAppUuidApiKeysError, type PostApiV1DeveloperAppsByAppUuidApiKeysErrors, type PostApiV1DeveloperAppsByAppUuidApiKeysResponse, type PostApiV1DeveloperAppsByAppUuidApiKeysResponses, type PostApiV1DeveloperAppsByAppUuidFundData, type PostApiV1DeveloperAppsByAppUuidFundError, type PostApiV1DeveloperAppsByAppUuidFundErrors, type PostApiV1DeveloperAppsByAppUuidFundResponse, type PostApiV1DeveloperAppsByAppUuidFundResponses, type PostApiV1DeveloperAppsByAppUuidPrivyData, type PostApiV1DeveloperAppsByAppUuidPrivyError, type PostApiV1DeveloperAppsByAppUuidPrivyErrors, type PostApiV1DeveloperAppsByAppUuidPrivyResponse, type PostApiV1DeveloperAppsByAppUuidPrivyResponses, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpData, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpError, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpErrors, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpResponse, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpResponses, type PostApiV1DeveloperAppsData, type PostApiV1DeveloperAppsError, type PostApiV1DeveloperAppsErrors, type PostApiV1DeveloperAppsResponse, type PostApiV1DeveloperAppsResponses, type PostApiV1EmbeddingsData, type PostApiV1EmbeddingsError, type PostApiV1EmbeddingsErrors, type PostApiV1EmbeddingsResponse, type PostApiV1EmbeddingsResponses, type PostApiV1PhoneCallsData, type PostApiV1PhoneCallsError, type PostApiV1PhoneCallsErrors, type PostApiV1PhoneCallsResponse, type PostApiV1PhoneCallsResponses, type PostApiV1ResponsesData, type PostApiV1ResponsesError, type PostApiV1ResponsesErrors, type PostApiV1ResponsesResponse, type PostApiV1ResponsesResponses, type PostApiV1SubscriptionsCancelData, type PostApiV1SubscriptionsCancelError, type PostApiV1SubscriptionsCancelErrors, type PostApiV1SubscriptionsCancelResponse, type PostApiV1SubscriptionsCancelResponses, type PostApiV1SubscriptionsCancelScheduledDowngradeData, type PostApiV1SubscriptionsCancelScheduledDowngradeError, type PostApiV1SubscriptionsCancelScheduledDowngradeErrors, type PostApiV1SubscriptionsCancelScheduledDowngradeResponse, type PostApiV1SubscriptionsCancelScheduledDowngradeResponses, type PostApiV1SubscriptionsCreateCheckoutSessionData, type PostApiV1SubscriptionsCreateCheckoutSessionError, type PostApiV1SubscriptionsCreateCheckoutSessionErrors, type PostApiV1SubscriptionsCreateCheckoutSessionResponse, type PostApiV1SubscriptionsCreateCheckoutSessionResponses, type PostApiV1SubscriptionsCustomerPortalData, type PostApiV1SubscriptionsCustomerPortalError, type PostApiV1SubscriptionsCustomerPortalErrors, type PostApiV1SubscriptionsCustomerPortalResponse, type PostApiV1SubscriptionsCustomerPortalResponses, type PostApiV1SubscriptionsRenewData, type PostApiV1SubscriptionsRenewError, type PostApiV1SubscriptionsRenewErrors, type PostApiV1SubscriptionsRenewResponse, type PostApiV1SubscriptionsRenewResponses, type PostApiV1SubscriptionsScheduleDowngradeData, type PostApiV1SubscriptionsScheduleDowngradeError, type PostApiV1SubscriptionsScheduleDowngradeErrors, type PostApiV1SubscriptionsScheduleDowngradeResponse, type PostApiV1SubscriptionsScheduleDowngradeResponses, type PostApiV1SubscriptionsUpgradeData, type PostApiV1SubscriptionsUpgradeError, type PostApiV1SubscriptionsUpgradeErrors, type PostApiV1SubscriptionsUpgradeResponse, type PostApiV1SubscriptionsUpgradeResponses, type PostApiV1SubscriptionsWebhookData, type PostApiV1SubscriptionsWebhookError, type PostApiV1SubscriptionsWebhookErrors, type PostApiV1SubscriptionsWebhookResponse, type PostApiV1SubscriptionsWebhookResponses, type PostApiV1UserApiKeysData, type PostApiV1UserApiKeysError, type PostApiV1UserApiKeysErrors, type PostApiV1UserApiKeysResponse, type PostApiV1UserApiKeysResponses, type PostApiV1WalletsBindingData, type PostApiV1WalletsBindingError, type PostApiV1WalletsBindingErrors, type PostApiV1WalletsBindingNonceData, type PostApiV1WalletsBindingNonceError, type PostApiV1WalletsBindingNonceErrors, type PostApiV1WalletsBindingNonceResponse, type PostApiV1WalletsBindingNonceResponses, type PostApiV1WalletsBindingResponse, type PostApiV1WalletsBindingResponses, type PostApiV1WebhooksRevenuecatData, type PostApiV1WebhooksRevenuecatError, type PostApiV1WebhooksRevenuecatErrors, type PostApiV1WebhooksRevenuecatResponse, type PostApiV1WebhooksRevenuecatResponses, type PostAuthOauthByProviderExchangeData, type PostAuthOauthByProviderExchangeError, type PostAuthOauthByProviderExchangeErrors, type PostAuthOauthByProviderExchangeResponse, type PostAuthOauthByProviderExchangeResponses, type PostAuthOauthByProviderRefreshData, type PostAuthOauthByProviderRefreshError, type PostAuthOauthByProviderRefreshErrors, type PostAuthOauthByProviderRefreshResponse, type PostAuthOauthByProviderRefreshResponses, type PostAuthOauthByProviderRevokeData, type PostAuthOauthByProviderRevokeError, type PostAuthOauthByProviderRevokeErrors, type PostAuthOauthByProviderRevokeResponse, type PostAuthOauthByProviderRevokeResponses, type PromptContext, type PromptSection, type PromptTemplates, type PutApiV1AdminAgentsByIdData, type PutApiV1AdminAgentsByIdError, type PutApiV1AdminAgentsByIdErrors, type PutApiV1AdminAgentsByIdResponse, type PutApiV1AdminAgentsByIdResponses, type PutApiV1AdminAppsByAppIdApiKeysByIdData, type PutApiV1AdminAppsByAppIdApiKeysByIdError, type PutApiV1AdminAppsByAppIdApiKeysByIdErrors, type PutApiV1AdminAppsByAppIdApiKeysByIdResponse, type PutApiV1AdminAppsByAppIdApiKeysByIdResponses, type PutApiV1AdminAppsByIdData, type PutApiV1AdminAppsByIdError, type PutApiV1AdminAppsByIdErrors, type PutApiV1AdminAppsByIdResponse, type PutApiV1AdminAppsByIdResponses, type PutApiV1AdminPersonasByIdData, type PutApiV1AdminPersonasByIdError, type PutApiV1AdminPersonasByIdErrors, type PutApiV1AdminPersonasByIdResponse, type PutApiV1AdminPersonasByIdResponses, type PutApiV1AgentsByIdPreferenceData, type PutApiV1AgentsByIdPreferenceError, type PutApiV1AgentsByIdPreferenceErrors, type PutApiV1AgentsByIdPreferenceResponse, type PutApiV1AgentsByIdPreferenceResponses, type QuantizedEmbedding, type RedactionResult, type ResponseErrorResponse, type SelectServerSideToolsOptions, type SkillConfig, type SkillJourneyDefinition, type SkillJourneyField, type SkillJourneyFieldType, SseIdleTimeoutError, type SseKeepaliveOptions, type StyleAnalysisSchedule, TOOL_CATALOG, TOOL_RESULT_ORIGIN, type ToolSet, activatedToolSetNames, analyzeStyle, applyToolSets, buildConnectorGuidance, buildDeniedToolsRider, buildSystemPrompt, clearLazyTitleCache, consoleLogger, cosineInt8, createServerToolsFilter, createStreamingDeAnonymizer, decodeChunkVector, decryptConversationTitle, defaultServerToolsFilter, deleteApiV1Account, deleteApiV1AdminAgentsById, deleteApiV1AdminAppsByAppIdApiKeysById, deleteApiV1AdminAppsById, deleteApiV1AdminPersonasById, deleteApiV1AdminTextReset, deleteApiV1DeveloperAppsByAppUuid, deleteApiV1DeveloperAppsByAppUuidApiKeysByKeyId, deleteApiV1DeveloperAppsByAppUuidPrivy, deleteApiV1UserApiKeysByKeyId, deleteApiV1WalletsBindingByAddress, dequantizeEmbedding, encodeChunkVector, expandToolSetsAdditive, getApiV1AdminApps, getApiV1AdminAppsByAppIdApiKeys, getApiV1AdminAppsByAppIdApiKeysById, getApiV1AdminAppsById, getApiV1AdminUsersLookup, getApiV1AgentPreferences, getApiV1Agents, getApiV1AgentsById, getApiV1Config, getApiV1CreditsBalance, getApiV1CreditsPacks, getApiV1DeveloperApps, getApiV1DeveloperAppsByAppUuid, getApiV1DeveloperAppsByAppUuidApiKeys, getApiV1DeveloperAppsByAppUuidUsage, getApiV1DeveloperAppsByAppUuidUsageUsers, getApiV1DeveloperAppsByAppUuidUsers, getApiV1DeveloperAppsByAppUuidUsersByAddress, getApiV1DeveloperBilling, getApiV1DocsSwaggerJson, getApiV1Models, getApiV1Personas, getApiV1PersonasById, getApiV1PhoneCallsByCallId, getApiV1SubscriptionsPlans, getApiV1SubscriptionsStatus, getApiV1Tools, getApiV1UsageInferenceWeekly, getApiV1UsageModels, getApiV1UserApiKeys, getApiV1WalletsBinding, getApiV1ZetaCreditRate, getApiV1ZetaMarket, getCostMicroUsd, getCreditsUsed, getHealth, getImageModel, getLogger, getToolCallEvents, isPiiRedactor, noopLogger, patchApiV1DeveloperAppsByAppUuid, patchApiV1DeveloperAppsByAppUuidUsersByAddress, postApiV1AdminAddCredits, postApiV1AdminAgents, postApiV1AdminApps, postApiV1AdminAppsByAppIdApiKeys, postApiV1AdminPersonas, postApiV1AdminSeedApps, postApiV1AdminSubscriptionTier, postApiV1ChatCompletions, postApiV1CreditsPurchase, postApiV1CreditsRedeemTokens, postApiV1DeveloperApps, postApiV1DeveloperAppsByAppUuidApiKeys, postApiV1DeveloperAppsByAppUuidFund, postApiV1DeveloperAppsByAppUuidPrivy, postApiV1DeveloperAppsByAppUuidUsersByAddressTopUp, postApiV1Embeddings, postApiV1PhoneCalls, postApiV1Responses, postApiV1SubscriptionsCancel, postApiV1SubscriptionsCancelScheduledDowngrade, postApiV1SubscriptionsCreateCheckoutSession, postApiV1SubscriptionsCustomerPortal, postApiV1SubscriptionsRenew, postApiV1SubscriptionsScheduleDowngrade, postApiV1SubscriptionsUpgrade, postApiV1SubscriptionsWebhook, postApiV1UserApiKeys, postApiV1WalletsBinding, postApiV1WalletsBindingNonce, postApiV1WebhooksRevenuecat, postAuthOauthByProviderExchange, postAuthOauthByProviderRefresh, postAuthOauthByProviderRevoke, putApiV1AdminAgentsById, putApiV1AdminAppsByAppIdApiKeysById, putApiV1AdminAppsById, putApiV1AdminPersonasById, putApiV1AgentsByIdPreference, quantizeEmbedding, renderTemplate, resolvePiiRedactor, sanitizeQuotes, selectServerSideTools, setLogger, shouldAnalyzeStyle, toolSetSystemPrompts, withSseKeepalive };
|
|
8889
|
+
/**
|
|
8890
|
+
* Class-B task types — the vocabulary of the `X-Anuma-Task-Type` header.
|
|
8891
|
+
*
|
|
8892
|
+
* A Class-B flow has ONE fixed purpose and no conversation: extract memories
|
|
8893
|
+
* from a snippet, pick a topic, consolidate duplicates, classify a query. Today
|
|
8894
|
+
* each of those builds its own system prompt on the client and sends it as a
|
|
8895
|
+
* `role:system` message, which makes the prompt a suggestion rather than a
|
|
8896
|
+
* contract — a caller can reword it into "you are a general assistant" and get
|
|
8897
|
+
* general chat at internal-endpoint prices.
|
|
8898
|
+
*
|
|
8899
|
+
* The fix is that the SERVER owns the text and the client only names the task.
|
|
8900
|
+
* This header is the name. The portal allowlists it against its own copy of this
|
|
8901
|
+
* enum (ai-portal `internal/systemprompt/tasks.go`) and DROPS anything it does
|
|
8902
|
+
* not recognise, so an unknown value degrades to "no task declared" rather than
|
|
8903
|
+
* failing the request.
|
|
8904
|
+
*
|
|
8905
|
+
* ⚠ These string values are a wire contract with ai-portal. Adding one here
|
|
8906
|
+
* before the portal knows it is harmless (it is dropped); renaming or removing
|
|
8907
|
+
* one silently stops that flow being counted. Keep them in step with
|
|
8908
|
+
* `AllTaskTypes` on the portal side, and see ai-portal
|
|
8909
|
+
* `docs/BACKEND_OWNED_TASK_PROMPTS.md` for the rollout.
|
|
8910
|
+
*
|
|
8911
|
+
* Deliberately ABSENT: agent personas, `reflect()` when it answers the user, and
|
|
8912
|
+
* the app-idea chat. Those carry an open conversation with the user, so a fixed
|
|
8913
|
+
* server-owned prompt would be wrong rather than merely premature — the same
|
|
8914
|
+
* boundary {@link INTERNAL_FLOW_MARKER} draws.
|
|
8915
|
+
*
|
|
8916
|
+
* @public
|
|
8917
|
+
*/
|
|
8918
|
+
type TaskType = "title" | "commit_message" | "memory_extract" | "memory_dedup" | "memory_decay" | "memory_injection_check" | "memory_verify_support" | "memory_autosort" | "memory_topic" | "memory_consolidate" | "memory_decompose" | "memory_profile_synth" | "memory_graph" | "folder_context" | "selection_memory" | "summarize" | "style_analysis" | "classify_search" | "app_inspiration" | "spotlight_image" | "slide_image" | "media_video" | "media_audio" | "media_bg_removal" | "media_image_preset" | "tool_app_builder" | "tool_document_builder" | "tool_slides" | "connector_guidance" | "cf_task" | "xbot_intent" | "xbot_council" | "scheduled_task";
|
|
8919
|
+
/**
|
|
8920
|
+
* HTTP header naming the Class-B task a request performs.
|
|
8921
|
+
*
|
|
8922
|
+
* @public
|
|
8923
|
+
*/
|
|
8924
|
+
declare const TASK_TYPE_HEADER = "X-Anuma-Task-Type";
|
|
8925
|
+
/**
|
|
8926
|
+
* Build the task-type header, or nothing when no task is declared.
|
|
8927
|
+
*
|
|
8928
|
+
* Returns a spreadable object so call sites stay a single expression
|
|
8929
|
+
* (`{ ...auth, ...taskTypeHeader(t) }`) and an undeclared task adds no header at
|
|
8930
|
+
* all rather than an empty one — the portal treats absent and invalid
|
|
8931
|
+
* identically, but an empty header value is noise on the wire and in logs.
|
|
8932
|
+
*
|
|
8933
|
+
* @public
|
|
8934
|
+
*/
|
|
8935
|
+
declare function taskTypeHeader(taskType?: TaskType): Record<string, string>;
|
|
8936
|
+
|
|
8937
|
+
export { type AgentAgendaItem, type AgentAgendaTranscript, type AgentAnalysisSection, type AgentAnalysisTranscript, type AgentConfig, type AgentExampleConversation, type AgentManifest, type AgentMarketplaceContent, type AgentMarketplaceFamily, type AgentMarketplaceTranscript, type AgentPrimaryActionKind, type AgentRuntime, type AgentScheduleItem, type AgentTranscriptItem, type AgentTranscriptTone, type AgentUiMetadata, type AnalyzeStyleOptions, type AnalyzeStyleResult, type ApiResponse, BUILT_IN_TOOL_SETS, type BuildPromptOptions, type BuildPromptResult, CHUNKS_DISCARDED_ORIGIN, type ClientOptions, type ConnectorGuidance, type ConnectorGuidanceInput, type CreateServerToolsFilterOptions, DEFAULT_ANALYSIS_PROMPT, DEFAULT_ANALYZE_AFTER_MESSAGES, DEFAULT_DOCUMENT_PATTERN, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_MAX_INPUT_MESSAGES, DEFAULT_MAX_PROFILE_LENGTH, DEFAULT_MIN_MESSAGES, DEFAULT_PROMPT_TEMPLATES, DEFAULT_REFRESH_EVERY_MESSAGES, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, type DeleteApiV1AccountData, type DeleteApiV1AccountError, type DeleteApiV1AccountErrors, type DeleteApiV1AccountResponse, type DeleteApiV1AccountResponses, type DeleteApiV1AdminAgentsByIdData, type DeleteApiV1AdminAgentsByIdError, type DeleteApiV1AdminAgentsByIdErrors, type DeleteApiV1AdminAgentsByIdResponse, type DeleteApiV1AdminAgentsByIdResponses, type DeleteApiV1AdminAppsByAppIdApiKeysByIdData, type DeleteApiV1AdminAppsByAppIdApiKeysByIdError, type DeleteApiV1AdminAppsByAppIdApiKeysByIdErrors, type DeleteApiV1AdminAppsByAppIdApiKeysByIdResponse, type DeleteApiV1AdminAppsByAppIdApiKeysByIdResponses, type DeleteApiV1AdminAppsByIdData, type DeleteApiV1AdminAppsByIdError, type DeleteApiV1AdminAppsByIdErrors, type DeleteApiV1AdminAppsByIdResponse, type DeleteApiV1AdminAppsByIdResponses, type DeleteApiV1AdminPersonasByIdData, type DeleteApiV1AdminPersonasByIdError, type DeleteApiV1AdminPersonasByIdErrors, type DeleteApiV1AdminPersonasByIdResponse, type DeleteApiV1AdminPersonasByIdResponses, type DeleteApiV1AdminTextResetData, type DeleteApiV1AdminTextResetError, type DeleteApiV1AdminTextResetErrors, type DeleteApiV1AdminTextResetResponse, type DeleteApiV1AdminTextResetResponses, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdData, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdError, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdErrors, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdResponse, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdResponses, type DeleteApiV1DeveloperAppsByAppUuidData, type DeleteApiV1DeveloperAppsByAppUuidError, type DeleteApiV1DeveloperAppsByAppUuidErrors, type DeleteApiV1DeveloperAppsByAppUuidPrivyData, type DeleteApiV1DeveloperAppsByAppUuidPrivyError, type DeleteApiV1DeveloperAppsByAppUuidPrivyErrors, type DeleteApiV1DeveloperAppsByAppUuidPrivyResponse, type DeleteApiV1DeveloperAppsByAppUuidPrivyResponses, type DeleteApiV1DeveloperAppsByAppUuidResponse, type DeleteApiV1DeveloperAppsByAppUuidResponses, type DeleteApiV1UserApiKeysByKeyIdData, type DeleteApiV1UserApiKeysByKeyIdError, type DeleteApiV1UserApiKeysByKeyIdErrors, type DeleteApiV1UserApiKeysByKeyIdResponse, type DeleteApiV1UserApiKeysByKeyIdResponses, type DeleteApiV1WalletsBindingByAddressData, type DeleteApiV1WalletsBindingByAddressError, type DeleteApiV1WalletsBindingByAddressErrors, type DeleteApiV1WalletsBindingByAddressResponse, type DeleteApiV1WalletsBindingByAddressResponses, type FileExtractionStrategy, type GetApiV1AdminAppsByAppIdApiKeysByIdData, type GetApiV1AdminAppsByAppIdApiKeysByIdError, type GetApiV1AdminAppsByAppIdApiKeysByIdErrors, type GetApiV1AdminAppsByAppIdApiKeysByIdResponse, type GetApiV1AdminAppsByAppIdApiKeysByIdResponses, type GetApiV1AdminAppsByAppIdApiKeysData, type GetApiV1AdminAppsByAppIdApiKeysError, type GetApiV1AdminAppsByAppIdApiKeysErrors, type GetApiV1AdminAppsByAppIdApiKeysResponse, type GetApiV1AdminAppsByAppIdApiKeysResponses, type GetApiV1AdminAppsByIdData, type GetApiV1AdminAppsByIdError, type GetApiV1AdminAppsByIdErrors, type GetApiV1AdminAppsByIdResponse, type GetApiV1AdminAppsByIdResponses, type GetApiV1AdminAppsData, type GetApiV1AdminAppsError, type GetApiV1AdminAppsErrors, type GetApiV1AdminAppsResponse, type GetApiV1AdminAppsResponses, type GetApiV1AdminUsersLookupData, type GetApiV1AdminUsersLookupError, type GetApiV1AdminUsersLookupErrors, type GetApiV1AdminUsersLookupResponse, type GetApiV1AdminUsersLookupResponses, type GetApiV1AgentPreferencesData, type GetApiV1AgentPreferencesError, type GetApiV1AgentPreferencesErrors, type GetApiV1AgentPreferencesResponse, type GetApiV1AgentPreferencesResponses, type GetApiV1AgentsByIdData, type GetApiV1AgentsByIdError, type GetApiV1AgentsByIdErrors, type GetApiV1AgentsByIdResponse, type GetApiV1AgentsByIdResponses, type GetApiV1AgentsData, type GetApiV1AgentsError, type GetApiV1AgentsErrors, type GetApiV1AgentsResponse, type GetApiV1AgentsResponses, type GetApiV1ConfigData, type GetApiV1ConfigError, type GetApiV1ConfigErrors, type GetApiV1ConfigResponse, type GetApiV1ConfigResponses, type GetApiV1CreditsBalanceData, type GetApiV1CreditsBalanceError, type GetApiV1CreditsBalanceErrors, type GetApiV1CreditsBalanceResponse, type GetApiV1CreditsBalanceResponses, type GetApiV1CreditsPacksData, type GetApiV1CreditsPacksError, type GetApiV1CreditsPacksErrors, type GetApiV1CreditsPacksResponse, type GetApiV1CreditsPacksResponses, type GetApiV1DeveloperAppsByAppUuidApiKeysData, type GetApiV1DeveloperAppsByAppUuidApiKeysError, type GetApiV1DeveloperAppsByAppUuidApiKeysErrors, type GetApiV1DeveloperAppsByAppUuidApiKeysResponse, type GetApiV1DeveloperAppsByAppUuidApiKeysResponses, type GetApiV1DeveloperAppsByAppUuidData, type GetApiV1DeveloperAppsByAppUuidError, type GetApiV1DeveloperAppsByAppUuidErrors, type GetApiV1DeveloperAppsByAppUuidResponse, type GetApiV1DeveloperAppsByAppUuidResponses, type GetApiV1DeveloperAppsByAppUuidUsageData, type GetApiV1DeveloperAppsByAppUuidUsageError, type GetApiV1DeveloperAppsByAppUuidUsageErrors, type GetApiV1DeveloperAppsByAppUuidUsageResponse, type GetApiV1DeveloperAppsByAppUuidUsageResponses, type GetApiV1DeveloperAppsByAppUuidUsageUsersData, type GetApiV1DeveloperAppsByAppUuidUsageUsersError, type GetApiV1DeveloperAppsByAppUuidUsageUsersErrors, type GetApiV1DeveloperAppsByAppUuidUsageUsersResponse, type GetApiV1DeveloperAppsByAppUuidUsageUsersResponses, type GetApiV1DeveloperAppsByAppUuidUsersByAddressData, type GetApiV1DeveloperAppsByAppUuidUsersByAddressError, type GetApiV1DeveloperAppsByAppUuidUsersByAddressErrors, type GetApiV1DeveloperAppsByAppUuidUsersByAddressResponse, type GetApiV1DeveloperAppsByAppUuidUsersByAddressResponses, type GetApiV1DeveloperAppsByAppUuidUsersData, type GetApiV1DeveloperAppsByAppUuidUsersError, type GetApiV1DeveloperAppsByAppUuidUsersErrors, type GetApiV1DeveloperAppsByAppUuidUsersResponse, type GetApiV1DeveloperAppsByAppUuidUsersResponses, type GetApiV1DeveloperAppsData, type GetApiV1DeveloperAppsError, type GetApiV1DeveloperAppsErrors, type GetApiV1DeveloperAppsResponse, type GetApiV1DeveloperAppsResponses, type GetApiV1DeveloperBillingData, type GetApiV1DeveloperBillingError, type GetApiV1DeveloperBillingErrors, type GetApiV1DeveloperBillingResponse, type GetApiV1DeveloperBillingResponses, type GetApiV1DocsSwaggerJsonData, type GetApiV1DocsSwaggerJsonResponse, type GetApiV1DocsSwaggerJsonResponses, type GetApiV1ModelsData, type GetApiV1ModelsError, type GetApiV1ModelsErrors, type GetApiV1ModelsResponse, type GetApiV1ModelsResponses, type GetApiV1PersonasByIdData, type GetApiV1PersonasByIdError, type GetApiV1PersonasByIdErrors, type GetApiV1PersonasByIdResponse, type GetApiV1PersonasByIdResponses, type GetApiV1PersonasData, type GetApiV1PersonasError, type GetApiV1PersonasErrors, type GetApiV1PersonasResponse, type GetApiV1PersonasResponses, type GetApiV1PhoneCallsByCallIdData, type GetApiV1PhoneCallsByCallIdError, type GetApiV1PhoneCallsByCallIdErrors, type GetApiV1PhoneCallsByCallIdResponse, type GetApiV1PhoneCallsByCallIdResponses, type GetApiV1SubscriptionsPlansData, type GetApiV1SubscriptionsPlansError, type GetApiV1SubscriptionsPlansErrors, type GetApiV1SubscriptionsPlansResponse, type GetApiV1SubscriptionsPlansResponses, type GetApiV1SubscriptionsStatusData, type GetApiV1SubscriptionsStatusError, type GetApiV1SubscriptionsStatusErrors, type GetApiV1SubscriptionsStatusResponse, type GetApiV1SubscriptionsStatusResponses, type GetApiV1ToolsData, type GetApiV1ToolsError, type GetApiV1ToolsErrors, type GetApiV1ToolsResponse, type GetApiV1ToolsResponses, type GetApiV1UsageInferenceWeeklyData, type GetApiV1UsageInferenceWeeklyResponse, type GetApiV1UsageInferenceWeeklyResponses, type GetApiV1UsageModelsData, type GetApiV1UsageModelsError, type GetApiV1UsageModelsErrors, type GetApiV1UsageModelsResponse, type GetApiV1UsageModelsResponses, type GetApiV1UserApiKeysData, type GetApiV1UserApiKeysError, type GetApiV1UserApiKeysErrors, type GetApiV1UserApiKeysResponse, type GetApiV1UserApiKeysResponses, type GetApiV1WalletsBindingData, type GetApiV1WalletsBindingError, type GetApiV1WalletsBindingErrors, type GetApiV1WalletsBindingResponse, type GetApiV1WalletsBindingResponses, type GetApiV1ZetaCreditRateData, type GetApiV1ZetaCreditRateResponse, type GetApiV1ZetaCreditRateResponses, type GetApiV1ZetaMarketData, type GetApiV1ZetaMarketResponse, type GetApiV1ZetaMarketResponses, type GetHealthData, type GetHealthError, type GetHealthErrors, type GetHealthResponse, type GetHealthResponses, type HandlersAddCreditsRequest, type HandlersAddCreditsResponse, type HandlersAgentListItem, type HandlersAgentListResponse, type HandlersAgentResponse, type HandlersApiKeyResponse, type HandlersApiKeyWithKeyResponse, type HandlersAppConfig, type HandlersAppResponse, type HandlersAppUsageResponse, type HandlersAppUserUsageResponse, type HandlersBillingHistoryResponse, type HandlersBillingRecordResponse, type HandlersBindRequest, type HandlersBoundWalletResponse, type HandlersCancelScheduledDowngradeResponse, type HandlersCancelSubscriptionResponse, type HandlersCheckoutSessionResponse, type HandlersConfigResponse, type HandlersConfigurePrivyRequest, type HandlersCreateAgentRequest, type HandlersCreateApiKeyRequest, type HandlersCreateAppRequest, type HandlersCreateCheckoutSessionRequest, type HandlersCreateCreditPackCheckoutRequest, type HandlersCreateCustomerPortalRequest, type HandlersCreateDeveloperAppRequest, type HandlersCreatePersonaRequest, type HandlersCreatePhoneCallRequest, type HandlersCreditBalanceResponse, type HandlersCreditPack, type HandlersCreditPacksResponse, type HandlersCreditRateResponse, type HandlersCustomerPortalResponse, type HandlersDeveloperApiKeyRequest, type HandlersDeveloperApiKeyResponse, type HandlersDeveloperApiKeyWithSecretResponse, type HandlersDeveloperAppResponse, type HandlersDeveloperUserResponse, type HandlersExchangeRequest, type HandlersExpiringCredits, type HandlersFundDeveloperAppRequest, type HandlersGeneratedApiKey, type HandlersGetToolsResponse, type HandlersHealthResponse, type HandlersInferenceWeeklyResponse, type HandlersListApiKeysResponse, type HandlersListAppsResponse, type HandlersListDeveloperApiKeysResponse, type HandlersListDeveloperAppsResponse, type HandlersListResponse, type HandlersListTotals, type HandlersListUserApiKeysResponse, type HandlersListUsersResponse, type HandlersModelToolUsageItem, type HandlersModelUsageItem, type HandlersNonceResponse, type HandlersPaginationResponse, type HandlersPersonaListResponse, type HandlersPersonaResponse, type HandlersPhoneCallResponse, type HandlersPhoneCallTranscriptEntry, type HandlersProInfo, type HandlersRedeemTokensRequest, type HandlersRedeemTokensResponse, type HandlersRefreshRequest, type HandlersRenewSubscriptionResponse, type HandlersRevokeRequest, type HandlersScheduleDowngradeRequest, type HandlersScheduleDowngradeResponse, type HandlersSeedApiKeyInput, type HandlersSeedAppInput, type HandlersSeedAppsRequest, type HandlersSeedAppsResponse, type HandlersSetSubscriptionTierRequest, type HandlersSetSubscriptionTierResponse, type HandlersSetUserAgentPreferenceRequest, type HandlersSubscriptionPlan, type HandlersSubscriptionPlansResponse, type HandlersSubscriptionStatusResponse, type HandlersTokenResponse, type HandlersTool, type HandlersToolCallDetailItem, type HandlersTopUpUserRequest, type HandlersUpdateAgentRequest, type HandlersUpdateApiKeyRequest, type HandlersUpdateAppRequest, type HandlersUpdateDeveloperAppRequest, type HandlersUpdatePersonaRequest, type HandlersUpdateUserLimitRequest, type HandlersUpgradeSubscriptionRequest, type HandlersUpgradeSubscriptionResponse, type HandlersUsageByModelResponse, type HandlersUsagePeriod, type HandlersUsageTimeseriesPoint, type HandlersUsageTotals, type HandlersUserAgentPreferenceResponse, type HandlersUserAgentPreferencesListResponse, type HandlersUserApiKeyRequest, type HandlersUserApiKeyResponse, type HandlersUserApiKeyWithSecretResponse, type HandlersUserLookupAccount, type HandlersUserLookupEnrollment, type HandlersUserLookupResponse, type HandlersUserLookupTextReg, type HandlersUserUsageResponse, type HandlersWalletDetails, type HandlersWeeklyInferenceItem, type HandlersZetaMarketResponse, type LazyStoredConversation, type LlmapiChatCompletionExtraFields, type LlmapiChatCompletionRequest, type LlmapiChatCompletionResponse, type LlmapiChatCompletionTool, type LlmapiChatCompletionToolChoice, type LlmapiChatCompletionUsage, type OpenaiChatCompletionChoice as LlmapiChoice, type LlmapiEmbeddingData, type LlmapiEmbeddingExtraFields, type LlmapiEmbeddingRequest, type LlmapiEmbeddingResponse, type LlmapiEmbeddingUsage, type LlmapiMcpTool, type LlmapiMessage, type LlmapiMessageContentFile, type LlmapiMessageContentImage, type LlmapiMessageContentPart, type LlmapiModel, type LlmapiModelArchitecture, type LlmapiModelPerRequestLimits, type LlmapiModelPricing, type LlmapiModelTopProvider, type LlmapiModelsListExtraFields, type LlmapiModelsListResponse, type LlmapiPortalChatCompletionRequest, type LlmapiPortalChatCompletionResponse, type LlmapiResponseExtraFields, type LlmapiResponseInput, type LlmapiResponseOutputContent, type LlmapiResponseOutputItem, type LlmapiResponseReasoning, type LlmapiResponseRequest, type LlmapiResponseResponse, type LlmapiResponseTool, type LlmapiResponseToolChoice, type LlmapiResponseUsage, type LlmapiRole, type LlmapiThinkingOptions, type LlmapiToolCall, type LlmapiToolCallEvent, type LlmapiToolCallFunction, type Logger, MULTILINE_FIELD_MAX, type McpToolSchema, type MessageRedactionResult, type NerDetector, type Options, PII_PATTERNS, type PatchApiV1DeveloperAppsByAppUuidData, type PatchApiV1DeveloperAppsByAppUuidError, type PatchApiV1DeveloperAppsByAppUuidErrors, type PatchApiV1DeveloperAppsByAppUuidResponse, type PatchApiV1DeveloperAppsByAppUuidResponses, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressData, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressError, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressErrors, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressResponse, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressResponses, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PiiSpan, type PostApiV1AdminAddCreditsData, type PostApiV1AdminAddCreditsError, type PostApiV1AdminAddCreditsErrors, type PostApiV1AdminAddCreditsResponse, type PostApiV1AdminAddCreditsResponses, type PostApiV1AdminAgentsData, type PostApiV1AdminAgentsError, type PostApiV1AdminAgentsErrors, type PostApiV1AdminAgentsResponse, type PostApiV1AdminAgentsResponses, type PostApiV1AdminAppsByAppIdApiKeysData, type PostApiV1AdminAppsByAppIdApiKeysError, type PostApiV1AdminAppsByAppIdApiKeysErrors, type PostApiV1AdminAppsByAppIdApiKeysResponse, type PostApiV1AdminAppsByAppIdApiKeysResponses, type PostApiV1AdminAppsData, type PostApiV1AdminAppsError, type PostApiV1AdminAppsErrors, type PostApiV1AdminAppsResponse, type PostApiV1AdminAppsResponses, type PostApiV1AdminPersonasData, type PostApiV1AdminPersonasError, type PostApiV1AdminPersonasErrors, type PostApiV1AdminPersonasResponse, type PostApiV1AdminPersonasResponses, type PostApiV1AdminSeedAppsData, type PostApiV1AdminSeedAppsError, type PostApiV1AdminSeedAppsErrors, type PostApiV1AdminSeedAppsResponse, type PostApiV1AdminSeedAppsResponses, type PostApiV1AdminSubscriptionTierData, type PostApiV1AdminSubscriptionTierError, type PostApiV1AdminSubscriptionTierErrors, type PostApiV1AdminSubscriptionTierResponse, type PostApiV1AdminSubscriptionTierResponses, type PostApiV1ChatCompletionsData, type PostApiV1ChatCompletionsError, type PostApiV1ChatCompletionsErrors, type PostApiV1ChatCompletionsResponse, type PostApiV1ChatCompletionsResponses, type PostApiV1CreditsPurchaseData, type PostApiV1CreditsPurchaseError, type PostApiV1CreditsPurchaseErrors, type PostApiV1CreditsPurchaseResponse, type PostApiV1CreditsPurchaseResponses, type PostApiV1CreditsRedeemTokensData, type PostApiV1CreditsRedeemTokensError, type PostApiV1CreditsRedeemTokensErrors, type PostApiV1CreditsRedeemTokensResponse, type PostApiV1CreditsRedeemTokensResponses, type PostApiV1DeveloperAppsByAppUuidApiKeysData, type PostApiV1DeveloperAppsByAppUuidApiKeysError, type PostApiV1DeveloperAppsByAppUuidApiKeysErrors, type PostApiV1DeveloperAppsByAppUuidApiKeysResponse, type PostApiV1DeveloperAppsByAppUuidApiKeysResponses, type PostApiV1DeveloperAppsByAppUuidFundData, type PostApiV1DeveloperAppsByAppUuidFundError, type PostApiV1DeveloperAppsByAppUuidFundErrors, type PostApiV1DeveloperAppsByAppUuidFundResponse, type PostApiV1DeveloperAppsByAppUuidFundResponses, type PostApiV1DeveloperAppsByAppUuidPrivyData, type PostApiV1DeveloperAppsByAppUuidPrivyError, type PostApiV1DeveloperAppsByAppUuidPrivyErrors, type PostApiV1DeveloperAppsByAppUuidPrivyResponse, type PostApiV1DeveloperAppsByAppUuidPrivyResponses, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpData, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpError, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpErrors, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpResponse, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpResponses, type PostApiV1DeveloperAppsData, type PostApiV1DeveloperAppsError, type PostApiV1DeveloperAppsErrors, type PostApiV1DeveloperAppsResponse, type PostApiV1DeveloperAppsResponses, type PostApiV1EmbeddingsData, type PostApiV1EmbeddingsError, type PostApiV1EmbeddingsErrors, type PostApiV1EmbeddingsResponse, type PostApiV1EmbeddingsResponses, type PostApiV1PhoneCallsData, type PostApiV1PhoneCallsError, type PostApiV1PhoneCallsErrors, type PostApiV1PhoneCallsResponse, type PostApiV1PhoneCallsResponses, type PostApiV1ResponsesData, type PostApiV1ResponsesError, type PostApiV1ResponsesErrors, type PostApiV1ResponsesResponse, type PostApiV1ResponsesResponses, type PostApiV1SubscriptionsCancelData, type PostApiV1SubscriptionsCancelError, type PostApiV1SubscriptionsCancelErrors, type PostApiV1SubscriptionsCancelResponse, type PostApiV1SubscriptionsCancelResponses, type PostApiV1SubscriptionsCancelScheduledDowngradeData, type PostApiV1SubscriptionsCancelScheduledDowngradeError, type PostApiV1SubscriptionsCancelScheduledDowngradeErrors, type PostApiV1SubscriptionsCancelScheduledDowngradeResponse, type PostApiV1SubscriptionsCancelScheduledDowngradeResponses, type PostApiV1SubscriptionsCreateCheckoutSessionData, type PostApiV1SubscriptionsCreateCheckoutSessionError, type PostApiV1SubscriptionsCreateCheckoutSessionErrors, type PostApiV1SubscriptionsCreateCheckoutSessionResponse, type PostApiV1SubscriptionsCreateCheckoutSessionResponses, type PostApiV1SubscriptionsCustomerPortalData, type PostApiV1SubscriptionsCustomerPortalError, type PostApiV1SubscriptionsCustomerPortalErrors, type PostApiV1SubscriptionsCustomerPortalResponse, type PostApiV1SubscriptionsCustomerPortalResponses, type PostApiV1SubscriptionsRenewData, type PostApiV1SubscriptionsRenewError, type PostApiV1SubscriptionsRenewErrors, type PostApiV1SubscriptionsRenewResponse, type PostApiV1SubscriptionsRenewResponses, type PostApiV1SubscriptionsScheduleDowngradeData, type PostApiV1SubscriptionsScheduleDowngradeError, type PostApiV1SubscriptionsScheduleDowngradeErrors, type PostApiV1SubscriptionsScheduleDowngradeResponse, type PostApiV1SubscriptionsScheduleDowngradeResponses, type PostApiV1SubscriptionsUpgradeData, type PostApiV1SubscriptionsUpgradeError, type PostApiV1SubscriptionsUpgradeErrors, type PostApiV1SubscriptionsUpgradeResponse, type PostApiV1SubscriptionsUpgradeResponses, type PostApiV1SubscriptionsWebhookData, type PostApiV1SubscriptionsWebhookError, type PostApiV1SubscriptionsWebhookErrors, type PostApiV1SubscriptionsWebhookResponse, type PostApiV1SubscriptionsWebhookResponses, type PostApiV1UserApiKeysData, type PostApiV1UserApiKeysError, type PostApiV1UserApiKeysErrors, type PostApiV1UserApiKeysResponse, type PostApiV1UserApiKeysResponses, type PostApiV1WalletsBindingData, type PostApiV1WalletsBindingError, type PostApiV1WalletsBindingErrors, type PostApiV1WalletsBindingNonceData, type PostApiV1WalletsBindingNonceError, type PostApiV1WalletsBindingNonceErrors, type PostApiV1WalletsBindingNonceResponse, type PostApiV1WalletsBindingNonceResponses, type PostApiV1WalletsBindingResponse, type PostApiV1WalletsBindingResponses, type PostApiV1WebhooksRevenuecatData, type PostApiV1WebhooksRevenuecatError, type PostApiV1WebhooksRevenuecatErrors, type PostApiV1WebhooksRevenuecatResponse, type PostApiV1WebhooksRevenuecatResponses, type PostAuthOauthByProviderExchangeData, type PostAuthOauthByProviderExchangeError, type PostAuthOauthByProviderExchangeErrors, type PostAuthOauthByProviderExchangeResponse, type PostAuthOauthByProviderExchangeResponses, type PostAuthOauthByProviderRefreshData, type PostAuthOauthByProviderRefreshError, type PostAuthOauthByProviderRefreshErrors, type PostAuthOauthByProviderRefreshResponse, type PostAuthOauthByProviderRefreshResponses, type PostAuthOauthByProviderRevokeData, type PostAuthOauthByProviderRevokeError, type PostAuthOauthByProviderRevokeErrors, type PostAuthOauthByProviderRevokeResponse, type PostAuthOauthByProviderRevokeResponses, type PromptContext, type PromptSection, type PromptTemplates, type PutApiV1AdminAgentsByIdData, type PutApiV1AdminAgentsByIdError, type PutApiV1AdminAgentsByIdErrors, type PutApiV1AdminAgentsByIdResponse, type PutApiV1AdminAgentsByIdResponses, type PutApiV1AdminAppsByAppIdApiKeysByIdData, type PutApiV1AdminAppsByAppIdApiKeysByIdError, type PutApiV1AdminAppsByAppIdApiKeysByIdErrors, type PutApiV1AdminAppsByAppIdApiKeysByIdResponse, type PutApiV1AdminAppsByAppIdApiKeysByIdResponses, type PutApiV1AdminAppsByIdData, type PutApiV1AdminAppsByIdError, type PutApiV1AdminAppsByIdErrors, type PutApiV1AdminAppsByIdResponse, type PutApiV1AdminAppsByIdResponses, type PutApiV1AdminPersonasByIdData, type PutApiV1AdminPersonasByIdError, type PutApiV1AdminPersonasByIdErrors, type PutApiV1AdminPersonasByIdResponse, type PutApiV1AdminPersonasByIdResponses, type PutApiV1AgentsByIdPreferenceData, type PutApiV1AgentsByIdPreferenceError, type PutApiV1AgentsByIdPreferenceErrors, type PutApiV1AgentsByIdPreferenceResponse, type PutApiV1AgentsByIdPreferenceResponses, type QuantizedEmbedding, type RedactionResult, type ResponseErrorResponse, type SelectServerSideToolsOptions, type SkillConfig, type SkillJourneyDefinition, type SkillJourneyField, type SkillJourneyFieldType, SseIdleTimeoutError, type SseKeepaliveOptions, type StyleAnalysisSchedule, TASK_TYPE_HEADER, TOOL_CATALOG, TOOL_RESULT_ORIGIN, type TaskType, type ToolSet, activatedToolSetNames, analyzeStyle, applyToolSets, buildConnectorGuidance, buildDeniedToolsRider, buildSystemPrompt, clearLazyTitleCache, consoleLogger, cosineInt8, createServerToolsFilter, createStreamingDeAnonymizer, decodeChunkVector, decryptConversationTitle, defaultServerToolsFilter, deleteApiV1Account, deleteApiV1AdminAgentsById, deleteApiV1AdminAppsByAppIdApiKeysById, deleteApiV1AdminAppsById, deleteApiV1AdminPersonasById, deleteApiV1AdminTextReset, deleteApiV1DeveloperAppsByAppUuid, deleteApiV1DeveloperAppsByAppUuidApiKeysByKeyId, deleteApiV1DeveloperAppsByAppUuidPrivy, deleteApiV1UserApiKeysByKeyId, deleteApiV1WalletsBindingByAddress, dequantizeEmbedding, encodeChunkVector, expandToolSetsAdditive, getApiV1AdminApps, getApiV1AdminAppsByAppIdApiKeys, getApiV1AdminAppsByAppIdApiKeysById, getApiV1AdminAppsById, getApiV1AdminUsersLookup, getApiV1AgentPreferences, getApiV1Agents, getApiV1AgentsById, getApiV1Config, getApiV1CreditsBalance, getApiV1CreditsPacks, getApiV1DeveloperApps, getApiV1DeveloperAppsByAppUuid, getApiV1DeveloperAppsByAppUuidApiKeys, getApiV1DeveloperAppsByAppUuidUsage, getApiV1DeveloperAppsByAppUuidUsageUsers, getApiV1DeveloperAppsByAppUuidUsers, getApiV1DeveloperAppsByAppUuidUsersByAddress, getApiV1DeveloperBilling, getApiV1DocsSwaggerJson, getApiV1Models, getApiV1Personas, getApiV1PersonasById, getApiV1PhoneCallsByCallId, getApiV1SubscriptionsPlans, getApiV1SubscriptionsStatus, getApiV1Tools, getApiV1UsageInferenceWeekly, getApiV1UsageModels, getApiV1UserApiKeys, getApiV1WalletsBinding, getApiV1ZetaCreditRate, getApiV1ZetaMarket, getCostMicroUsd, getCreditsUsed, getHealth, getImageModel, getLogger, getToolCallEvents, isPiiRedactor, noopLogger, patchApiV1DeveloperAppsByAppUuid, patchApiV1DeveloperAppsByAppUuidUsersByAddress, postApiV1AdminAddCredits, postApiV1AdminAgents, postApiV1AdminApps, postApiV1AdminAppsByAppIdApiKeys, postApiV1AdminPersonas, postApiV1AdminSeedApps, postApiV1AdminSubscriptionTier, postApiV1ChatCompletions, postApiV1CreditsPurchase, postApiV1CreditsRedeemTokens, postApiV1DeveloperApps, postApiV1DeveloperAppsByAppUuidApiKeys, postApiV1DeveloperAppsByAppUuidFund, postApiV1DeveloperAppsByAppUuidPrivy, postApiV1DeveloperAppsByAppUuidUsersByAddressTopUp, postApiV1Embeddings, postApiV1PhoneCalls, postApiV1Responses, postApiV1SubscriptionsCancel, postApiV1SubscriptionsCancelScheduledDowngrade, postApiV1SubscriptionsCreateCheckoutSession, postApiV1SubscriptionsCustomerPortal, postApiV1SubscriptionsRenew, postApiV1SubscriptionsScheduleDowngrade, postApiV1SubscriptionsUpgrade, postApiV1SubscriptionsWebhook, postApiV1UserApiKeys, postApiV1WalletsBinding, postApiV1WalletsBindingNonce, postApiV1WebhooksRevenuecat, postAuthOauthByProviderExchange, postAuthOauthByProviderRefresh, postAuthOauthByProviderRevoke, putApiV1AdminAgentsById, putApiV1AdminAppsByAppIdApiKeysById, putApiV1AdminAppsById, putApiV1AdminPersonasById, putApiV1AgentsByIdPreference, quantizeEmbedding, renderTemplate, resolvePiiRedactor, sanitizeQuotes, selectServerSideTools, setLogger, shouldAnalyzeStyle, taskTypeHeader, toolSetSystemPrompts, withSseKeepalive };
|
package/dist/index.mjs
CHANGED
|
@@ -3600,6 +3600,12 @@ function createStreamingDeAnonymizer(redactor, emit) {
|
|
|
3600
3600
|
}
|
|
3601
3601
|
};
|
|
3602
3602
|
}
|
|
3603
|
+
|
|
3604
|
+
// src/lib/taskType.ts
|
|
3605
|
+
var TASK_TYPE_HEADER = "X-Anuma-Task-Type";
|
|
3606
|
+
function taskTypeHeader(taskType) {
|
|
3607
|
+
return taskType ? { [TASK_TYPE_HEADER]: taskType } : {};
|
|
3608
|
+
}
|
|
3603
3609
|
export {
|
|
3604
3610
|
BUILT_IN_TOOL_SETS,
|
|
3605
3611
|
CHUNKS_DISCARDED_ORIGIN,
|
|
@@ -3617,6 +3623,7 @@ export {
|
|
|
3617
3623
|
PII_PATTERNS,
|
|
3618
3624
|
PiiRedactor,
|
|
3619
3625
|
SseIdleTimeoutError,
|
|
3626
|
+
TASK_TYPE_HEADER,
|
|
3620
3627
|
TOOL_CATALOG,
|
|
3621
3628
|
TOOL_RESULT_ORIGIN,
|
|
3622
3629
|
activatedToolSetNames,
|
|
@@ -3735,6 +3742,7 @@ export {
|
|
|
3735
3742
|
selectServerSideTools,
|
|
3736
3743
|
setLogger,
|
|
3737
3744
|
shouldAnalyzeStyle,
|
|
3745
|
+
taskTypeHeader,
|
|
3738
3746
|
toolSetSystemPrompts,
|
|
3739
3747
|
withSseKeepalive
|
|
3740
3748
|
};
|
|
@@ -53,6 +53,12 @@ function withInternalFlowMarker(systemPrompt) {
|
|
|
53
53
|
${systemPrompt}`;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
+
// src/lib/taskType.ts
|
|
57
|
+
var TASK_TYPE_HEADER = "X-Anuma-Task-Type";
|
|
58
|
+
function taskTypeHeader(taskType) {
|
|
59
|
+
return taskType ? { [TASK_TYPE_HEADER]: taskType } : {};
|
|
60
|
+
}
|
|
61
|
+
|
|
56
62
|
// src/lib/memory/portalLlm.ts
|
|
57
63
|
function defaultBaseUrl() {
|
|
58
64
|
return typeof process !== "undefined" && process.env?.ANUMA_PORTAL_BASE_URL || BASE_URL;
|
|
@@ -195,7 +201,13 @@ async function attemptPortalJson(req, endpoint) {
|
|
|
195
201
|
try {
|
|
196
202
|
response = await fetchImpl(`${baseUrl}${endpoint}`, {
|
|
197
203
|
method: "POST",
|
|
198
|
-
|
|
204
|
+
// Attached HERE, at the one transport every background memory op shares, so
|
|
205
|
+
// a new flow gets the provenance by construction rather than by remembering.
|
|
206
|
+
headers: {
|
|
207
|
+
...authHeaders,
|
|
208
|
+
...taskTypeHeader(req.taskType),
|
|
209
|
+
"Content-Type": "application/json"
|
|
210
|
+
},
|
|
199
211
|
body: JSON.stringify(requestBody),
|
|
200
212
|
signal: controller.signal
|
|
201
213
|
});
|
|
@@ -343,6 +355,7 @@ export {
|
|
|
343
355
|
validateEndpointOverride,
|
|
344
356
|
INTERNAL_FLOW_MARKER,
|
|
345
357
|
withInternalFlowMarker,
|
|
358
|
+
taskTypeHeader,
|
|
346
359
|
supportsResponseFormat,
|
|
347
360
|
resolvePortalAuthHeaders,
|
|
348
361
|
callPortalJsonCompletion,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
callPortalJsonCompletion,
|
|
3
3
|
getLogger
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CJ32HO6Q.mjs";
|
|
5
5
|
import {
|
|
6
6
|
BASE_URL,
|
|
7
7
|
createClientConfig
|
|
@@ -7085,7 +7085,7 @@ function createMemoryVaultSearchTool(vaultCtx, embeddingOptions, cache, searchOp
|
|
|
7085
7085
|
subQueries = decomp.subQueries;
|
|
7086
7086
|
}
|
|
7087
7087
|
}
|
|
7088
|
-
const { recall: recall2 } = await import("./recall-
|
|
7088
|
+
const { recall: recall2 } = await import("./recall-B2AIAPCM.mjs");
|
|
7089
7089
|
let recallDegraded = [];
|
|
7090
7090
|
const result = await recall2(
|
|
7091
7091
|
query,
|
|
@@ -7352,6 +7352,7 @@ Output strict JSON, no prose: { "expand": [<entity names to expand, verbatim fro
|
|
|
7352
7352
|
...options.apiKey !== void 0 && { apiKey: options.apiKey },
|
|
7353
7353
|
...options.getToken !== void 0 && { getToken: options.getToken },
|
|
7354
7354
|
...options.baseUrl !== void 0 && { baseUrl: options.baseUrl },
|
|
7355
|
+
taskType: "memory_graph",
|
|
7355
7356
|
model: options.model ?? DEFAULT_REFINER_MODEL,
|
|
7356
7357
|
systemPrompt,
|
|
7357
7358
|
userMessage: `Question: ${query}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
notifyConsolidationFallback,
|
|
3
3
|
resolvePiiRedactor
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DY5VGC6K.mjs";
|
|
5
5
|
import {
|
|
6
6
|
callPortalJsonCompletion
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CJ32HO6Q.mjs";
|
|
8
8
|
import "./chunk-GYKJOWEO.mjs";
|
|
9
9
|
|
|
10
10
|
// src/lib/memory/consolidate.ts
|
|
@@ -77,6 +77,7 @@ ${candidateText}`;
|
|
|
77
77
|
...options.apiKey !== void 0 && { apiKey: options.apiKey },
|
|
78
78
|
...options.getToken !== void 0 && { getToken: options.getToken },
|
|
79
79
|
...options.baseUrl !== void 0 && { baseUrl: options.baseUrl },
|
|
80
|
+
taskType: "memory_consolidate",
|
|
80
81
|
model: options.model ?? DEFAULT_CONSOLIDATION_MODEL,
|
|
81
82
|
systemPrompt: SYSTEM_PROMPT,
|
|
82
83
|
userMessage,
|
package/dist/react/index.cjs
CHANGED
|
@@ -4795,6 +4795,18 @@ var init_internalFlowMarker = __esm({
|
|
|
4795
4795
|
}
|
|
4796
4796
|
});
|
|
4797
4797
|
|
|
4798
|
+
// src/lib/taskType.ts
|
|
4799
|
+
function taskTypeHeader(taskType) {
|
|
4800
|
+
return taskType ? { [TASK_TYPE_HEADER]: taskType } : {};
|
|
4801
|
+
}
|
|
4802
|
+
var TASK_TYPE_HEADER;
|
|
4803
|
+
var init_taskType = __esm({
|
|
4804
|
+
"src/lib/taskType.ts"() {
|
|
4805
|
+
"use strict";
|
|
4806
|
+
TASK_TYPE_HEADER = "X-Anuma-Task-Type";
|
|
4807
|
+
}
|
|
4808
|
+
});
|
|
4809
|
+
|
|
4798
4810
|
// src/lib/db/entities/types.ts
|
|
4799
4811
|
function normalizeEntityName(name) {
|
|
4800
4812
|
return name.trim().toLowerCase();
|
|
@@ -6509,7 +6521,13 @@ async function attemptPortalJson(req, endpoint) {
|
|
|
6509
6521
|
try {
|
|
6510
6522
|
response = await fetchImpl(`${baseUrl}${endpoint}`, {
|
|
6511
6523
|
method: "POST",
|
|
6512
|
-
|
|
6524
|
+
// Attached HERE, at the one transport every background memory op shares, so
|
|
6525
|
+
// a new flow gets the provenance by construction rather than by remembering.
|
|
6526
|
+
headers: {
|
|
6527
|
+
...authHeaders,
|
|
6528
|
+
...taskTypeHeader(req.taskType),
|
|
6529
|
+
"Content-Type": "application/json"
|
|
6530
|
+
},
|
|
6513
6531
|
body: JSON.stringify(requestBody),
|
|
6514
6532
|
signal: controller.signal
|
|
6515
6533
|
});
|
|
@@ -6656,6 +6674,7 @@ var init_portalLlm = __esm({
|
|
|
6656
6674
|
init_endpointOverride();
|
|
6657
6675
|
init_internalFlowMarker();
|
|
6658
6676
|
init_logger();
|
|
6677
|
+
init_taskType();
|
|
6659
6678
|
RESPONSE_FORMAT_OK = /* @__PURE__ */ new Set(["openai", "inclusionai", "deepseek"]);
|
|
6660
6679
|
RESPONSE_SCHEMA_OK = /* @__PURE__ */ new Set(["openai"]);
|
|
6661
6680
|
RETRYABLE_HTTP = /* @__PURE__ */ new Set([408, 409, 425, 429]);
|
|
@@ -7442,6 +7461,7 @@ Output strict JSON, no prose: { "expand": [<entity names to expand, verbatim fro
|
|
|
7442
7461
|
...options.apiKey !== void 0 && { apiKey: options.apiKey },
|
|
7443
7462
|
...options.getToken !== void 0 && { getToken: options.getToken },
|
|
7444
7463
|
...options.baseUrl !== void 0 && { baseUrl: options.baseUrl },
|
|
7464
|
+
taskType: "memory_graph",
|
|
7445
7465
|
model: options.model ?? DEFAULT_REFINER_MODEL,
|
|
7446
7466
|
systemPrompt,
|
|
7447
7467
|
userMessage: `Question: ${query}
|
|
@@ -9525,6 +9545,7 @@ ${candidateText}`;
|
|
|
9525
9545
|
...options.apiKey !== void 0 && { apiKey: options.apiKey },
|
|
9526
9546
|
...options.getToken !== void 0 && { getToken: options.getToken },
|
|
9527
9547
|
...options.baseUrl !== void 0 && { baseUrl: options.baseUrl },
|
|
9548
|
+
taskType: "memory_consolidate",
|
|
9528
9549
|
model: options.model ?? DEFAULT_CONSOLIDATION_MODEL,
|
|
9529
9550
|
systemPrompt: SYSTEM_PROMPT3,
|
|
9530
9551
|
userMessage,
|
|
@@ -14913,6 +14934,7 @@ async function deleteConversationSummaryOp(ctx, conversationId) {
|
|
|
14913
14934
|
// src/lib/chat/summarize.ts
|
|
14914
14935
|
init_internalFlowMarker();
|
|
14915
14936
|
init_logger();
|
|
14937
|
+
init_taskType();
|
|
14916
14938
|
var DEFAULT_SUMMARY_TOKEN_THRESHOLD = 4e3;
|
|
14917
14939
|
var DEFAULT_SUMMARY_MIN_WINDOW_MESSAGES = 4;
|
|
14918
14940
|
var DEFAULT_SUMMARY_MODEL = "cerebras/qwen-3-235b-a22b-instruct-2507";
|
|
@@ -15099,7 +15121,12 @@ async function callSummarizationLlm(prompt, model, token, baseUrl) {
|
|
|
15099
15121
|
method: "POST",
|
|
15100
15122
|
headers: {
|
|
15101
15123
|
"Content-Type": "application/json",
|
|
15102
|
-
Authorization: `Bearer ${token}
|
|
15124
|
+
Authorization: `Bearer ${token}`,
|
|
15125
|
+
// Names the task so the portal can own this prompt server-side instead of
|
|
15126
|
+
// trusting the one we build. Summarization is the archetypal Class-B flow:
|
|
15127
|
+
// one fixed purpose, no conversation, and today its instructions are ours
|
|
15128
|
+
// to reword.
|
|
15129
|
+
...taskTypeHeader("summarize")
|
|
15103
15130
|
},
|
|
15104
15131
|
body: JSON.stringify({
|
|
15105
15132
|
model,
|
|
@@ -17191,6 +17218,7 @@ async function classifyInjectionCandidates(candidates, options) {
|
|
|
17191
17218
|
...options.apiKey !== void 0 && { apiKey: options.apiKey },
|
|
17192
17219
|
...options.getToken !== void 0 && { getToken: options.getToken },
|
|
17193
17220
|
...options.baseUrl !== void 0 && { baseUrl: options.baseUrl },
|
|
17221
|
+
taskType: "memory_injection_check",
|
|
17194
17222
|
model: options.model ?? DEFAULT_MODEL,
|
|
17195
17223
|
systemPrompt: SYSTEM_PROMPT,
|
|
17196
17224
|
userMessage: `Candidate facts:
|
|
@@ -17900,6 +17928,7 @@ async function extractFacts(messages, options) {
|
|
|
17900
17928
|
...options.apiKey !== void 0 && { apiKey: options.apiKey },
|
|
17901
17929
|
...options.getToken !== void 0 && { getToken: options.getToken },
|
|
17902
17930
|
...options.baseUrl !== void 0 && { baseUrl: options.baseUrl },
|
|
17931
|
+
taskType: "memory_extract",
|
|
17903
17932
|
...options.endpointOverride !== void 0 && {
|
|
17904
17933
|
endpointOverride: options.endpointOverride
|
|
17905
17934
|
},
|
|
@@ -18468,6 +18497,7 @@ function createLlmDecayClassifier(options) {
|
|
|
18468
18497
|
...options.apiKey !== void 0 && { apiKey: options.apiKey },
|
|
18469
18498
|
...options.getToken !== void 0 && { getToken: options.getToken },
|
|
18470
18499
|
...options.baseUrl !== void 0 && { baseUrl: options.baseUrl },
|
|
18500
|
+
taskType: "memory_decay",
|
|
18471
18501
|
model: options.model ?? DEFAULT_MODEL3,
|
|
18472
18502
|
systemPrompt: SYSTEM_PROMPT5,
|
|
18473
18503
|
userMessage: `Memory content:
|
|
@@ -19625,6 +19655,7 @@ When a memory refers to one of these, reuse the EXACT existing name (same spelli
|
|
|
19625
19655
|
...options.apiKey !== void 0 && { apiKey: options.apiKey },
|
|
19626
19656
|
...options.getToken !== void 0 && { getToken: options.getToken },
|
|
19627
19657
|
...options.baseUrl !== void 0 && { baseUrl: options.baseUrl },
|
|
19658
|
+
taskType: "memory_topic",
|
|
19628
19659
|
...options.endpointOverride !== void 0 && {
|
|
19629
19660
|
endpointOverride: options.endpointOverride
|
|
19630
19661
|
},
|
|
@@ -19818,6 +19849,7 @@ ${evidence}`);
|
|
|
19818
19849
|
...options.apiKey !== void 0 && { apiKey: options.apiKey },
|
|
19819
19850
|
...options.getToken !== void 0 && { getToken: options.getToken },
|
|
19820
19851
|
...options.baseUrl !== void 0 && { baseUrl: options.baseUrl },
|
|
19852
|
+
taskType: "memory_verify_support",
|
|
19821
19853
|
model: options.model ?? DEFAULT_MODEL5,
|
|
19822
19854
|
systemPrompt: SYSTEM_PROMPT7,
|
|
19823
19855
|
userMessage: `Stored facts and their sources:
|
package/dist/react/index.d.mts
CHANGED
|
@@ -6122,6 +6122,44 @@ declare function getMemoriesByEntityNamesOp(ctx: EntityOperationsContext, entity
|
|
|
6122
6122
|
*/
|
|
6123
6123
|
declare function getEntitiesByMemoryIdsOp(ctx: EntityOperationsContext, memoryIds: readonly string[]): Promise<Map<string, Set<string>>>;
|
|
6124
6124
|
|
|
6125
|
+
/**
|
|
6126
|
+
* Shared portal LLM call for the memory pipeline.
|
|
6127
|
+
*
|
|
6128
|
+
* The three LLM-driven steps (`extractFacts`, `consolidateMemory`,
|
|
6129
|
+
* `decomposeQuery`) share the same shape: POST to `/api/v1/chat/completions`
|
|
6130
|
+
* with a system+user prompt and `response_format: json_object`, parse
|
|
6131
|
+
* `choices[0].message.content` as JSON, validate, return null on any failure.
|
|
6132
|
+
* This helper owns the fetch+timeout+parse+log boilerplate so each caller
|
|
6133
|
+
* stays focused on its prompt and validator.
|
|
6134
|
+
*
|
|
6135
|
+
* PROMPT CACHING. The portal inserts explicit prompt-cache breakpoints only for
|
|
6136
|
+
* `anthropic/` models. Its request schema does carry OpenAI's
|
|
6137
|
+
* `prompt_cache_key`, but that is a routing hint for OpenAI's own implicit
|
|
6138
|
+
* cache rather than a switch that enables caching, and we deliberately don't
|
|
6139
|
+
* send it: the memory pipeline runs open-weights models by default (gpt-oss for
|
|
6140
|
+
* extraction/topics, ling for consolidation), and this module already has one
|
|
6141
|
+
* hard lesson about OpenAI-standard fields a non-OpenAI provider hard-400s on
|
|
6142
|
+
* (`response_format`, below). Revisit only with a verified per-provider gate.
|
|
6143
|
+
*
|
|
6144
|
+
* So on the models this pipeline actually uses, the only cache that can hit is
|
|
6145
|
+
* the provider's own implicit prefix cache — which makes prefix stability the
|
|
6146
|
+
* one lever a caller controls. Messages are assembled system-first (below), so
|
|
6147
|
+
* every caller must pass a CONSTANT `systemPrompt` and keep all per-call
|
|
6148
|
+
* material in `userMessage`: a single interpolated timestamp, id, or count in a
|
|
6149
|
+
* system prompt shifts every byte after it and misses the cache on every
|
|
6150
|
+
* request thereafter. The memory callers are regression-gated on that property
|
|
6151
|
+
* in `promptPrefixStability.test.ts`.
|
|
6152
|
+
*
|
|
6153
|
+
* Whether those implicit caches hit is observable: each successful response
|
|
6154
|
+
* logs the portal's reported token counts at debug level, including
|
|
6155
|
+
* `portal.cached_tokens` (the prompt tokens the provider served from cache —
|
|
6156
|
+
* the portal omits the field when there was no hit). See {@link logPortalUsage}.
|
|
6157
|
+
*
|
|
6158
|
+
* There is no batch/async-bulk route on the portal, so a backfill or reindex
|
|
6159
|
+
* has no discounted-throughput path either; its only levers are the same stable
|
|
6160
|
+
* prefix and caller-side batching (e.g. topicExtract's 10-memories-per-call).
|
|
6161
|
+
*/
|
|
6162
|
+
|
|
6125
6163
|
/**
|
|
6126
6164
|
* Auth for portal LLM calls (extraction, consolidation, decomposition,
|
|
6127
6165
|
* reflection). Mirrors `memoryEngine`'s `EmbeddingOptions` dual-auth:
|
package/dist/react/index.d.ts
CHANGED
|
@@ -6122,6 +6122,44 @@ declare function getMemoriesByEntityNamesOp(ctx: EntityOperationsContext, entity
|
|
|
6122
6122
|
*/
|
|
6123
6123
|
declare function getEntitiesByMemoryIdsOp(ctx: EntityOperationsContext, memoryIds: readonly string[]): Promise<Map<string, Set<string>>>;
|
|
6124
6124
|
|
|
6125
|
+
/**
|
|
6126
|
+
* Shared portal LLM call for the memory pipeline.
|
|
6127
|
+
*
|
|
6128
|
+
* The three LLM-driven steps (`extractFacts`, `consolidateMemory`,
|
|
6129
|
+
* `decomposeQuery`) share the same shape: POST to `/api/v1/chat/completions`
|
|
6130
|
+
* with a system+user prompt and `response_format: json_object`, parse
|
|
6131
|
+
* `choices[0].message.content` as JSON, validate, return null on any failure.
|
|
6132
|
+
* This helper owns the fetch+timeout+parse+log boilerplate so each caller
|
|
6133
|
+
* stays focused on its prompt and validator.
|
|
6134
|
+
*
|
|
6135
|
+
* PROMPT CACHING. The portal inserts explicit prompt-cache breakpoints only for
|
|
6136
|
+
* `anthropic/` models. Its request schema does carry OpenAI's
|
|
6137
|
+
* `prompt_cache_key`, but that is a routing hint for OpenAI's own implicit
|
|
6138
|
+
* cache rather than a switch that enables caching, and we deliberately don't
|
|
6139
|
+
* send it: the memory pipeline runs open-weights models by default (gpt-oss for
|
|
6140
|
+
* extraction/topics, ling for consolidation), and this module already has one
|
|
6141
|
+
* hard lesson about OpenAI-standard fields a non-OpenAI provider hard-400s on
|
|
6142
|
+
* (`response_format`, below). Revisit only with a verified per-provider gate.
|
|
6143
|
+
*
|
|
6144
|
+
* So on the models this pipeline actually uses, the only cache that can hit is
|
|
6145
|
+
* the provider's own implicit prefix cache — which makes prefix stability the
|
|
6146
|
+
* one lever a caller controls. Messages are assembled system-first (below), so
|
|
6147
|
+
* every caller must pass a CONSTANT `systemPrompt` and keep all per-call
|
|
6148
|
+
* material in `userMessage`: a single interpolated timestamp, id, or count in a
|
|
6149
|
+
* system prompt shifts every byte after it and misses the cache on every
|
|
6150
|
+
* request thereafter. The memory callers are regression-gated on that property
|
|
6151
|
+
* in `promptPrefixStability.test.ts`.
|
|
6152
|
+
*
|
|
6153
|
+
* Whether those implicit caches hit is observable: each successful response
|
|
6154
|
+
* logs the portal's reported token counts at debug level, including
|
|
6155
|
+
* `portal.cached_tokens` (the prompt tokens the provider served from cache —
|
|
6156
|
+
* the portal omits the field when there was no hit). See {@link logPortalUsage}.
|
|
6157
|
+
*
|
|
6158
|
+
* There is no batch/async-bulk route on the portal, so a backfill or reindex
|
|
6159
|
+
* has no discounted-throughput path either; its only levers are the same stable
|
|
6160
|
+
* prefix and caller-side batching (e.g. topicExtract's 10-memories-per-call).
|
|
6161
|
+
*/
|
|
6162
|
+
|
|
6125
6163
|
/**
|
|
6126
6164
|
* Auth for portal LLM calls (extraction, consolidation, decomposition,
|
|
6127
6165
|
* reflection). Mirrors `memoryEngine`'s `EmbeddingOptions` dual-auth:
|
package/dist/react/index.mjs
CHANGED
|
@@ -178,14 +178,14 @@ import {
|
|
|
178
178
|
updateVaultMemoryOp,
|
|
179
179
|
useEncryption,
|
|
180
180
|
vaultMemoryToStored
|
|
181
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-POCLKALT.mjs";
|
|
182
182
|
import {
|
|
183
183
|
PiiRedactor,
|
|
184
184
|
createStreamingDeAnonymizer,
|
|
185
185
|
isPiiRedactor,
|
|
186
186
|
notifyConsolidationFallback,
|
|
187
187
|
resolvePiiRedactor
|
|
188
|
-
} from "./chunk-
|
|
188
|
+
} from "./chunk-DY5VGC6K.mjs";
|
|
189
189
|
import {
|
|
190
190
|
INTERNAL_FLOW_MARKER,
|
|
191
191
|
callPortalJsonCompletion,
|
|
@@ -196,9 +196,10 @@ import {
|
|
|
196
196
|
resolvePortalAuthHeaders,
|
|
197
197
|
setLogger,
|
|
198
198
|
supportsResponseFormat,
|
|
199
|
+
taskTypeHeader,
|
|
199
200
|
validateEndpointOverride,
|
|
200
201
|
withInternalFlowMarker
|
|
201
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-CJ32HO6Q.mjs";
|
|
202
203
|
import {
|
|
203
204
|
BASE_URL,
|
|
204
205
|
MCP_R2_DOMAIN,
|
|
@@ -5149,7 +5150,12 @@ async function callSummarizationLlm(prompt, model, token, baseUrl) {
|
|
|
5149
5150
|
method: "POST",
|
|
5150
5151
|
headers: {
|
|
5151
5152
|
"Content-Type": "application/json",
|
|
5152
|
-
Authorization: `Bearer ${token}
|
|
5153
|
+
Authorization: `Bearer ${token}`,
|
|
5154
|
+
// Names the task so the portal can own this prompt server-side instead of
|
|
5155
|
+
// trusting the one we build. Summarization is the archetypal Class-B flow:
|
|
5156
|
+
// one fixed purpose, no conversation, and today its instructions are ours
|
|
5157
|
+
// to reword.
|
|
5158
|
+
...taskTypeHeader("summarize")
|
|
5153
5159
|
},
|
|
5154
5160
|
body: JSON.stringify({
|
|
5155
5161
|
model,
|
|
@@ -7205,6 +7211,7 @@ async function classifyInjectionCandidates(candidates, options) {
|
|
|
7205
7211
|
...options.apiKey !== void 0 && { apiKey: options.apiKey },
|
|
7206
7212
|
...options.getToken !== void 0 && { getToken: options.getToken },
|
|
7207
7213
|
...options.baseUrl !== void 0 && { baseUrl: options.baseUrl },
|
|
7214
|
+
taskType: "memory_injection_check",
|
|
7208
7215
|
model: options.model ?? DEFAULT_MODEL,
|
|
7209
7216
|
systemPrompt: SYSTEM_PROMPT,
|
|
7210
7217
|
userMessage: `Candidate facts:
|
|
@@ -7679,7 +7686,7 @@ async function tryConsolidate(trimmed, ctx, options, prepared) {
|
|
|
7679
7686
|
content: m.content,
|
|
7680
7687
|
similarity: m.similarity
|
|
7681
7688
|
}));
|
|
7682
|
-
const { consolidateMemory: doConsolidate } = await import("./consolidate-
|
|
7689
|
+
const { consolidateMemory: doConsolidate } = await import("./consolidate-5TP3J6BY.mjs");
|
|
7683
7690
|
const decision = await doConsolidate(trimmed, candidates, consolidateOptions);
|
|
7684
7691
|
if (decision.action === "create") return null;
|
|
7685
7692
|
if (decision.action === "supersede" && decision.content) {
|
|
@@ -7904,6 +7911,7 @@ async function extractFacts(messages, options) {
|
|
|
7904
7911
|
...options.apiKey !== void 0 && { apiKey: options.apiKey },
|
|
7905
7912
|
...options.getToken !== void 0 && { getToken: options.getToken },
|
|
7906
7913
|
...options.baseUrl !== void 0 && { baseUrl: options.baseUrl },
|
|
7914
|
+
taskType: "memory_extract",
|
|
7907
7915
|
...options.endpointOverride !== void 0 && {
|
|
7908
7916
|
endpointOverride: options.endpointOverride
|
|
7909
7917
|
},
|
|
@@ -8466,6 +8474,7 @@ function createLlmDecayClassifier(options) {
|
|
|
8466
8474
|
...options.apiKey !== void 0 && { apiKey: options.apiKey },
|
|
8467
8475
|
...options.getToken !== void 0 && { getToken: options.getToken },
|
|
8468
8476
|
...options.baseUrl !== void 0 && { baseUrl: options.baseUrl },
|
|
8477
|
+
taskType: "memory_decay",
|
|
8469
8478
|
model: options.model ?? DEFAULT_MODEL2,
|
|
8470
8479
|
systemPrompt: SYSTEM_PROMPT3,
|
|
8471
8480
|
userMessage: `Memory content:
|
|
@@ -9589,6 +9598,7 @@ When a memory refers to one of these, reuse the EXACT existing name (same spelli
|
|
|
9589
9598
|
...options.apiKey !== void 0 && { apiKey: options.apiKey },
|
|
9590
9599
|
...options.getToken !== void 0 && { getToken: options.getToken },
|
|
9591
9600
|
...options.baseUrl !== void 0 && { baseUrl: options.baseUrl },
|
|
9601
|
+
taskType: "memory_topic",
|
|
9592
9602
|
...options.endpointOverride !== void 0 && {
|
|
9593
9603
|
endpointOverride: options.endpointOverride
|
|
9594
9604
|
},
|
|
@@ -9778,6 +9788,7 @@ ${evidence}`);
|
|
|
9778
9788
|
...options.apiKey !== void 0 && { apiKey: options.apiKey },
|
|
9779
9789
|
...options.getToken !== void 0 && { getToken: options.getToken },
|
|
9780
9790
|
...options.baseUrl !== void 0 && { baseUrl: options.baseUrl },
|
|
9791
|
+
taskType: "memory_verify_support",
|
|
9781
9792
|
model: options.model ?? DEFAULT_MODEL4,
|
|
9782
9793
|
systemPrompt: SYSTEM_PROMPT5,
|
|
9783
9794
|
userMessage: `Stored facts and their sources:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
callPortalJsonCompletion,
|
|
3
3
|
getLogger
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KF5OU4IN.mjs";
|
|
5
5
|
import {
|
|
6
6
|
BASE_URL,
|
|
7
7
|
__commonJS,
|
|
@@ -20845,7 +20845,7 @@ function createMemoryVaultSearchTool(vaultCtx, embeddingOptions, cache, searchOp
|
|
|
20845
20845
|
subQueries = decomp.subQueries;
|
|
20846
20846
|
}
|
|
20847
20847
|
}
|
|
20848
|
-
const { recall: recall2 } = await import("./recall-
|
|
20848
|
+
const { recall: recall2 } = await import("./recall-2GAPE2XH.mjs");
|
|
20849
20849
|
let recallDegraded = [];
|
|
20850
20850
|
const result = await recall2(
|
|
20851
20851
|
query,
|
|
@@ -21112,6 +21112,7 @@ Output strict JSON, no prose: { "expand": [<entity names to expand, verbatim fro
|
|
|
21112
21112
|
...options.apiKey !== void 0 && { apiKey: options.apiKey },
|
|
21113
21113
|
...options.getToken !== void 0 && { getToken: options.getToken },
|
|
21114
21114
|
...options.baseUrl !== void 0 && { baseUrl: options.baseUrl },
|
|
21115
|
+
taskType: "memory_graph",
|
|
21115
21116
|
model: options.model ?? DEFAULT_REFINER_MODEL,
|
|
21116
21117
|
systemPrompt,
|
|
21117
21118
|
userMessage: `Question: ${query}
|