@dakera-ai/dakera 0.11.83 → 0.11.90
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/LICENSE +3 -0
- package/README.md +1 -0
- package/dist/index.d.mts +52 -1
- package/dist/index.d.ts +52 -1
- package/dist/index.js +56 -14
- package/dist/index.mjs +56 -14
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
SPDX-License-Identifier: MIT
|
|
2
|
+
|
|
1
3
|
MIT License
|
|
2
4
|
|
|
3
5
|
Copyright (c) 2025 Dakera AI
|
|
6
|
+
Author: Mohamed Amine Ferhi (https://orcid.org/0009-0007-2641-7727)
|
|
4
7
|
|
|
5
8
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
9
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -127,6 +127,7 @@ for await (const event of stream) {
|
|
|
127
127
|
- **Text Auto-Embedding** — server-side embedding generation (no local model needed)
|
|
128
128
|
- **Namespaces** — isolated vector stores per project, tenant, or use case
|
|
129
129
|
- **Feedback Loop** — upvote/downvote/flag memories to improve recall quality
|
|
130
|
+
- **T-I-F Reliability** — `TifScore` type and `evaluateTif()` for Truth-Indeterminacy-Falsity scoring of memory reliability
|
|
130
131
|
- **Entity Extraction** — GLiNER NER for automatic entity detection
|
|
131
132
|
- **SSE Streaming** — async generator event subscriptions, browser-compatible
|
|
132
133
|
- **Branded Types** — `VectorId`, `AgentId`, `MemoryId`, `SessionId` for compile-time safety
|
package/dist/index.d.mts
CHANGED
|
@@ -159,6 +159,8 @@ interface HealthResponse {
|
|
|
159
159
|
status: string;
|
|
160
160
|
version?: string;
|
|
161
161
|
uptime?: number;
|
|
162
|
+
/** Git commit SHA baked into the binary at build time. Available since server v0.11.84. */
|
|
163
|
+
build_sha?: string;
|
|
162
164
|
}
|
|
163
165
|
/** Filter operators for metadata queries */
|
|
164
166
|
interface FilterOperators {
|
|
@@ -2454,6 +2456,45 @@ interface DrainReembedResponse {
|
|
|
2454
2456
|
/** True if the drain stopped on the timeout rather than reaching zero. */
|
|
2455
2457
|
timed_out: boolean;
|
|
2456
2458
|
}
|
|
2459
|
+
/** Classification labels from a TifScore. */
|
|
2460
|
+
type TifClassification = 'surface_contradiction' | 'ask_clarification' | 'confident_reuse' | 'verify_before_use';
|
|
2461
|
+
/**
|
|
2462
|
+
* Truth-Indeterminacy-Falsity reliability score for a memory (T-I-F RFC Phase 3).
|
|
2463
|
+
*
|
|
2464
|
+
* All three proportions (truth / indeterminacy / falsity) sum to 1.0.
|
|
2465
|
+
* Build via {@link computeTifScore} from a {@link FeedbackHistoryResponse}, or
|
|
2466
|
+
* deserialise from stored metadata with {@link tifScoreFromMetadata}.
|
|
2467
|
+
*/
|
|
2468
|
+
interface TifScore {
|
|
2469
|
+
/** Proportion of positive feedback signals (upvote / positive). */
|
|
2470
|
+
truth: number;
|
|
2471
|
+
/** Proportion of uncertainty signals (flag). */
|
|
2472
|
+
indeterminacy: number;
|
|
2473
|
+
/** Proportion of negative feedback signals (downvote / negative). */
|
|
2474
|
+
falsity: number;
|
|
2475
|
+
/** Total feedback events used to compute this score. */
|
|
2476
|
+
feedbackCount: number;
|
|
2477
|
+
/** Human-readable reliability classification derived from the proportions. */
|
|
2478
|
+
classification: TifClassification;
|
|
2479
|
+
}
|
|
2480
|
+
/**
|
|
2481
|
+
* Compute a {@link TifScore} from a memory's {@link FeedbackHistoryResponse}.
|
|
2482
|
+
*
|
|
2483
|
+
* Signals bucketed as:
|
|
2484
|
+
* - `upvote` / `positive` → truth
|
|
2485
|
+
* - `downvote` / `negative` → falsity
|
|
2486
|
+
* - `flag` → indeterminacy
|
|
2487
|
+
*
|
|
2488
|
+
* When there is no feedback the score is
|
|
2489
|
+
* `{ truth: 0, indeterminacy: 1, falsity: 0, feedbackCount: 0 }`.
|
|
2490
|
+
*/
|
|
2491
|
+
declare function computeTifScore(history: FeedbackHistoryResponse): TifScore;
|
|
2492
|
+
/**
|
|
2493
|
+
* Deserialise a {@link TifScore} from a `metadata.reliability` object.
|
|
2494
|
+
*
|
|
2495
|
+
* Expected keys: `truth`, `indeterminacy`, `falsity`, `feedback_count` (snake_case as stored).
|
|
2496
|
+
*/
|
|
2497
|
+
declare function tifScoreFromMetadata(data: Record<string, unknown>): TifScore;
|
|
2457
2498
|
|
|
2458
2499
|
/**
|
|
2459
2500
|
* Dakera client for interacting with the AI memory platform.
|
|
@@ -3107,6 +3148,16 @@ declare class DakeraClient {
|
|
|
3107
3148
|
* @param memoryId The memory whose feedback history to retrieve.
|
|
3108
3149
|
*/
|
|
3109
3150
|
getMemoryFeedbackHistory(memoryId: string): Promise<FeedbackHistoryResponse>;
|
|
3151
|
+
/**
|
|
3152
|
+
* Compute a T-I-F reliability score for a memory (T-I-F RFC Phase 3).
|
|
3153
|
+
*
|
|
3154
|
+
* Fetches the memory's full feedback history and reduces it to a
|
|
3155
|
+
* {@link TifScore} with truth/indeterminacy/falsity proportions and a
|
|
3156
|
+
* human-readable {@link TifScore.classification}.
|
|
3157
|
+
*
|
|
3158
|
+
* @param memoryId The memory to score.
|
|
3159
|
+
*/
|
|
3160
|
+
evaluateTif(memoryId: string): Promise<TifScore>;
|
|
3110
3161
|
/**
|
|
3111
3162
|
* Get aggregate feedback counts and health score for an agent (INT-1).
|
|
3112
3163
|
*
|
|
@@ -3874,4 +3925,4 @@ declare class TimeoutError extends DakeraError {
|
|
|
3874
3925
|
constructor(message: string);
|
|
3875
3926
|
}
|
|
3876
3927
|
|
|
3877
|
-
export { type AccessPatternHint, type AgentConsolidateResponse, type AgentConsolidationConfig, type AgentConsolidationLogEntry, type AgentFeedbackSummary, type AgentId, type AgentNetworkEdge, type AgentNetworkInfo, type AgentNetworkNode, type AgentNetworkStats, type AgentStats, type AgentSummary, type AggregationGroup, type AggregationRequest, type AggregationResponse, type AnalyticsOptions, type AnalyticsOverview, type ApiKey, type AuditEvent, type AuditExportResponse, type AuditListResponse, AuthenticationError, AuthorizationError, type AutoPilotConfig, type AutoPilotConfigRequest, type AutoPilotConfigResponse, type AutoPilotConsolidationResult, type AutoPilotDedupResult, type AutoPilotStatusResponse, type AutoPilotTriggerAction, type AutoPilotTriggerResponse, type BackupInfo, type BackupListResponse, type BackupSchedule, type BackupStatus, type BackupType, type BatchForgetRequest, type BatchForgetResponse, type BatchMemoryFilter, type BatchQuerySpec, type BatchRecallRequest, type BatchRecallResponse, type BatchStoreMemoryItem, type BatchStoreMemoryRequest, type BatchStoreMemoryResponse, type BatchStoredMemory, type BatchTextQueryOptions, type BatchTextQueryResponse, type Branded, type BulkDeleteRequest, type BulkDeleteResponse, type BulkUpdateRequest, type BulkUpdateResponse, type CacheStats, type ClientOptions, type ClusterNode, type ClusterStatus, type ColumnUpsertRequest, type CompactionRequest, type CompactionResponse, type CompressResponse, type CompressionType, type ConfigureNamespaceRequest, type ConfigureNamespaceResponse, ConnectionError, type ConsolidateRequest, type ConsolidateResponse, type ConsolidationConfig, type ConsolidationConfigPatch, type ConsolidationLogEntry, type ConsolidationResultSnapshot, type CountVectorsRequest, type CountVectorsResponse, type CreateBackupRequest, type CreateBackupResponse, type CreateKeyRequest, type CreateNamespaceKeyResponse, type CrossAgentNetworkRequest, type CrossAgentNetworkResponse, DakeraClient, DakeraError, type DakeraEvent, type DecayConfigResponse, type DecayConfigUpdateRequest, type DecayConfigUpdateResponse, type DecayStatsResponse, type DecayStrategyName, type DedupResultSnapshot, type DeduplicateRequest, type DeduplicateResponse, type DefaultQuotaResponse, type DeleteOptions, type DeleteResponse, type DisableMaintenanceRequest, type DistanceMetric, type Document, type DocumentInput, type DrainReembedRequest, type DrainReembedResponse, type EdgeType, type EmbeddingModel, type EnableMaintenanceRequest, type EntityExtractionResponse, ErrorCode, type ExportRequest, type ExportResponse, type ExportedVector, type ExtractEntitiesRequest, type ExtractEntitiesResponse, type ExtractedEntity, type ExtractionProviderInfo, type ExtractionResult, type ExtractorConfig, type FeedbackHealthResponse, type FeedbackHistoryEntry, type FeedbackHistoryResponse, type FeedbackResponse, type FeedbackSignal, type FilterExpression, type FilterOperators, type FullKnowledgeGraphRequest, type FullTextIndexStats, type FullTextSearchResult, type FulltextDeleteRequest, type FulltextDeleteResponse, type FulltextReindexNamespaceResult, type FulltextReindexResponse, type FusionStrategy, type GraphEdge, type GraphExport, type GraphLinkResponse, type GraphNode, type GraphPath, type HealthResponse, type HybridSearchResult, type ImportJobStatus, type IndexStats, type JobInfo, type JobProgressEvent, type KeyUsage, type KgExportResponse, type KgPathResponse, type KgQueryResponse, type KnowledgeEdge, type KnowledgeGraphRequest, type KnowledgeGraphResponse, type KnowledgeNode, type KpiSnapshot, type LastDecayCycleStats, type LatencyAnalytics, type ListNamespaceKeysResponse, type ListSessionsOptions, type LivenessResponse, type MaintenanceStatus, type Memory, type MemoryEntitiesResponse, type MemoryEvent, type MemoryExportResponse, type MemoryFeedbackBodyRequest, type MemoryFeedbackRequest, type MemoryFeedbackResponse, type MemoryGraph, type MemoryGraphOptions, type MemoryId, type MemoryImportResponse, type MemoryImportancePatchRequest, type MemoryPolicy, type MemoryType, type MemoryTypeStatsResponse, type MigrateDimensionsResponse, type MigrateNamespaceDimensionsRequest, type MultiVectorSearchRequest, type MultiVectorSearchResponse, type MultiVectorSearchResult, type NamespaceCreatedEvent, type NamespaceDeletedEvent, type NamespaceEntityConfig, type NamespaceInfo, type NamespaceKeyInfo, type NamespaceKeyUsageResponse, type NamespaceMigrationResult, type NamespaceNerConfig, type NodeReplicationLag, NotFoundError, type OdeEntity, type OpStatus, type OperationProgressEvent, type OpsStats, type QueryExplainRequest, type QueryExplainResponse, type QueryOptions, type QueryResult, type QuotaCheckRequest, type QuotaCheckResult, type QuotaConfig, type QuotaListResponse, type QuotaStatus, type QuotaUsage, RateLimitError, type RateLimitHeaders, type ReadConsistency, type ReadinessResponse, type RecallRequest, type RecallResponse, type RecalledMemory, type ReplicationStatus, type RestoreBackupRequest, type RestoreBackupResponse, type RestoreStatus, type RetryConfig, type RotateEncryptionKeyRequest, type RotateEncryptionKeyResponse, type RouteMatch, type RouteRequest, type RouteResponse, type RoutingMode, type SearchResult, ServerError, type Session, type SessionEndResponse, type SessionId, type SessionStartResponse, type SetDefaultQuotaRequest, type SetQuotaRequest, type SetQuotaResponse, type ShardInfo, type ShardListResponse, type ShardRebalanceRequest, type ShardRebalanceResponse, type SlowQuery, type StalenessConfig, type StartSessionRequest, type StorageAnalytics, type StorageTierOverview, type StoreMemoryRequest, type StoreMemoryResponse, type StreamLaggedEvent, type SummarizeRequest, type SummarizeResponse, type SystemDiagnostics, type TextDocument, type TextQueryOptions, type TextQueryResponse, type TextSearchResult, type TextUpsertOptions, type TextUpsertResponse, type ThroughputAnalytics, type TierActivity, type TierConfig, type TierInfo, TimeoutError, type TtlConfig, type TtlNamespaceStats, type TtlStatsResponse, type UnifiedQueryRequest, type UnifiedQueryResponse, type UnifiedSearchResult, type UpdateBackupScheduleRequest, type UpdateImportanceRequest, type UpdateMemoryRequest, type UpsertOptions, type UpsertResponse, ValidationError, type Vector, type VectorId, type VectorInput, type VectorMutationOp, type VectorsMutatedEvent, type WakeUpOptions, type WakeUpResponse, type WarmCacheRequest, type WarmCacheResponse, type WarmingPriority, type WarmingTargetTier, agentId, memoryId, sessionId, vectorId };
|
|
3928
|
+
export { type AccessPatternHint, type AgentConsolidateResponse, type AgentConsolidationConfig, type AgentConsolidationLogEntry, type AgentFeedbackSummary, type AgentId, type AgentNetworkEdge, type AgentNetworkInfo, type AgentNetworkNode, type AgentNetworkStats, type AgentStats, type AgentSummary, type AggregationGroup, type AggregationRequest, type AggregationResponse, type AnalyticsOptions, type AnalyticsOverview, type ApiKey, type AuditEvent, type AuditExportResponse, type AuditListResponse, AuthenticationError, AuthorizationError, type AutoPilotConfig, type AutoPilotConfigRequest, type AutoPilotConfigResponse, type AutoPilotConsolidationResult, type AutoPilotDedupResult, type AutoPilotStatusResponse, type AutoPilotTriggerAction, type AutoPilotTriggerResponse, type BackupInfo, type BackupListResponse, type BackupSchedule, type BackupStatus, type BackupType, type BatchForgetRequest, type BatchForgetResponse, type BatchMemoryFilter, type BatchQuerySpec, type BatchRecallRequest, type BatchRecallResponse, type BatchStoreMemoryItem, type BatchStoreMemoryRequest, type BatchStoreMemoryResponse, type BatchStoredMemory, type BatchTextQueryOptions, type BatchTextQueryResponse, type Branded, type BulkDeleteRequest, type BulkDeleteResponse, type BulkUpdateRequest, type BulkUpdateResponse, type CacheStats, type ClientOptions, type ClusterNode, type ClusterStatus, type ColumnUpsertRequest, type CompactionRequest, type CompactionResponse, type CompressResponse, type CompressionType, type ConfigureNamespaceRequest, type ConfigureNamespaceResponse, ConnectionError, type ConsolidateRequest, type ConsolidateResponse, type ConsolidationConfig, type ConsolidationConfigPatch, type ConsolidationLogEntry, type ConsolidationResultSnapshot, type CountVectorsRequest, type CountVectorsResponse, type CreateBackupRequest, type CreateBackupResponse, type CreateKeyRequest, type CreateNamespaceKeyResponse, type CrossAgentNetworkRequest, type CrossAgentNetworkResponse, DakeraClient, DakeraError, type DakeraEvent, type DecayConfigResponse, type DecayConfigUpdateRequest, type DecayConfigUpdateResponse, type DecayStatsResponse, type DecayStrategyName, type DedupResultSnapshot, type DeduplicateRequest, type DeduplicateResponse, type DefaultQuotaResponse, type DeleteOptions, type DeleteResponse, type DisableMaintenanceRequest, type DistanceMetric, type Document, type DocumentInput, type DrainReembedRequest, type DrainReembedResponse, type EdgeType, type EmbeddingModel, type EnableMaintenanceRequest, type EntityExtractionResponse, ErrorCode, type ExportRequest, type ExportResponse, type ExportedVector, type ExtractEntitiesRequest, type ExtractEntitiesResponse, type ExtractedEntity, type ExtractionProviderInfo, type ExtractionResult, type ExtractorConfig, type FeedbackHealthResponse, type FeedbackHistoryEntry, type FeedbackHistoryResponse, type FeedbackResponse, type FeedbackSignal, type FilterExpression, type FilterOperators, type FullKnowledgeGraphRequest, type FullTextIndexStats, type FullTextSearchResult, type FulltextDeleteRequest, type FulltextDeleteResponse, type FulltextReindexNamespaceResult, type FulltextReindexResponse, type FusionStrategy, type GraphEdge, type GraphExport, type GraphLinkResponse, type GraphNode, type GraphPath, type HealthResponse, type HybridSearchResult, type ImportJobStatus, type IndexStats, type JobInfo, type JobProgressEvent, type KeyUsage, type KgExportResponse, type KgPathResponse, type KgQueryResponse, type KnowledgeEdge, type KnowledgeGraphRequest, type KnowledgeGraphResponse, type KnowledgeNode, type KpiSnapshot, type LastDecayCycleStats, type LatencyAnalytics, type ListNamespaceKeysResponse, type ListSessionsOptions, type LivenessResponse, type MaintenanceStatus, type Memory, type MemoryEntitiesResponse, type MemoryEvent, type MemoryExportResponse, type MemoryFeedbackBodyRequest, type MemoryFeedbackRequest, type MemoryFeedbackResponse, type MemoryGraph, type MemoryGraphOptions, type MemoryId, type MemoryImportResponse, type MemoryImportancePatchRequest, type MemoryPolicy, type MemoryType, type MemoryTypeStatsResponse, type MigrateDimensionsResponse, type MigrateNamespaceDimensionsRequest, type MultiVectorSearchRequest, type MultiVectorSearchResponse, type MultiVectorSearchResult, type NamespaceCreatedEvent, type NamespaceDeletedEvent, type NamespaceEntityConfig, type NamespaceInfo, type NamespaceKeyInfo, type NamespaceKeyUsageResponse, type NamespaceMigrationResult, type NamespaceNerConfig, type NodeReplicationLag, NotFoundError, type OdeEntity, type OpStatus, type OperationProgressEvent, type OpsStats, type QueryExplainRequest, type QueryExplainResponse, type QueryOptions, type QueryResult, type QuotaCheckRequest, type QuotaCheckResult, type QuotaConfig, type QuotaListResponse, type QuotaStatus, type QuotaUsage, RateLimitError, type RateLimitHeaders, type ReadConsistency, type ReadinessResponse, type RecallRequest, type RecallResponse, type RecalledMemory, type ReplicationStatus, type RestoreBackupRequest, type RestoreBackupResponse, type RestoreStatus, type RetryConfig, type RotateEncryptionKeyRequest, type RotateEncryptionKeyResponse, type RouteMatch, type RouteRequest, type RouteResponse, type RoutingMode, type SearchResult, ServerError, type Session, type SessionEndResponse, type SessionId, type SessionStartResponse, type SetDefaultQuotaRequest, type SetQuotaRequest, type SetQuotaResponse, type ShardInfo, type ShardListResponse, type ShardRebalanceRequest, type ShardRebalanceResponse, type SlowQuery, type StalenessConfig, type StartSessionRequest, type StorageAnalytics, type StorageTierOverview, type StoreMemoryRequest, type StoreMemoryResponse, type StreamLaggedEvent, type SummarizeRequest, type SummarizeResponse, type SystemDiagnostics, type TextDocument, type TextQueryOptions, type TextQueryResponse, type TextSearchResult, type TextUpsertOptions, type TextUpsertResponse, type ThroughputAnalytics, type TierActivity, type TierConfig, type TierInfo, type TifClassification, type TifScore, TimeoutError, type TtlConfig, type TtlNamespaceStats, type TtlStatsResponse, type UnifiedQueryRequest, type UnifiedQueryResponse, type UnifiedSearchResult, type UpdateBackupScheduleRequest, type UpdateImportanceRequest, type UpdateMemoryRequest, type UpsertOptions, type UpsertResponse, ValidationError, type Vector, type VectorId, type VectorInput, type VectorMutationOp, type VectorsMutatedEvent, type WakeUpOptions, type WakeUpResponse, type WarmCacheRequest, type WarmCacheResponse, type WarmingPriority, type WarmingTargetTier, agentId, computeTifScore, memoryId, sessionId, tifScoreFromMetadata, vectorId };
|
package/dist/index.d.ts
CHANGED
|
@@ -159,6 +159,8 @@ interface HealthResponse {
|
|
|
159
159
|
status: string;
|
|
160
160
|
version?: string;
|
|
161
161
|
uptime?: number;
|
|
162
|
+
/** Git commit SHA baked into the binary at build time. Available since server v0.11.84. */
|
|
163
|
+
build_sha?: string;
|
|
162
164
|
}
|
|
163
165
|
/** Filter operators for metadata queries */
|
|
164
166
|
interface FilterOperators {
|
|
@@ -2454,6 +2456,45 @@ interface DrainReembedResponse {
|
|
|
2454
2456
|
/** True if the drain stopped on the timeout rather than reaching zero. */
|
|
2455
2457
|
timed_out: boolean;
|
|
2456
2458
|
}
|
|
2459
|
+
/** Classification labels from a TifScore. */
|
|
2460
|
+
type TifClassification = 'surface_contradiction' | 'ask_clarification' | 'confident_reuse' | 'verify_before_use';
|
|
2461
|
+
/**
|
|
2462
|
+
* Truth-Indeterminacy-Falsity reliability score for a memory (T-I-F RFC Phase 3).
|
|
2463
|
+
*
|
|
2464
|
+
* All three proportions (truth / indeterminacy / falsity) sum to 1.0.
|
|
2465
|
+
* Build via {@link computeTifScore} from a {@link FeedbackHistoryResponse}, or
|
|
2466
|
+
* deserialise from stored metadata with {@link tifScoreFromMetadata}.
|
|
2467
|
+
*/
|
|
2468
|
+
interface TifScore {
|
|
2469
|
+
/** Proportion of positive feedback signals (upvote / positive). */
|
|
2470
|
+
truth: number;
|
|
2471
|
+
/** Proportion of uncertainty signals (flag). */
|
|
2472
|
+
indeterminacy: number;
|
|
2473
|
+
/** Proportion of negative feedback signals (downvote / negative). */
|
|
2474
|
+
falsity: number;
|
|
2475
|
+
/** Total feedback events used to compute this score. */
|
|
2476
|
+
feedbackCount: number;
|
|
2477
|
+
/** Human-readable reliability classification derived from the proportions. */
|
|
2478
|
+
classification: TifClassification;
|
|
2479
|
+
}
|
|
2480
|
+
/**
|
|
2481
|
+
* Compute a {@link TifScore} from a memory's {@link FeedbackHistoryResponse}.
|
|
2482
|
+
*
|
|
2483
|
+
* Signals bucketed as:
|
|
2484
|
+
* - `upvote` / `positive` → truth
|
|
2485
|
+
* - `downvote` / `negative` → falsity
|
|
2486
|
+
* - `flag` → indeterminacy
|
|
2487
|
+
*
|
|
2488
|
+
* When there is no feedback the score is
|
|
2489
|
+
* `{ truth: 0, indeterminacy: 1, falsity: 0, feedbackCount: 0 }`.
|
|
2490
|
+
*/
|
|
2491
|
+
declare function computeTifScore(history: FeedbackHistoryResponse): TifScore;
|
|
2492
|
+
/**
|
|
2493
|
+
* Deserialise a {@link TifScore} from a `metadata.reliability` object.
|
|
2494
|
+
*
|
|
2495
|
+
* Expected keys: `truth`, `indeterminacy`, `falsity`, `feedback_count` (snake_case as stored).
|
|
2496
|
+
*/
|
|
2497
|
+
declare function tifScoreFromMetadata(data: Record<string, unknown>): TifScore;
|
|
2457
2498
|
|
|
2458
2499
|
/**
|
|
2459
2500
|
* Dakera client for interacting with the AI memory platform.
|
|
@@ -3107,6 +3148,16 @@ declare class DakeraClient {
|
|
|
3107
3148
|
* @param memoryId The memory whose feedback history to retrieve.
|
|
3108
3149
|
*/
|
|
3109
3150
|
getMemoryFeedbackHistory(memoryId: string): Promise<FeedbackHistoryResponse>;
|
|
3151
|
+
/**
|
|
3152
|
+
* Compute a T-I-F reliability score for a memory (T-I-F RFC Phase 3).
|
|
3153
|
+
*
|
|
3154
|
+
* Fetches the memory's full feedback history and reduces it to a
|
|
3155
|
+
* {@link TifScore} with truth/indeterminacy/falsity proportions and a
|
|
3156
|
+
* human-readable {@link TifScore.classification}.
|
|
3157
|
+
*
|
|
3158
|
+
* @param memoryId The memory to score.
|
|
3159
|
+
*/
|
|
3160
|
+
evaluateTif(memoryId: string): Promise<TifScore>;
|
|
3110
3161
|
/**
|
|
3111
3162
|
* Get aggregate feedback counts and health score for an agent (INT-1).
|
|
3112
3163
|
*
|
|
@@ -3874,4 +3925,4 @@ declare class TimeoutError extends DakeraError {
|
|
|
3874
3925
|
constructor(message: string);
|
|
3875
3926
|
}
|
|
3876
3927
|
|
|
3877
|
-
export { type AccessPatternHint, type AgentConsolidateResponse, type AgentConsolidationConfig, type AgentConsolidationLogEntry, type AgentFeedbackSummary, type AgentId, type AgentNetworkEdge, type AgentNetworkInfo, type AgentNetworkNode, type AgentNetworkStats, type AgentStats, type AgentSummary, type AggregationGroup, type AggregationRequest, type AggregationResponse, type AnalyticsOptions, type AnalyticsOverview, type ApiKey, type AuditEvent, type AuditExportResponse, type AuditListResponse, AuthenticationError, AuthorizationError, type AutoPilotConfig, type AutoPilotConfigRequest, type AutoPilotConfigResponse, type AutoPilotConsolidationResult, type AutoPilotDedupResult, type AutoPilotStatusResponse, type AutoPilotTriggerAction, type AutoPilotTriggerResponse, type BackupInfo, type BackupListResponse, type BackupSchedule, type BackupStatus, type BackupType, type BatchForgetRequest, type BatchForgetResponse, type BatchMemoryFilter, type BatchQuerySpec, type BatchRecallRequest, type BatchRecallResponse, type BatchStoreMemoryItem, type BatchStoreMemoryRequest, type BatchStoreMemoryResponse, type BatchStoredMemory, type BatchTextQueryOptions, type BatchTextQueryResponse, type Branded, type BulkDeleteRequest, type BulkDeleteResponse, type BulkUpdateRequest, type BulkUpdateResponse, type CacheStats, type ClientOptions, type ClusterNode, type ClusterStatus, type ColumnUpsertRequest, type CompactionRequest, type CompactionResponse, type CompressResponse, type CompressionType, type ConfigureNamespaceRequest, type ConfigureNamespaceResponse, ConnectionError, type ConsolidateRequest, type ConsolidateResponse, type ConsolidationConfig, type ConsolidationConfigPatch, type ConsolidationLogEntry, type ConsolidationResultSnapshot, type CountVectorsRequest, type CountVectorsResponse, type CreateBackupRequest, type CreateBackupResponse, type CreateKeyRequest, type CreateNamespaceKeyResponse, type CrossAgentNetworkRequest, type CrossAgentNetworkResponse, DakeraClient, DakeraError, type DakeraEvent, type DecayConfigResponse, type DecayConfigUpdateRequest, type DecayConfigUpdateResponse, type DecayStatsResponse, type DecayStrategyName, type DedupResultSnapshot, type DeduplicateRequest, type DeduplicateResponse, type DefaultQuotaResponse, type DeleteOptions, type DeleteResponse, type DisableMaintenanceRequest, type DistanceMetric, type Document, type DocumentInput, type DrainReembedRequest, type DrainReembedResponse, type EdgeType, type EmbeddingModel, type EnableMaintenanceRequest, type EntityExtractionResponse, ErrorCode, type ExportRequest, type ExportResponse, type ExportedVector, type ExtractEntitiesRequest, type ExtractEntitiesResponse, type ExtractedEntity, type ExtractionProviderInfo, type ExtractionResult, type ExtractorConfig, type FeedbackHealthResponse, type FeedbackHistoryEntry, type FeedbackHistoryResponse, type FeedbackResponse, type FeedbackSignal, type FilterExpression, type FilterOperators, type FullKnowledgeGraphRequest, type FullTextIndexStats, type FullTextSearchResult, type FulltextDeleteRequest, type FulltextDeleteResponse, type FulltextReindexNamespaceResult, type FulltextReindexResponse, type FusionStrategy, type GraphEdge, type GraphExport, type GraphLinkResponse, type GraphNode, type GraphPath, type HealthResponse, type HybridSearchResult, type ImportJobStatus, type IndexStats, type JobInfo, type JobProgressEvent, type KeyUsage, type KgExportResponse, type KgPathResponse, type KgQueryResponse, type KnowledgeEdge, type KnowledgeGraphRequest, type KnowledgeGraphResponse, type KnowledgeNode, type KpiSnapshot, type LastDecayCycleStats, type LatencyAnalytics, type ListNamespaceKeysResponse, type ListSessionsOptions, type LivenessResponse, type MaintenanceStatus, type Memory, type MemoryEntitiesResponse, type MemoryEvent, type MemoryExportResponse, type MemoryFeedbackBodyRequest, type MemoryFeedbackRequest, type MemoryFeedbackResponse, type MemoryGraph, type MemoryGraphOptions, type MemoryId, type MemoryImportResponse, type MemoryImportancePatchRequest, type MemoryPolicy, type MemoryType, type MemoryTypeStatsResponse, type MigrateDimensionsResponse, type MigrateNamespaceDimensionsRequest, type MultiVectorSearchRequest, type MultiVectorSearchResponse, type MultiVectorSearchResult, type NamespaceCreatedEvent, type NamespaceDeletedEvent, type NamespaceEntityConfig, type NamespaceInfo, type NamespaceKeyInfo, type NamespaceKeyUsageResponse, type NamespaceMigrationResult, type NamespaceNerConfig, type NodeReplicationLag, NotFoundError, type OdeEntity, type OpStatus, type OperationProgressEvent, type OpsStats, type QueryExplainRequest, type QueryExplainResponse, type QueryOptions, type QueryResult, type QuotaCheckRequest, type QuotaCheckResult, type QuotaConfig, type QuotaListResponse, type QuotaStatus, type QuotaUsage, RateLimitError, type RateLimitHeaders, type ReadConsistency, type ReadinessResponse, type RecallRequest, type RecallResponse, type RecalledMemory, type ReplicationStatus, type RestoreBackupRequest, type RestoreBackupResponse, type RestoreStatus, type RetryConfig, type RotateEncryptionKeyRequest, type RotateEncryptionKeyResponse, type RouteMatch, type RouteRequest, type RouteResponse, type RoutingMode, type SearchResult, ServerError, type Session, type SessionEndResponse, type SessionId, type SessionStartResponse, type SetDefaultQuotaRequest, type SetQuotaRequest, type SetQuotaResponse, type ShardInfo, type ShardListResponse, type ShardRebalanceRequest, type ShardRebalanceResponse, type SlowQuery, type StalenessConfig, type StartSessionRequest, type StorageAnalytics, type StorageTierOverview, type StoreMemoryRequest, type StoreMemoryResponse, type StreamLaggedEvent, type SummarizeRequest, type SummarizeResponse, type SystemDiagnostics, type TextDocument, type TextQueryOptions, type TextQueryResponse, type TextSearchResult, type TextUpsertOptions, type TextUpsertResponse, type ThroughputAnalytics, type TierActivity, type TierConfig, type TierInfo, TimeoutError, type TtlConfig, type TtlNamespaceStats, type TtlStatsResponse, type UnifiedQueryRequest, type UnifiedQueryResponse, type UnifiedSearchResult, type UpdateBackupScheduleRequest, type UpdateImportanceRequest, type UpdateMemoryRequest, type UpsertOptions, type UpsertResponse, ValidationError, type Vector, type VectorId, type VectorInput, type VectorMutationOp, type VectorsMutatedEvent, type WakeUpOptions, type WakeUpResponse, type WarmCacheRequest, type WarmCacheResponse, type WarmingPriority, type WarmingTargetTier, agentId, memoryId, sessionId, vectorId };
|
|
3928
|
+
export { type AccessPatternHint, type AgentConsolidateResponse, type AgentConsolidationConfig, type AgentConsolidationLogEntry, type AgentFeedbackSummary, type AgentId, type AgentNetworkEdge, type AgentNetworkInfo, type AgentNetworkNode, type AgentNetworkStats, type AgentStats, type AgentSummary, type AggregationGroup, type AggregationRequest, type AggregationResponse, type AnalyticsOptions, type AnalyticsOverview, type ApiKey, type AuditEvent, type AuditExportResponse, type AuditListResponse, AuthenticationError, AuthorizationError, type AutoPilotConfig, type AutoPilotConfigRequest, type AutoPilotConfigResponse, type AutoPilotConsolidationResult, type AutoPilotDedupResult, type AutoPilotStatusResponse, type AutoPilotTriggerAction, type AutoPilotTriggerResponse, type BackupInfo, type BackupListResponse, type BackupSchedule, type BackupStatus, type BackupType, type BatchForgetRequest, type BatchForgetResponse, type BatchMemoryFilter, type BatchQuerySpec, type BatchRecallRequest, type BatchRecallResponse, type BatchStoreMemoryItem, type BatchStoreMemoryRequest, type BatchStoreMemoryResponse, type BatchStoredMemory, type BatchTextQueryOptions, type BatchTextQueryResponse, type Branded, type BulkDeleteRequest, type BulkDeleteResponse, type BulkUpdateRequest, type BulkUpdateResponse, type CacheStats, type ClientOptions, type ClusterNode, type ClusterStatus, type ColumnUpsertRequest, type CompactionRequest, type CompactionResponse, type CompressResponse, type CompressionType, type ConfigureNamespaceRequest, type ConfigureNamespaceResponse, ConnectionError, type ConsolidateRequest, type ConsolidateResponse, type ConsolidationConfig, type ConsolidationConfigPatch, type ConsolidationLogEntry, type ConsolidationResultSnapshot, type CountVectorsRequest, type CountVectorsResponse, type CreateBackupRequest, type CreateBackupResponse, type CreateKeyRequest, type CreateNamespaceKeyResponse, type CrossAgentNetworkRequest, type CrossAgentNetworkResponse, DakeraClient, DakeraError, type DakeraEvent, type DecayConfigResponse, type DecayConfigUpdateRequest, type DecayConfigUpdateResponse, type DecayStatsResponse, type DecayStrategyName, type DedupResultSnapshot, type DeduplicateRequest, type DeduplicateResponse, type DefaultQuotaResponse, type DeleteOptions, type DeleteResponse, type DisableMaintenanceRequest, type DistanceMetric, type Document, type DocumentInput, type DrainReembedRequest, type DrainReembedResponse, type EdgeType, type EmbeddingModel, type EnableMaintenanceRequest, type EntityExtractionResponse, ErrorCode, type ExportRequest, type ExportResponse, type ExportedVector, type ExtractEntitiesRequest, type ExtractEntitiesResponse, type ExtractedEntity, type ExtractionProviderInfo, type ExtractionResult, type ExtractorConfig, type FeedbackHealthResponse, type FeedbackHistoryEntry, type FeedbackHistoryResponse, type FeedbackResponse, type FeedbackSignal, type FilterExpression, type FilterOperators, type FullKnowledgeGraphRequest, type FullTextIndexStats, type FullTextSearchResult, type FulltextDeleteRequest, type FulltextDeleteResponse, type FulltextReindexNamespaceResult, type FulltextReindexResponse, type FusionStrategy, type GraphEdge, type GraphExport, type GraphLinkResponse, type GraphNode, type GraphPath, type HealthResponse, type HybridSearchResult, type ImportJobStatus, type IndexStats, type JobInfo, type JobProgressEvent, type KeyUsage, type KgExportResponse, type KgPathResponse, type KgQueryResponse, type KnowledgeEdge, type KnowledgeGraphRequest, type KnowledgeGraphResponse, type KnowledgeNode, type KpiSnapshot, type LastDecayCycleStats, type LatencyAnalytics, type ListNamespaceKeysResponse, type ListSessionsOptions, type LivenessResponse, type MaintenanceStatus, type Memory, type MemoryEntitiesResponse, type MemoryEvent, type MemoryExportResponse, type MemoryFeedbackBodyRequest, type MemoryFeedbackRequest, type MemoryFeedbackResponse, type MemoryGraph, type MemoryGraphOptions, type MemoryId, type MemoryImportResponse, type MemoryImportancePatchRequest, type MemoryPolicy, type MemoryType, type MemoryTypeStatsResponse, type MigrateDimensionsResponse, type MigrateNamespaceDimensionsRequest, type MultiVectorSearchRequest, type MultiVectorSearchResponse, type MultiVectorSearchResult, type NamespaceCreatedEvent, type NamespaceDeletedEvent, type NamespaceEntityConfig, type NamespaceInfo, type NamespaceKeyInfo, type NamespaceKeyUsageResponse, type NamespaceMigrationResult, type NamespaceNerConfig, type NodeReplicationLag, NotFoundError, type OdeEntity, type OpStatus, type OperationProgressEvent, type OpsStats, type QueryExplainRequest, type QueryExplainResponse, type QueryOptions, type QueryResult, type QuotaCheckRequest, type QuotaCheckResult, type QuotaConfig, type QuotaListResponse, type QuotaStatus, type QuotaUsage, RateLimitError, type RateLimitHeaders, type ReadConsistency, type ReadinessResponse, type RecallRequest, type RecallResponse, type RecalledMemory, type ReplicationStatus, type RestoreBackupRequest, type RestoreBackupResponse, type RestoreStatus, type RetryConfig, type RotateEncryptionKeyRequest, type RotateEncryptionKeyResponse, type RouteMatch, type RouteRequest, type RouteResponse, type RoutingMode, type SearchResult, ServerError, type Session, type SessionEndResponse, type SessionId, type SessionStartResponse, type SetDefaultQuotaRequest, type SetQuotaRequest, type SetQuotaResponse, type ShardInfo, type ShardListResponse, type ShardRebalanceRequest, type ShardRebalanceResponse, type SlowQuery, type StalenessConfig, type StartSessionRequest, type StorageAnalytics, type StorageTierOverview, type StoreMemoryRequest, type StoreMemoryResponse, type StreamLaggedEvent, type SummarizeRequest, type SummarizeResponse, type SystemDiagnostics, type TextDocument, type TextQueryOptions, type TextQueryResponse, type TextSearchResult, type TextUpsertOptions, type TextUpsertResponse, type ThroughputAnalytics, type TierActivity, type TierConfig, type TierInfo, type TifClassification, type TifScore, TimeoutError, type TtlConfig, type TtlNamespaceStats, type TtlStatsResponse, type UnifiedQueryRequest, type UnifiedQueryResponse, type UnifiedSearchResult, type UpdateBackupScheduleRequest, type UpdateImportanceRequest, type UpdateMemoryRequest, type UpsertOptions, type UpsertResponse, ValidationError, type Vector, type VectorId, type VectorInput, type VectorMutationOp, type VectorsMutatedEvent, type WakeUpOptions, type WakeUpResponse, type WarmCacheRequest, type WarmCacheResponse, type WarmingPriority, type WarmingTargetTier, agentId, computeTifScore, memoryId, sessionId, tifScoreFromMetadata, vectorId };
|
package/dist/index.js
CHANGED
|
@@ -129,6 +129,49 @@ var TimeoutError = class _TimeoutError extends DakeraError {
|
|
|
129
129
|
}
|
|
130
130
|
};
|
|
131
131
|
|
|
132
|
+
// src/types.ts
|
|
133
|
+
function vectorId(id) {
|
|
134
|
+
return id;
|
|
135
|
+
}
|
|
136
|
+
function agentId(id) {
|
|
137
|
+
return id;
|
|
138
|
+
}
|
|
139
|
+
function memoryId(id) {
|
|
140
|
+
return id;
|
|
141
|
+
}
|
|
142
|
+
function sessionId(id) {
|
|
143
|
+
return id;
|
|
144
|
+
}
|
|
145
|
+
function classifyTif(truth, indeterminacy, falsity) {
|
|
146
|
+
if (falsity >= 0.5) return "surface_contradiction";
|
|
147
|
+
if (indeterminacy >= 0.5) return "ask_clarification";
|
|
148
|
+
if (truth >= 0.7) return "confident_reuse";
|
|
149
|
+
return "verify_before_use";
|
|
150
|
+
}
|
|
151
|
+
function computeTifScore(history) {
|
|
152
|
+
let upvotes = 0;
|
|
153
|
+
let downvotes = 0;
|
|
154
|
+
let flags = 0;
|
|
155
|
+
for (const entry of history.entries) {
|
|
156
|
+
if (entry.signal === "upvote" || entry.signal === "positive") upvotes++;
|
|
157
|
+
else if (entry.signal === "downvote" || entry.signal === "negative") downvotes++;
|
|
158
|
+
else if (entry.signal === "flag") flags++;
|
|
159
|
+
}
|
|
160
|
+
const total = upvotes + downvotes + flags;
|
|
161
|
+
if (total === 0) {
|
|
162
|
+
return { truth: 0, indeterminacy: 1, falsity: 0, feedbackCount: 0, classification: "ask_clarification" };
|
|
163
|
+
}
|
|
164
|
+
const baseIndeterminacy = total < 3 ? (3 - total) * 0.25 : 0;
|
|
165
|
+
let truth = upvotes / total;
|
|
166
|
+
let falsity = downvotes / total;
|
|
167
|
+
let indeterminacy = flags / total + baseIndeterminacy;
|
|
168
|
+
const sum = truth + falsity + indeterminacy;
|
|
169
|
+
truth /= sum;
|
|
170
|
+
falsity /= sum;
|
|
171
|
+
indeterminacy /= sum;
|
|
172
|
+
return { truth, indeterminacy, falsity, feedbackCount: total, classification: classifyTif(truth, indeterminacy, falsity) };
|
|
173
|
+
}
|
|
174
|
+
|
|
132
175
|
// src/client.ts
|
|
133
176
|
function parseErrorCode(raw) {
|
|
134
177
|
if (typeof raw === "string" && raw in ErrorCode) {
|
|
@@ -1291,6 +1334,19 @@ var DakeraClient = class {
|
|
|
1291
1334
|
async getMemoryFeedbackHistory(memoryId2) {
|
|
1292
1335
|
return this.request("GET", `/v1/memories/${memoryId2}/feedback`);
|
|
1293
1336
|
}
|
|
1337
|
+
/**
|
|
1338
|
+
* Compute a T-I-F reliability score for a memory (T-I-F RFC Phase 3).
|
|
1339
|
+
*
|
|
1340
|
+
* Fetches the memory's full feedback history and reduces it to a
|
|
1341
|
+
* {@link TifScore} with truth/indeterminacy/falsity proportions and a
|
|
1342
|
+
* human-readable {@link TifScore.classification}.
|
|
1343
|
+
*
|
|
1344
|
+
* @param memoryId The memory to score.
|
|
1345
|
+
*/
|
|
1346
|
+
async evaluateTif(memoryId2) {
|
|
1347
|
+
const history = await this.getMemoryFeedbackHistory(memoryId2);
|
|
1348
|
+
return computeTifScore(history);
|
|
1349
|
+
}
|
|
1294
1350
|
/**
|
|
1295
1351
|
* Get aggregate feedback counts and health score for an agent (INT-1).
|
|
1296
1352
|
*
|
|
@@ -2580,20 +2636,6 @@ var DakeraClient = class {
|
|
|
2580
2636
|
return this.request("POST", "/admin/reembed/drain", request ?? {});
|
|
2581
2637
|
}
|
|
2582
2638
|
};
|
|
2583
|
-
|
|
2584
|
-
// src/types.ts
|
|
2585
|
-
function vectorId(id) {
|
|
2586
|
-
return id;
|
|
2587
|
-
}
|
|
2588
|
-
function agentId(id) {
|
|
2589
|
-
return id;
|
|
2590
|
-
}
|
|
2591
|
-
function memoryId(id) {
|
|
2592
|
-
return id;
|
|
2593
|
-
}
|
|
2594
|
-
function sessionId(id) {
|
|
2595
|
-
return id;
|
|
2596
|
-
}
|
|
2597
2639
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2598
2640
|
0 && (module.exports = {
|
|
2599
2641
|
AuthenticationError,
|
package/dist/index.mjs
CHANGED
|
@@ -89,6 +89,49 @@ var TimeoutError = class _TimeoutError extends DakeraError {
|
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
91
|
|
|
92
|
+
// src/types.ts
|
|
93
|
+
function vectorId(id) {
|
|
94
|
+
return id;
|
|
95
|
+
}
|
|
96
|
+
function agentId(id) {
|
|
97
|
+
return id;
|
|
98
|
+
}
|
|
99
|
+
function memoryId(id) {
|
|
100
|
+
return id;
|
|
101
|
+
}
|
|
102
|
+
function sessionId(id) {
|
|
103
|
+
return id;
|
|
104
|
+
}
|
|
105
|
+
function classifyTif(truth, indeterminacy, falsity) {
|
|
106
|
+
if (falsity >= 0.5) return "surface_contradiction";
|
|
107
|
+
if (indeterminacy >= 0.5) return "ask_clarification";
|
|
108
|
+
if (truth >= 0.7) return "confident_reuse";
|
|
109
|
+
return "verify_before_use";
|
|
110
|
+
}
|
|
111
|
+
function computeTifScore(history) {
|
|
112
|
+
let upvotes = 0;
|
|
113
|
+
let downvotes = 0;
|
|
114
|
+
let flags = 0;
|
|
115
|
+
for (const entry of history.entries) {
|
|
116
|
+
if (entry.signal === "upvote" || entry.signal === "positive") upvotes++;
|
|
117
|
+
else if (entry.signal === "downvote" || entry.signal === "negative") downvotes++;
|
|
118
|
+
else if (entry.signal === "flag") flags++;
|
|
119
|
+
}
|
|
120
|
+
const total = upvotes + downvotes + flags;
|
|
121
|
+
if (total === 0) {
|
|
122
|
+
return { truth: 0, indeterminacy: 1, falsity: 0, feedbackCount: 0, classification: "ask_clarification" };
|
|
123
|
+
}
|
|
124
|
+
const baseIndeterminacy = total < 3 ? (3 - total) * 0.25 : 0;
|
|
125
|
+
let truth = upvotes / total;
|
|
126
|
+
let falsity = downvotes / total;
|
|
127
|
+
let indeterminacy = flags / total + baseIndeterminacy;
|
|
128
|
+
const sum = truth + falsity + indeterminacy;
|
|
129
|
+
truth /= sum;
|
|
130
|
+
falsity /= sum;
|
|
131
|
+
indeterminacy /= sum;
|
|
132
|
+
return { truth, indeterminacy, falsity, feedbackCount: total, classification: classifyTif(truth, indeterminacy, falsity) };
|
|
133
|
+
}
|
|
134
|
+
|
|
92
135
|
// src/client.ts
|
|
93
136
|
function parseErrorCode(raw) {
|
|
94
137
|
if (typeof raw === "string" && raw in ErrorCode) {
|
|
@@ -1251,6 +1294,19 @@ var DakeraClient = class {
|
|
|
1251
1294
|
async getMemoryFeedbackHistory(memoryId2) {
|
|
1252
1295
|
return this.request("GET", `/v1/memories/${memoryId2}/feedback`);
|
|
1253
1296
|
}
|
|
1297
|
+
/**
|
|
1298
|
+
* Compute a T-I-F reliability score for a memory (T-I-F RFC Phase 3).
|
|
1299
|
+
*
|
|
1300
|
+
* Fetches the memory's full feedback history and reduces it to a
|
|
1301
|
+
* {@link TifScore} with truth/indeterminacy/falsity proportions and a
|
|
1302
|
+
* human-readable {@link TifScore.classification}.
|
|
1303
|
+
*
|
|
1304
|
+
* @param memoryId The memory to score.
|
|
1305
|
+
*/
|
|
1306
|
+
async evaluateTif(memoryId2) {
|
|
1307
|
+
const history = await this.getMemoryFeedbackHistory(memoryId2);
|
|
1308
|
+
return computeTifScore(history);
|
|
1309
|
+
}
|
|
1254
1310
|
/**
|
|
1255
1311
|
* Get aggregate feedback counts and health score for an agent (INT-1).
|
|
1256
1312
|
*
|
|
@@ -2540,20 +2596,6 @@ var DakeraClient = class {
|
|
|
2540
2596
|
return this.request("POST", "/admin/reembed/drain", request ?? {});
|
|
2541
2597
|
}
|
|
2542
2598
|
};
|
|
2543
|
-
|
|
2544
|
-
// src/types.ts
|
|
2545
|
-
function vectorId(id) {
|
|
2546
|
-
return id;
|
|
2547
|
-
}
|
|
2548
|
-
function agentId(id) {
|
|
2549
|
-
return id;
|
|
2550
|
-
}
|
|
2551
|
-
function memoryId(id) {
|
|
2552
|
-
return id;
|
|
2553
|
-
}
|
|
2554
|
-
function sessionId(id) {
|
|
2555
|
-
return id;
|
|
2556
|
-
}
|
|
2557
2599
|
export {
|
|
2558
2600
|
AuthenticationError,
|
|
2559
2601
|
AuthorizationError,
|