@indexnetwork/protocol 0.1.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/agents/chat.agent.d.ts +218 -0
- package/dist/agents/chat.agent.d.ts.map +1 -0
- package/dist/agents/chat.agent.js +884 -0
- package/dist/agents/chat.agent.js.map +1 -0
- package/dist/agents/chat.prompt.d.ts +18 -0
- package/dist/agents/chat.prompt.d.ts.map +1 -0
- package/dist/agents/chat.prompt.js +372 -0
- package/dist/agents/chat.prompt.js.map +1 -0
- package/dist/agents/chat.prompt.modules.d.ts +61 -0
- package/dist/agents/chat.prompt.modules.d.ts.map +1 -0
- package/dist/agents/chat.prompt.modules.js +366 -0
- package/dist/agents/chat.prompt.modules.js.map +1 -0
- package/dist/agents/chat.title.generator.d.ts +20 -0
- package/dist/agents/chat.title.generator.d.ts.map +1 -0
- package/dist/agents/chat.title.generator.js +66 -0
- package/dist/agents/chat.title.generator.js.map +1 -0
- package/dist/agents/home.categorizer.d.ts +28 -0
- package/dist/agents/home.categorizer.d.ts.map +1 -0
- package/dist/agents/home.categorizer.js +170 -0
- package/dist/agents/home.categorizer.js.map +1 -0
- package/dist/agents/hyde.generator.d.ts +27 -0
- package/dist/agents/hyde.generator.d.ts.map +1 -0
- package/dist/agents/hyde.generator.js +75 -0
- package/dist/agents/hyde.generator.js.map +1 -0
- package/dist/agents/hyde.strategies.d.ts +17 -0
- package/dist/agents/hyde.strategies.d.ts.map +1 -0
- package/dist/agents/hyde.strategies.js +29 -0
- package/dist/agents/hyde.strategies.js.map +1 -0
- package/dist/agents/intent.clarifier.d.ts +29 -0
- package/dist/agents/intent.clarifier.d.ts.map +1 -0
- package/dist/agents/intent.clarifier.js +186 -0
- package/dist/agents/intent.clarifier.js.map +1 -0
- package/dist/agents/intent.indexer.d.ts +77 -0
- package/dist/agents/intent.indexer.d.ts.map +1 -0
- package/dist/agents/intent.indexer.js +164 -0
- package/dist/agents/intent.indexer.js.map +1 -0
- package/dist/agents/intent.inferrer.d.ts +95 -0
- package/dist/agents/intent.inferrer.d.ts.map +1 -0
- package/dist/agents/intent.inferrer.js +238 -0
- package/dist/agents/intent.inferrer.js.map +1 -0
- package/dist/agents/intent.reconciler.d.ts +106 -0
- package/dist/agents/intent.reconciler.d.ts.map +1 -0
- package/dist/agents/intent.reconciler.js +184 -0
- package/dist/agents/intent.reconciler.js.map +1 -0
- package/dist/agents/intent.verifier.d.ts +97 -0
- package/dist/agents/intent.verifier.d.ts.map +1 -0
- package/dist/agents/intent.verifier.js +234 -0
- package/dist/agents/intent.verifier.js.map +1 -0
- package/dist/agents/invite.generator.d.ts +47 -0
- package/dist/agents/invite.generator.d.ts.map +1 -0
- package/dist/agents/invite.generator.js +56 -0
- package/dist/agents/invite.generator.js.map +1 -0
- package/dist/agents/lens.inferrer.d.ts +37 -0
- package/dist/agents/lens.inferrer.d.ts.map +1 -0
- package/dist/agents/lens.inferrer.js +98 -0
- package/dist/agents/lens.inferrer.js.map +1 -0
- package/dist/agents/model.config.d.ts +120 -0
- package/dist/agents/model.config.d.ts.map +1 -0
- package/dist/agents/model.config.js +76 -0
- package/dist/agents/model.config.js.map +1 -0
- package/dist/agents/negotiation.insights.generator.d.ts +32 -0
- package/dist/agents/negotiation.insights.generator.d.ts.map +1 -0
- package/dist/agents/negotiation.insights.generator.js +105 -0
- package/dist/agents/negotiation.insights.generator.js.map +1 -0
- package/dist/agents/negotiation.proposer.d.ts +26 -0
- package/dist/agents/negotiation.proposer.d.ts.map +1 -0
- package/dist/agents/negotiation.proposer.js +67 -0
- package/dist/agents/negotiation.proposer.js.map +1 -0
- package/dist/agents/negotiation.responder.d.ts +26 -0
- package/dist/agents/negotiation.responder.d.ts.map +1 -0
- package/dist/agents/negotiation.responder.js +71 -0
- package/dist/agents/negotiation.responder.js.map +1 -0
- package/dist/agents/opportunity.evaluator.d.ts +253 -0
- package/dist/agents/opportunity.evaluator.d.ts.map +1 -0
- package/dist/agents/opportunity.evaluator.js +413 -0
- package/dist/agents/opportunity.evaluator.js.map +1 -0
- package/dist/agents/opportunity.presenter.d.ts +115 -0
- package/dist/agents/opportunity.presenter.d.ts.map +1 -0
- package/dist/agents/opportunity.presenter.js +524 -0
- package/dist/agents/opportunity.presenter.js.map +1 -0
- package/dist/agents/profile.generator.d.ts +67 -0
- package/dist/agents/profile.generator.d.ts.map +1 -0
- package/dist/agents/profile.generator.js +97 -0
- package/dist/agents/profile.generator.js.map +1 -0
- package/dist/agents/profile.hyde.generator.d.ts +43 -0
- package/dist/agents/profile.hyde.generator.d.ts.map +1 -0
- package/dist/agents/profile.hyde.generator.js +113 -0
- package/dist/agents/profile.hyde.generator.js.map +1 -0
- package/dist/agents/suggestion.generator.d.ts +24 -0
- package/dist/agents/suggestion.generator.d.ts.map +1 -0
- package/dist/agents/suggestion.generator.js +96 -0
- package/dist/agents/suggestion.generator.js.map +1 -0
- package/dist/graphs/chat.graph.d.ts +312 -0
- package/dist/graphs/chat.graph.d.ts.map +1 -0
- package/dist/graphs/chat.graph.js +267 -0
- package/dist/graphs/chat.graph.js.map +1 -0
- package/dist/graphs/home.graph.d.ts +180 -0
- package/dist/graphs/home.graph.d.ts.map +1 -0
- package/dist/graphs/home.graph.js +598 -0
- package/dist/graphs/home.graph.js.map +1 -0
- package/dist/graphs/hyde.graph.d.ts +110 -0
- package/dist/graphs/hyde.graph.d.ts.map +1 -0
- package/dist/graphs/hyde.graph.js +235 -0
- package/dist/graphs/hyde.graph.js.map +1 -0
- package/dist/graphs/index.graph.d.ts +620 -0
- package/dist/graphs/index.graph.d.ts.map +1 -0
- package/dist/graphs/index.graph.js +226 -0
- package/dist/graphs/index.graph.js.map +1 -0
- package/dist/graphs/index_membership.graph.d.ts +250 -0
- package/dist/graphs/index_membership.graph.d.ts.map +1 -0
- package/dist/graphs/index_membership.graph.js +204 -0
- package/dist/graphs/index_membership.graph.js.map +1 -0
- package/dist/graphs/intent.graph.d.ts +490 -0
- package/dist/graphs/intent.graph.d.ts.map +1 -0
- package/dist/graphs/intent.graph.js +787 -0
- package/dist/graphs/intent.graph.js.map +1 -0
- package/dist/graphs/intent_index.graph.d.ts +396 -0
- package/dist/graphs/intent_index.graph.d.ts.map +1 -0
- package/dist/graphs/intent_index.graph.js +331 -0
- package/dist/graphs/intent_index.graph.js.map +1 -0
- package/dist/graphs/maintenance.graph.d.ts +177 -0
- package/dist/graphs/maintenance.graph.d.ts.map +1 -0
- package/dist/graphs/maintenance.graph.js +173 -0
- package/dist/graphs/maintenance.graph.js.map +1 -0
- package/dist/graphs/negotiation.graph.d.ts +819 -0
- package/dist/graphs/negotiation.graph.d.ts.map +1 -0
- package/dist/graphs/negotiation.graph.js +255 -0
- package/dist/graphs/negotiation.graph.js.map +1 -0
- package/dist/graphs/opportunity.graph.d.ts +1082 -0
- package/dist/graphs/opportunity.graph.d.ts.map +1 -0
- package/dist/graphs/opportunity.graph.js +2534 -0
- package/dist/graphs/opportunity.graph.js.map +1 -0
- package/dist/graphs/profile.graph.d.ts +617 -0
- package/dist/graphs/profile.graph.d.ts.map +1 -0
- package/dist/graphs/profile.graph.js +839 -0
- package/dist/graphs/profile.graph.js.map +1 -0
- package/dist/graphs/tests/chat.graph.mocks.d.ts +104 -0
- package/dist/graphs/tests/chat.graph.mocks.d.ts.map +1 -0
- package/dist/graphs/tests/chat.graph.mocks.js +225 -0
- package/dist/graphs/tests/chat.graph.mocks.js.map +1 -0
- package/dist/index.d.ts +62 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +44 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces/auth.interface.d.ts +15 -0
- package/dist/interfaces/auth.interface.d.ts.map +1 -0
- package/dist/interfaces/auth.interface.js +2 -0
- package/dist/interfaces/auth.interface.js.map +1 -0
- package/dist/interfaces/cache.interface.d.ts +43 -0
- package/dist/interfaces/cache.interface.d.ts.map +1 -0
- package/dist/interfaces/cache.interface.js +6 -0
- package/dist/interfaces/cache.interface.js.map +1 -0
- package/dist/interfaces/chat-session.interface.d.ts +11 -0
- package/dist/interfaces/chat-session.interface.d.ts.map +1 -0
- package/dist/interfaces/chat-session.interface.js +2 -0
- package/dist/interfaces/chat-session.interface.js.map +1 -0
- package/dist/interfaces/contact.interface.d.ts +48 -0
- package/dist/interfaces/contact.interface.d.ts.map +1 -0
- package/dist/interfaces/contact.interface.js +2 -0
- package/dist/interfaces/contact.interface.js.map +1 -0
- package/dist/interfaces/database.interface.d.ts +1495 -0
- package/dist/interfaces/database.interface.d.ts.map +1 -0
- package/dist/interfaces/database.interface.js +2 -0
- package/dist/interfaces/database.interface.js.map +1 -0
- package/dist/interfaces/embedder.interface.d.ts +85 -0
- package/dist/interfaces/embedder.interface.d.ts.map +1 -0
- package/dist/interfaces/embedder.interface.js +5 -0
- package/dist/interfaces/embedder.interface.js.map +1 -0
- package/dist/interfaces/enrichment.interface.d.ts +40 -0
- package/dist/interfaces/enrichment.interface.d.ts.map +1 -0
- package/dist/interfaces/enrichment.interface.js +2 -0
- package/dist/interfaces/enrichment.interface.js.map +1 -0
- package/dist/interfaces/integration.interface.d.ts +91 -0
- package/dist/interfaces/integration.interface.d.ts.map +1 -0
- package/dist/interfaces/integration.interface.js +2 -0
- package/dist/interfaces/integration.interface.js.map +1 -0
- package/dist/interfaces/queue.interface.d.ts +17 -0
- package/dist/interfaces/queue.interface.d.ts.map +1 -0
- package/dist/interfaces/queue.interface.js +5 -0
- package/dist/interfaces/queue.interface.js.map +1 -0
- package/dist/interfaces/scraper.interface.d.ts +31 -0
- package/dist/interfaces/scraper.interface.d.ts.map +1 -0
- package/dist/interfaces/scraper.interface.js +2 -0
- package/dist/interfaces/scraper.interface.js.map +1 -0
- package/dist/interfaces/storage.interface.d.ts +46 -0
- package/dist/interfaces/storage.interface.d.ts.map +1 -0
- package/dist/interfaces/storage.interface.js +6 -0
- package/dist/interfaces/storage.interface.js.map +1 -0
- package/dist/mcp/mcp.server.d.ts +29 -0
- package/dist/mcp/mcp.server.d.ts.map +1 -0
- package/dist/mcp/mcp.server.js +171 -0
- package/dist/mcp/mcp.server.js.map +1 -0
- package/dist/states/chat.state.d.ts +126 -0
- package/dist/states/chat.state.d.ts.map +1 -0
- package/dist/states/chat.state.js +112 -0
- package/dist/states/chat.state.js.map +1 -0
- package/dist/states/home.state.d.ts +100 -0
- package/dist/states/home.state.d.ts.map +1 -0
- package/dist/states/home.state.js +74 -0
- package/dist/states/home.state.js.map +1 -0
- package/dist/states/hyde.state.d.ts +54 -0
- package/dist/states/hyde.state.d.ts.map +1 -0
- package/dist/states/hyde.state.js +66 -0
- package/dist/states/hyde.state.js.map +1 -0
- package/dist/states/index.state.d.ts +179 -0
- package/dist/states/index.state.d.ts.map +1 -0
- package/dist/states/index.state.js +56 -0
- package/dist/states/index.state.js.map +1 -0
- package/dist/states/index_membership.state.d.ts +77 -0
- package/dist/states/index_membership.state.d.ts.map +1 -0
- package/dist/states/index_membership.state.js +43 -0
- package/dist/states/index_membership.state.js.map +1 -0
- package/dist/states/intent.state.d.ts +203 -0
- package/dist/states/intent.state.d.ts.map +1 -0
- package/dist/states/intent.state.js +153 -0
- package/dist/states/intent.state.js.map +1 -0
- package/dist/states/intent_index.state.d.ts +148 -0
- package/dist/states/intent_index.state.d.ts.map +1 -0
- package/dist/states/intent_index.state.js +100 -0
- package/dist/states/intent_index.state.js.map +1 -0
- package/dist/states/maintenance.state.d.ts +36 -0
- package/dist/states/maintenance.state.d.ts.map +1 -0
- package/dist/states/maintenance.state.js +56 -0
- package/dist/states/maintenance.state.js.map +1 -0
- package/dist/states/negotiation.state.d.ts +230 -0
- package/dist/states/negotiation.state.d.ts.map +1 -0
- package/dist/states/negotiation.state.js +82 -0
- package/dist/states/negotiation.state.js.map +1 -0
- package/dist/states/opportunity.state.d.ts +300 -0
- package/dist/states/opportunity.state.d.ts.map +1 -0
- package/dist/states/opportunity.state.js +207 -0
- package/dist/states/opportunity.state.js.map +1 -0
- package/dist/states/profile.state.d.ts +172 -0
- package/dist/states/profile.state.d.ts.map +1 -0
- package/dist/states/profile.state.js +133 -0
- package/dist/states/profile.state.js.map +1 -0
- package/dist/streamers/chat.streamer.d.ts +55 -0
- package/dist/streamers/chat.streamer.d.ts.map +1 -0
- package/dist/streamers/chat.streamer.js +186 -0
- package/dist/streamers/chat.streamer.js.map +1 -0
- package/dist/streamers/index.d.ts +3 -0
- package/dist/streamers/index.d.ts.map +1 -0
- package/dist/streamers/index.js +3 -0
- package/dist/streamers/index.js.map +1 -0
- package/dist/streamers/response.streamer.d.ts +36 -0
- package/dist/streamers/response.streamer.d.ts.map +1 -0
- package/dist/streamers/response.streamer.js +46 -0
- package/dist/streamers/response.streamer.js.map +1 -0
- package/dist/support/chat.utils.d.ts +42 -0
- package/dist/support/chat.utils.d.ts.map +1 -0
- package/dist/support/chat.utils.js +89 -0
- package/dist/support/chat.utils.js.map +1 -0
- package/dist/support/debug-meta.sanitizer.d.ts +18 -0
- package/dist/support/debug-meta.sanitizer.d.ts.map +1 -0
- package/dist/support/debug-meta.sanitizer.js +82 -0
- package/dist/support/debug-meta.sanitizer.js.map +1 -0
- package/dist/support/feed.health.d.ts +32 -0
- package/dist/support/feed.health.d.ts.map +1 -0
- package/dist/support/feed.health.js +76 -0
- package/dist/support/feed.health.js.map +1 -0
- package/dist/support/introducer.discovery.d.ts +78 -0
- package/dist/support/introducer.discovery.d.ts.map +1 -0
- package/dist/support/introducer.discovery.js +101 -0
- package/dist/support/introducer.discovery.js.map +1 -0
- package/dist/support/log.d.ts +65 -0
- package/dist/support/log.d.ts.map +1 -0
- package/dist/support/log.js +76 -0
- package/dist/support/log.js.map +1 -0
- package/dist/support/lucide.icon-catalog.d.ts +22 -0
- package/dist/support/lucide.icon-catalog.d.ts.map +1 -0
- package/dist/support/lucide.icon-catalog.js +101 -0
- package/dist/support/lucide.icon-catalog.js.map +1 -0
- package/dist/support/opportunity.card-text.d.ts +39 -0
- package/dist/support/opportunity.card-text.d.ts.map +1 -0
- package/dist/support/opportunity.card-text.js +333 -0
- package/dist/support/opportunity.card-text.js.map +1 -0
- package/dist/support/opportunity.constants.d.ts +9 -0
- package/dist/support/opportunity.constants.d.ts.map +1 -0
- package/dist/support/opportunity.constants.js +11 -0
- package/dist/support/opportunity.constants.js.map +1 -0
- package/dist/support/opportunity.discover.d.ts +144 -0
- package/dist/support/opportunity.discover.d.ts.map +1 -0
- package/dist/support/opportunity.discover.js +610 -0
- package/dist/support/opportunity.discover.js.map +1 -0
- package/dist/support/opportunity.enricher.d.ts +44 -0
- package/dist/support/opportunity.enricher.d.ts.map +1 -0
- package/dist/support/opportunity.enricher.js +245 -0
- package/dist/support/opportunity.enricher.js.map +1 -0
- package/dist/support/opportunity.persist.d.ts +39 -0
- package/dist/support/opportunity.persist.d.ts.map +1 -0
- package/dist/support/opportunity.persist.js +63 -0
- package/dist/support/opportunity.persist.js.map +1 -0
- package/dist/support/opportunity.presentation.d.ts +21 -0
- package/dist/support/opportunity.presentation.d.ts.map +1 -0
- package/dist/support/opportunity.presentation.js +75 -0
- package/dist/support/opportunity.presentation.js.map +1 -0
- package/dist/support/opportunity.sanitize.d.ts +18 -0
- package/dist/support/opportunity.sanitize.d.ts.map +1 -0
- package/dist/support/opportunity.sanitize.js +89 -0
- package/dist/support/opportunity.sanitize.js.map +1 -0
- package/dist/support/opportunity.utils.d.ts +99 -0
- package/dist/support/opportunity.utils.d.ts.map +1 -0
- package/dist/support/opportunity.utils.js +184 -0
- package/dist/support/opportunity.utils.js.map +1 -0
- package/dist/support/performance.d.ts +19 -0
- package/dist/support/performance.d.ts.map +1 -0
- package/dist/support/performance.js +43 -0
- package/dist/support/performance.js.map +1 -0
- package/dist/support/profile.enrichment-display-name.d.ts +16 -0
- package/dist/support/profile.enrichment-display-name.d.ts.map +1 -0
- package/dist/support/profile.enrichment-display-name.js +22 -0
- package/dist/support/profile.enrichment-display-name.js.map +1 -0
- package/dist/support/protocol.logger.d.ts +22 -0
- package/dist/support/protocol.logger.d.ts.map +1 -0
- package/dist/support/protocol.logger.js +44 -0
- package/dist/support/protocol.logger.js.map +1 -0
- package/dist/support/request-context.d.ts +19 -0
- package/dist/support/request-context.d.ts.map +1 -0
- package/dist/support/request-context.js +7 -0
- package/dist/support/request-context.js.map +1 -0
- package/dist/tools/contact.tools.d.ts +7 -0
- package/dist/tools/contact.tools.d.ts.map +1 -0
- package/dist/tools/contact.tools.js +115 -0
- package/dist/tools/contact.tools.js.map +1 -0
- package/dist/tools/index.d.ts +17 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +140 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/index.tools.d.ts +3 -0
- package/dist/tools/index.tools.d.ts.map +1 -0
- package/dist/tools/index.tools.js +423 -0
- package/dist/tools/index.tools.js.map +1 -0
- package/dist/tools/integration.tools.d.ts +13 -0
- package/dist/tools/integration.tools.d.ts.map +1 -0
- package/dist/tools/integration.tools.js +77 -0
- package/dist/tools/integration.tools.js.map +1 -0
- package/dist/tools/intent.tools.d.ts +3 -0
- package/dist/tools/intent.tools.d.ts.map +1 -0
- package/dist/tools/intent.tools.js +458 -0
- package/dist/tools/intent.tools.js.map +1 -0
- package/dist/tools/opportunity.tools.d.ts +44 -0
- package/dist/tools/opportunity.tools.d.ts.map +1 -0
- package/dist/tools/opportunity.tools.js +814 -0
- package/dist/tools/opportunity.tools.js.map +1 -0
- package/dist/tools/profile.tools.d.ts +3 -0
- package/dist/tools/profile.tools.d.ts.map +1 -0
- package/dist/tools/profile.tools.js +513 -0
- package/dist/tools/profile.tools.js.map +1 -0
- package/dist/tools/tool.helpers.d.ts +225 -0
- package/dist/tools/tool.helpers.d.ts.map +1 -0
- package/dist/tools/tool.helpers.js +172 -0
- package/dist/tools/tool.helpers.js.map +1 -0
- package/dist/tools/tool.registry.d.ts +12 -0
- package/dist/tools/tool.registry.d.ts.map +1 -0
- package/dist/tools/tool.registry.js +62 -0
- package/dist/tools/tool.registry.js.map +1 -0
- package/dist/tools/utility.tools.d.ts +3 -0
- package/dist/tools/utility.tools.d.ts.map +1 -0
- package/dist/tools/utility.tools.js +107 -0
- package/dist/tools/utility.tools.js.map +1 -0
- package/dist/types/chat-streaming.types.d.ts +472 -0
- package/dist/types/chat-streaming.types.d.ts.map +1 -0
- package/dist/types/chat-streaming.types.js +260 -0
- package/dist/types/chat-streaming.types.js.map +1 -0
- package/package.json +32 -0
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { BaseMessage } from "@langchain/core/messages";
|
|
2
|
+
import { InferredIntent } from "../agents/intent.inferrer.js";
|
|
3
|
+
import { SemanticVerifierOutput } from "../agents/intent.verifier.js";
|
|
4
|
+
import type { DebugMetaAgent } from '../types/chat-streaming.types.js';
|
|
5
|
+
/**
|
|
6
|
+
* Extended InferredIntent that includes verification results.
|
|
7
|
+
* We attach the verification output directly to the intent object
|
|
8
|
+
* as it flows through the graph.
|
|
9
|
+
*/
|
|
10
|
+
export type VerifiedIntent = InferredIntent & {
|
|
11
|
+
verification?: SemanticVerifierOutput;
|
|
12
|
+
score?: number;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Result of executing a single reconciler action.
|
|
16
|
+
*/
|
|
17
|
+
export interface ExecutionResult {
|
|
18
|
+
/** The action type that was executed */
|
|
19
|
+
actionType: 'create' | 'update' | 'expire';
|
|
20
|
+
/** Whether the action succeeded */
|
|
21
|
+
success: boolean;
|
|
22
|
+
/** The intent ID (created/updated/archived) */
|
|
23
|
+
intentId?: string;
|
|
24
|
+
/** Final payload (sanitized, for create/update) */
|
|
25
|
+
payload?: string;
|
|
26
|
+
/** Error message if failed */
|
|
27
|
+
error?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* The Graph State using LangGraph Annotations.
|
|
31
|
+
* This acts as the central bus for data flowing through our graph.
|
|
32
|
+
*/
|
|
33
|
+
export declare const IntentGraphState: import("@langchain/langgraph").AnnotationRoot<{
|
|
34
|
+
/**
|
|
35
|
+
* The unique identifier of the user whose intents are being processed.
|
|
36
|
+
* Required for database operations.
|
|
37
|
+
*/
|
|
38
|
+
userId: {
|
|
39
|
+
(annotation: import("@langchain/langgraph").SingleReducer<string, string>): import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
40
|
+
(): import("@langchain/langgraph").LastValue<string>;
|
|
41
|
+
Root: <S extends import("@langchain/langgraph").StateDefinition>(sd: S) => import("@langchain/langgraph").AnnotationRoot<S>;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* The user's profile context (Identity, Narrative, etc.)
|
|
45
|
+
*/
|
|
46
|
+
userProfile: {
|
|
47
|
+
(annotation: import("@langchain/langgraph").SingleReducer<string, string>): import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
48
|
+
(): import("@langchain/langgraph").LastValue<string>;
|
|
49
|
+
Root: <S extends import("@langchain/langgraph").StateDefinition>(sd: S) => import("@langchain/langgraph").AnnotationRoot<S>;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Explicit input content (e.g., user message).
|
|
53
|
+
* Optional - graph might run on implicit only.
|
|
54
|
+
*/
|
|
55
|
+
inputContent: {
|
|
56
|
+
(annotation: import("@langchain/langgraph").SingleReducer<string | undefined, string | undefined>): import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
57
|
+
(): import("@langchain/langgraph").LastValue<string | undefined>;
|
|
58
|
+
Root: <S extends import("@langchain/langgraph").StateDefinition>(sd: S) => import("@langchain/langgraph").AnnotationRoot<S>;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Conversation history for context-aware intent inference.
|
|
62
|
+
* Used to resolve anaphoric references ("that intent", "this goal").
|
|
63
|
+
* Limited to recent messages (typically last 10) for token efficiency.
|
|
64
|
+
* Optional - if not provided, intent inference uses only inputContent.
|
|
65
|
+
*/
|
|
66
|
+
conversationContext: import("@langchain/langgraph").BaseChannel<BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | undefined, BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | import("@langchain/langgraph").OverwriteValue<BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | undefined> | undefined, unknown>;
|
|
67
|
+
/**
|
|
68
|
+
* Operation mode controls graph flow and determines which nodes execute.
|
|
69
|
+
* - 'create': Full pipeline (prep → inference → verification → reconciliation → execution)
|
|
70
|
+
* - 'update': Skip verification if no new intents (prep → inference → reconciliation → execution)
|
|
71
|
+
* - 'delete': Skip inference and verification (prep → reconciliation → execution)
|
|
72
|
+
* - 'read': Fast path (prep → queryNode → END) — reads intents without LLM calls
|
|
73
|
+
* - 'propose': Inference + verification only, stops before reconciliation (no DB writes)
|
|
74
|
+
*
|
|
75
|
+
* Defaults to 'create' for backward compatibility.
|
|
76
|
+
*/
|
|
77
|
+
operationMode: import("@langchain/langgraph").BaseChannel<"create" | "update" | "delete" | "read" | "propose", "create" | "update" | "delete" | "read" | "propose" | import("@langchain/langgraph").OverwriteValue<"create" | "update" | "delete" | "read" | "propose">, unknown>;
|
|
78
|
+
/**
|
|
79
|
+
* For update/delete operations, specifies which intent IDs to target.
|
|
80
|
+
* Optional - used when modifying or removing specific intents.
|
|
81
|
+
*/
|
|
82
|
+
targetIntentIds: import("@langchain/langgraph").BaseChannel<string[] | undefined, string[] | import("@langchain/langgraph").OverwriteValue<string[] | undefined> | undefined, unknown>;
|
|
83
|
+
/**
|
|
84
|
+
* Optional index scope (index ID). Used for linking created intents to an index
|
|
85
|
+
* and for scoping read operations. Prep always fetches ALL user intents via
|
|
86
|
+
* getActiveIntents(userId) regardless of index scope (for global dedup/reconciliation).
|
|
87
|
+
*/
|
|
88
|
+
indexId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
89
|
+
/**
|
|
90
|
+
* The formatted string of currently active intents.
|
|
91
|
+
* Always populated by prep via getActiveIntents(userId).
|
|
92
|
+
*/
|
|
93
|
+
activeIntents: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
94
|
+
/**
|
|
95
|
+
* List of raw intents extracted from text.
|
|
96
|
+
*/
|
|
97
|
+
inferredIntents: import("@langchain/langgraph").BaseChannel<{
|
|
98
|
+
reasoning: string;
|
|
99
|
+
confidence: "low" | "medium" | "high";
|
|
100
|
+
type: "goal" | "tombstone";
|
|
101
|
+
description: string;
|
|
102
|
+
}[], {
|
|
103
|
+
reasoning: string;
|
|
104
|
+
confidence: "low" | "medium" | "high";
|
|
105
|
+
type: "goal" | "tombstone";
|
|
106
|
+
description: string;
|
|
107
|
+
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
108
|
+
reasoning: string;
|
|
109
|
+
confidence: "low" | "medium" | "high";
|
|
110
|
+
type: "goal" | "tombstone";
|
|
111
|
+
description: string;
|
|
112
|
+
}[]>, unknown>;
|
|
113
|
+
/**
|
|
114
|
+
* List of intents that have passed semantic verification.
|
|
115
|
+
* Invalid intents are filtered out before reaching this state.
|
|
116
|
+
*/
|
|
117
|
+
verifiedIntents: import("@langchain/langgraph").BaseChannel<VerifiedIntent[], VerifiedIntent[] | import("@langchain/langgraph").OverwriteValue<VerifiedIntent[]>, unknown>;
|
|
118
|
+
/**
|
|
119
|
+
* Final actions to be performed on the DB (Create, Update, Expire).
|
|
120
|
+
*/
|
|
121
|
+
actions: import("@langchain/langgraph").BaseChannel<import("../agents/intent.reconciler.js").NormalizedIntentAction[], import("../agents/intent.reconciler.js").NormalizedIntentAction[] | import("@langchain/langgraph").OverwriteValue<import("../agents/intent.reconciler.js").NormalizedIntentAction[]>, unknown>;
|
|
122
|
+
/**
|
|
123
|
+
* Results of executing actions against the database.
|
|
124
|
+
* Populated by executorNode after actions are persisted.
|
|
125
|
+
*/
|
|
126
|
+
executionResults: import("@langchain/langgraph").BaseChannel<ExecutionResult[], ExecutionResult[] | import("@langchain/langgraph").OverwriteValue<ExecutionResult[]>, unknown>;
|
|
127
|
+
/**
|
|
128
|
+
* If set, indicates a fatal error that should short-circuit the graph to END.
|
|
129
|
+
* Populated by prep when a precondition fails (e.g. missing profile).
|
|
130
|
+
*/
|
|
131
|
+
error: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
132
|
+
/**
|
|
133
|
+
* Accumulated trace entries from each graph node.
|
|
134
|
+
* Used for observability: surfaces internal processing steps (inference,
|
|
135
|
+
* verification with Felicity scores, reconciliation) to the frontend.
|
|
136
|
+
*/
|
|
137
|
+
trace: import("@langchain/langgraph").BaseChannel<{
|
|
138
|
+
node: string;
|
|
139
|
+
detail?: string;
|
|
140
|
+
data?: Record<string, unknown>;
|
|
141
|
+
}[], {
|
|
142
|
+
node: string;
|
|
143
|
+
detail?: string;
|
|
144
|
+
data?: Record<string, unknown>;
|
|
145
|
+
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
146
|
+
node: string;
|
|
147
|
+
detail?: string;
|
|
148
|
+
data?: Record<string, unknown>;
|
|
149
|
+
}[]>, unknown>;
|
|
150
|
+
/** Timing records for each agent invocation within this graph run. */
|
|
151
|
+
agentTimings: import("@langchain/langgraph").BaseChannel<DebugMetaAgent[], DebugMetaAgent[] | import("@langchain/langgraph").OverwriteValue<DebugMetaAgent[]>, unknown>;
|
|
152
|
+
/**
|
|
153
|
+
* For read mode: filter intents by a specific user when reading in an index.
|
|
154
|
+
* When omitted and index-scoped, returns all intents in the index.
|
|
155
|
+
*/
|
|
156
|
+
queryUserId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
157
|
+
/**
|
|
158
|
+
* For read mode: when true, return all of the current user's intents
|
|
159
|
+
* ignoring index scope. Used before create_intent to detect duplicates.
|
|
160
|
+
*/
|
|
161
|
+
allUserIntents: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
162
|
+
/**
|
|
163
|
+
* Output of read mode: queried intents with count and optional metadata.
|
|
164
|
+
*/
|
|
165
|
+
readResult: import("@langchain/langgraph").BaseChannel<{
|
|
166
|
+
count: number;
|
|
167
|
+
intents: Array<{
|
|
168
|
+
id: string;
|
|
169
|
+
description: string;
|
|
170
|
+
summary: string | null;
|
|
171
|
+
createdAt: Date;
|
|
172
|
+
userId?: string;
|
|
173
|
+
userName?: string | null;
|
|
174
|
+
}>;
|
|
175
|
+
message?: string;
|
|
176
|
+
indexId?: string;
|
|
177
|
+
} | undefined, {
|
|
178
|
+
count: number;
|
|
179
|
+
intents: Array<{
|
|
180
|
+
id: string;
|
|
181
|
+
description: string;
|
|
182
|
+
summary: string | null;
|
|
183
|
+
createdAt: Date;
|
|
184
|
+
userId?: string;
|
|
185
|
+
userName?: string | null;
|
|
186
|
+
}>;
|
|
187
|
+
message?: string;
|
|
188
|
+
indexId?: string;
|
|
189
|
+
} | import("@langchain/langgraph").OverwriteValue<{
|
|
190
|
+
count: number;
|
|
191
|
+
intents: Array<{
|
|
192
|
+
id: string;
|
|
193
|
+
description: string;
|
|
194
|
+
summary: string | null;
|
|
195
|
+
createdAt: Date;
|
|
196
|
+
userId?: string;
|
|
197
|
+
userName?: string | null;
|
|
198
|
+
}>;
|
|
199
|
+
message?: string;
|
|
200
|
+
indexId?: string;
|
|
201
|
+
} | undefined> | undefined, unknown>;
|
|
202
|
+
}>;
|
|
203
|
+
//# sourceMappingURL=intent.state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intent.state.d.ts","sourceRoot":"","sources":["../../src/states/intent.state.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,C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YACb,EAAE,EAAE,MAAM,CAAC;YACX,WAAW,EAAE,MAAM,CAAC;YACpB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;YACvB,SAAS,EAAE,IAAI,CAAC;YAChB,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;SAC1B,CAAC;kBACQ,MAAM;kBACN,MAAM;;eAVT,MAAM;iBACJ,KAAK,CAAC;YACb,EAAE,EAAE,MAAM,CAAC;YACX,WAAW,EAAE,MAAM,CAAC;YACpB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;YACvB,SAAS,EAAE,IAAI,CAAC;YAChB,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;SAC1B,CAAC;kBACQ,MAAM;kBACN,MAAM;;eAVT,MAAM;iBACJ,KAAK,CAAC;YACb,EAAE,EAAE,MAAM,CAAC;YACX,WAAW,EAAE,MAAM,CAAC;YACpB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;YACvB,SAAS,EAAE,IAAI,CAAC;YAChB,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;SAC1B,CAAC;kBACQ,MAAM;kBACN,MAAM;;EAKlB,CAAC"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { Annotation } from "@langchain/langgraph";
|
|
2
|
+
/**
|
|
3
|
+
* The Graph State using LangGraph Annotations.
|
|
4
|
+
* This acts as the central bus for data flowing through our graph.
|
|
5
|
+
*/
|
|
6
|
+
export const IntentGraphState = Annotation.Root({
|
|
7
|
+
// --- Inputs (Required at start) ---
|
|
8
|
+
/**
|
|
9
|
+
* The unique identifier of the user whose intents are being processed.
|
|
10
|
+
* Required for database operations.
|
|
11
|
+
*/
|
|
12
|
+
userId: (Annotation),
|
|
13
|
+
/**
|
|
14
|
+
* The user's profile context (Identity, Narrative, etc.)
|
|
15
|
+
*/
|
|
16
|
+
userProfile: (Annotation),
|
|
17
|
+
/**
|
|
18
|
+
* Explicit input content (e.g., user message).
|
|
19
|
+
* Optional - graph might run on implicit only.
|
|
20
|
+
*/
|
|
21
|
+
inputContent: (Annotation),
|
|
22
|
+
/**
|
|
23
|
+
* Conversation history for context-aware intent inference.
|
|
24
|
+
* Used to resolve anaphoric references ("that intent", "this goal").
|
|
25
|
+
* Limited to recent messages (typically last 10) for token efficiency.
|
|
26
|
+
* Optional - if not provided, intent inference uses only inputContent.
|
|
27
|
+
*/
|
|
28
|
+
conversationContext: Annotation({
|
|
29
|
+
reducer: (curr, next) => next ?? curr,
|
|
30
|
+
default: () => undefined,
|
|
31
|
+
}),
|
|
32
|
+
/**
|
|
33
|
+
* Operation mode controls graph flow and determines which nodes execute.
|
|
34
|
+
* - 'create': Full pipeline (prep → inference → verification → reconciliation → execution)
|
|
35
|
+
* - 'update': Skip verification if no new intents (prep → inference → reconciliation → execution)
|
|
36
|
+
* - 'delete': Skip inference and verification (prep → reconciliation → execution)
|
|
37
|
+
* - 'read': Fast path (prep → queryNode → END) — reads intents without LLM calls
|
|
38
|
+
* - 'propose': Inference + verification only, stops before reconciliation (no DB writes)
|
|
39
|
+
*
|
|
40
|
+
* Defaults to 'create' for backward compatibility.
|
|
41
|
+
*/
|
|
42
|
+
operationMode: Annotation({
|
|
43
|
+
reducer: (curr, next) => next ?? curr,
|
|
44
|
+
default: () => 'create',
|
|
45
|
+
}),
|
|
46
|
+
/**
|
|
47
|
+
* For update/delete operations, specifies which intent IDs to target.
|
|
48
|
+
* Optional - used when modifying or removing specific intents.
|
|
49
|
+
*/
|
|
50
|
+
targetIntentIds: Annotation({
|
|
51
|
+
reducer: (curr, next) => next ?? curr,
|
|
52
|
+
default: () => undefined,
|
|
53
|
+
}),
|
|
54
|
+
/**
|
|
55
|
+
* Optional index scope (index ID). Used for linking created intents to an index
|
|
56
|
+
* and for scoping read operations. Prep always fetches ALL user intents via
|
|
57
|
+
* getActiveIntents(userId) regardless of index scope (for global dedup/reconciliation).
|
|
58
|
+
*/
|
|
59
|
+
indexId: Annotation({
|
|
60
|
+
reducer: (curr, next) => next ?? curr,
|
|
61
|
+
default: () => undefined,
|
|
62
|
+
}),
|
|
63
|
+
// --- Populated by Graph (Prep Node) ---
|
|
64
|
+
/**
|
|
65
|
+
* The formatted string of currently active intents.
|
|
66
|
+
* Always populated by prep via getActiveIntents(userId).
|
|
67
|
+
*/
|
|
68
|
+
activeIntents: Annotation({
|
|
69
|
+
reducer: (curr, next) => next,
|
|
70
|
+
default: () => "",
|
|
71
|
+
}),
|
|
72
|
+
// --- Intermediate State ---
|
|
73
|
+
/**
|
|
74
|
+
* List of raw intents extracted from text.
|
|
75
|
+
*/
|
|
76
|
+
inferredIntents: Annotation({
|
|
77
|
+
reducer: (curr, next) => next, // Overwrite with new inference
|
|
78
|
+
default: () => [],
|
|
79
|
+
}),
|
|
80
|
+
/**
|
|
81
|
+
* List of intents that have passed semantic verification.
|
|
82
|
+
* Invalid intents are filtered out before reaching this state.
|
|
83
|
+
*/
|
|
84
|
+
verifiedIntents: Annotation({
|
|
85
|
+
reducer: (curr, next) => next,
|
|
86
|
+
default: () => [],
|
|
87
|
+
}),
|
|
88
|
+
// --- Output ---
|
|
89
|
+
/**
|
|
90
|
+
* Final actions to be performed on the DB (Create, Update, Expire).
|
|
91
|
+
*/
|
|
92
|
+
actions: Annotation({
|
|
93
|
+
reducer: (curr, next) => next,
|
|
94
|
+
default: () => [],
|
|
95
|
+
}),
|
|
96
|
+
/**
|
|
97
|
+
* Results of executing actions against the database.
|
|
98
|
+
* Populated by executorNode after actions are persisted.
|
|
99
|
+
*/
|
|
100
|
+
executionResults: Annotation({
|
|
101
|
+
reducer: (curr, next) => next,
|
|
102
|
+
default: () => [],
|
|
103
|
+
}),
|
|
104
|
+
// --- Error State ---
|
|
105
|
+
/**
|
|
106
|
+
* If set, indicates a fatal error that should short-circuit the graph to END.
|
|
107
|
+
* Populated by prep when a precondition fails (e.g. missing profile).
|
|
108
|
+
*/
|
|
109
|
+
error: Annotation({
|
|
110
|
+
reducer: (curr, next) => next ?? curr,
|
|
111
|
+
default: () => undefined,
|
|
112
|
+
}),
|
|
113
|
+
// --- Trace Output ---
|
|
114
|
+
/**
|
|
115
|
+
* Accumulated trace entries from each graph node.
|
|
116
|
+
* Used for observability: surfaces internal processing steps (inference,
|
|
117
|
+
* verification with Felicity scores, reconciliation) to the frontend.
|
|
118
|
+
*/
|
|
119
|
+
trace: Annotation({
|
|
120
|
+
reducer: (curr, next) => [...curr, ...(next || [])],
|
|
121
|
+
default: () => [],
|
|
122
|
+
}),
|
|
123
|
+
/** Timing records for each agent invocation within this graph run. */
|
|
124
|
+
agentTimings: Annotation({
|
|
125
|
+
reducer: (acc, val) => [...acc, ...val],
|
|
126
|
+
default: () => [],
|
|
127
|
+
}),
|
|
128
|
+
// --- Read Mode Fields ---
|
|
129
|
+
/**
|
|
130
|
+
* For read mode: filter intents by a specific user when reading in an index.
|
|
131
|
+
* When omitted and index-scoped, returns all intents in the index.
|
|
132
|
+
*/
|
|
133
|
+
queryUserId: Annotation({
|
|
134
|
+
reducer: (curr, next) => next ?? curr,
|
|
135
|
+
default: () => undefined,
|
|
136
|
+
}),
|
|
137
|
+
/**
|
|
138
|
+
* For read mode: when true, return all of the current user's intents
|
|
139
|
+
* ignoring index scope. Used before create_intent to detect duplicates.
|
|
140
|
+
*/
|
|
141
|
+
allUserIntents: Annotation({
|
|
142
|
+
reducer: (curr, next) => next ?? curr,
|
|
143
|
+
default: () => false,
|
|
144
|
+
}),
|
|
145
|
+
/**
|
|
146
|
+
* Output of read mode: queried intents with count and optional metadata.
|
|
147
|
+
*/
|
|
148
|
+
readResult: Annotation({
|
|
149
|
+
reducer: (curr, next) => next,
|
|
150
|
+
default: () => undefined,
|
|
151
|
+
}),
|
|
152
|
+
});
|
|
153
|
+
//# sourceMappingURL=intent.state.js.map
|
|
@@ -0,0 +1 @@
|
|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,CAAmB;QACzC,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,GAAG,CAAC;QACvC,OAAO,EAAE,GAAG,EAAE,CAAC,EAAE;KAClB,CAAC;IAEF,2BAA2B;IAE3B;;;OAGG;IACH,WAAW,EAAE,UAAU,CAAqB;QAC1C,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,IAAI,IAAI;QACrC,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS;KACzB,CAAC;IAEF;;;OAGG;IACH,cAAc,EAAE,UAAU,CAAU;QAClC,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,IAAI,IAAI;QACrC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACrB,CAAC;IAEF;;OAEG;IACH,UAAU,EAAE,UAAU,CAYP;QACb,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI;QAC7B,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS;KACzB,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import type { DebugMetaAgent } from '../types/chat-streaming.types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Intent payload and metadata loaded for index evaluation.
|
|
4
|
+
* (Migrated from the old index.graph.state.ts)
|
|
5
|
+
*/
|
|
6
|
+
export interface IntentForIndexing {
|
|
7
|
+
id: string;
|
|
8
|
+
payload: string;
|
|
9
|
+
userId: string;
|
|
10
|
+
sourceType: string | null;
|
|
11
|
+
sourceId: string | null;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Index and member prompts for a single index (user must be member with autoAssign).
|
|
15
|
+
* (Migrated from the old index.graph.state.ts)
|
|
16
|
+
*/
|
|
17
|
+
export interface IndexMemberContext {
|
|
18
|
+
indexId: string;
|
|
19
|
+
indexPrompt: string | null;
|
|
20
|
+
memberPrompt: string | null;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Result of executing an assignment decision.
|
|
24
|
+
* (Migrated from the old index.graph.state.ts)
|
|
25
|
+
*/
|
|
26
|
+
export interface AssignmentResult {
|
|
27
|
+
indexId: string;
|
|
28
|
+
assigned: boolean;
|
|
29
|
+
success: boolean;
|
|
30
|
+
error?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Intent Index Graph State.
|
|
34
|
+
* Handles CRUD for the intent_indexes junction table (linking intents to indexes).
|
|
35
|
+
* Absorbs the old Index Graph's evaluate-based assignment flow.
|
|
36
|
+
*
|
|
37
|
+
* Flow:
|
|
38
|
+
* START → router → {
|
|
39
|
+
* create: assignNode (direct or evaluated) → END
|
|
40
|
+
* read: readNode → END
|
|
41
|
+
* delete: unassignNode → END
|
|
42
|
+
* }
|
|
43
|
+
*/
|
|
44
|
+
export declare const IntentIndexGraphState: import("@langchain/langgraph").AnnotationRoot<{
|
|
45
|
+
/** User performing the action. Always required. */
|
|
46
|
+
userId: {
|
|
47
|
+
(annotation: import("@langchain/langgraph").SingleReducer<string, string>): import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
48
|
+
(): import("@langchain/langgraph").LastValue<string>;
|
|
49
|
+
Root: <S extends import("@langchain/langgraph").StateDefinition>(sd: S) => import("@langchain/langgraph").AnnotationRoot<S>;
|
|
50
|
+
};
|
|
51
|
+
/** Target index for assign/read-by-index. From ChatGraph or tool arg. */
|
|
52
|
+
indexId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
53
|
+
/** Target intent for assign/read-by-intent. From tool arg. */
|
|
54
|
+
intentId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
55
|
+
/** Operation mode. */
|
|
56
|
+
operationMode: import("@langchain/langgraph").BaseChannel<"create" | "delete" | "read", "create" | "delete" | "read" | import("@langchain/langgraph").OverwriteValue<"create" | "delete" | "read">, unknown>;
|
|
57
|
+
/**
|
|
58
|
+
* When true, skip LLM evaluation and assign directly.
|
|
59
|
+
* (Migrated from old Index Graph.)
|
|
60
|
+
*/
|
|
61
|
+
skipEvaluation: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
62
|
+
/** Intent payload and metadata. Null if intent not found. */
|
|
63
|
+
intent: import("@langchain/langgraph").BaseChannel<IntentForIndexing | null, IntentForIndexing | import("@langchain/langgraph").OverwriteValue<IntentForIndexing | null> | null, unknown>;
|
|
64
|
+
/** Index + member context. Null if user not eligible. */
|
|
65
|
+
indexContext: import("@langchain/langgraph").BaseChannel<IndexMemberContext | null, IndexMemberContext | import("@langchain/langgraph").OverwriteValue<IndexMemberContext | null> | null, unknown>;
|
|
66
|
+
/** LLM evaluation result. Null if skipped. */
|
|
67
|
+
evaluation: import("@langchain/langgraph").BaseChannel<{
|
|
68
|
+
reasoning: string;
|
|
69
|
+
indexScore: number;
|
|
70
|
+
memberScore: number;
|
|
71
|
+
} | null, {
|
|
72
|
+
reasoning: string;
|
|
73
|
+
indexScore: number;
|
|
74
|
+
memberScore: number;
|
|
75
|
+
} | import("@langchain/langgraph").OverwriteValue<{
|
|
76
|
+
reasoning: string;
|
|
77
|
+
indexScore: number;
|
|
78
|
+
memberScore: number;
|
|
79
|
+
} | null> | null, unknown>;
|
|
80
|
+
/** Final decision: should intent be in this index? */
|
|
81
|
+
shouldAssign: import("@langchain/langgraph").BaseChannel<boolean | undefined, boolean | import("@langchain/langgraph").OverwriteValue<boolean | undefined> | undefined, unknown>;
|
|
82
|
+
/** Final score used for decision (0–1). */
|
|
83
|
+
finalScore: import("@langchain/langgraph").BaseChannel<number | undefined, number | import("@langchain/langgraph").OverwriteValue<number | undefined> | undefined, unknown>;
|
|
84
|
+
/** Result of the assignment operation. */
|
|
85
|
+
assignmentResult: import("@langchain/langgraph").BaseChannel<AssignmentResult | null, AssignmentResult | import("@langchain/langgraph").OverwriteValue<AssignmentResult | null> | null, unknown>;
|
|
86
|
+
/** For read-by-intent: pass userId when listing an intent's indexes (omit for read-by-index). */
|
|
87
|
+
queryUserId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
88
|
+
/** Output for read mode. */
|
|
89
|
+
readResult: import("@langchain/langgraph").BaseChannel<{
|
|
90
|
+
links: Array<{
|
|
91
|
+
intentId: string;
|
|
92
|
+
indexId: string;
|
|
93
|
+
intentTitle?: string;
|
|
94
|
+
indexTitle?: string;
|
|
95
|
+
userId?: string;
|
|
96
|
+
userName?: string;
|
|
97
|
+
createdAt?: Date;
|
|
98
|
+
}>;
|
|
99
|
+
count: number;
|
|
100
|
+
mode: string;
|
|
101
|
+
note?: string;
|
|
102
|
+
} | undefined, {
|
|
103
|
+
links: Array<{
|
|
104
|
+
intentId: string;
|
|
105
|
+
indexId: string;
|
|
106
|
+
intentTitle?: string;
|
|
107
|
+
indexTitle?: string;
|
|
108
|
+
userId?: string;
|
|
109
|
+
userName?: string;
|
|
110
|
+
createdAt?: Date;
|
|
111
|
+
}>;
|
|
112
|
+
count: number;
|
|
113
|
+
mode: string;
|
|
114
|
+
note?: string;
|
|
115
|
+
} | import("@langchain/langgraph").OverwriteValue<{
|
|
116
|
+
links: Array<{
|
|
117
|
+
intentId: string;
|
|
118
|
+
indexId: string;
|
|
119
|
+
intentTitle?: string;
|
|
120
|
+
indexTitle?: string;
|
|
121
|
+
userId?: string;
|
|
122
|
+
userName?: string;
|
|
123
|
+
createdAt?: Date;
|
|
124
|
+
}>;
|
|
125
|
+
count: number;
|
|
126
|
+
mode: string;
|
|
127
|
+
note?: string;
|
|
128
|
+
} | undefined> | undefined, unknown>;
|
|
129
|
+
/** Output for create/delete modes. */
|
|
130
|
+
mutationResult: import("@langchain/langgraph").BaseChannel<{
|
|
131
|
+
success: boolean;
|
|
132
|
+
message?: string;
|
|
133
|
+
error?: string;
|
|
134
|
+
} | undefined, {
|
|
135
|
+
success: boolean;
|
|
136
|
+
message?: string;
|
|
137
|
+
error?: string;
|
|
138
|
+
} | import("@langchain/langgraph").OverwriteValue<{
|
|
139
|
+
success: boolean;
|
|
140
|
+
message?: string;
|
|
141
|
+
error?: string;
|
|
142
|
+
} | undefined> | undefined, unknown>;
|
|
143
|
+
/** Error message. */
|
|
144
|
+
error: import("@langchain/langgraph").BaseChannel<string | null, string | import("@langchain/langgraph").OverwriteValue<string | null> | null, unknown>;
|
|
145
|
+
/** Timing records for each agent invocation within this graph run. */
|
|
146
|
+
agentTimings: import("@langchain/langgraph").BaseChannel<DebugMetaAgent[], DebugMetaAgent[] | import("@langchain/langgraph").OverwriteValue<DebugMetaAgent[]>, unknown>;
|
|
147
|
+
}>;
|
|
148
|
+
//# sourceMappingURL=intent_index.state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intent_index.state.d.ts","sourceRoot":"","sources":["../../src/states/intent_index.state.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAEvE;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IA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AS,CAAC,EAAE,IAAI,CAAC;SAClB,CAAC;eACK,MAAM;cACP,MAAM;eACL,MAAM;;IAMf,sCAAsC;;iBAE3B,OAAO;kBACN,MAAM;gBACR,MAAM;;iBAFL,OAAO;kBACN,MAAM;gBACR,MAAM;;iBAFL,OAAO;kBACN,MAAM;gBACR,MAAM;;IAMhB,qBAAqB;;IAMrB,sEAAsE;;EAKtE,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { Annotation } from "@langchain/langgraph";
|
|
2
|
+
/**
|
|
3
|
+
* Intent Index Graph State.
|
|
4
|
+
* Handles CRUD for the intent_indexes junction table (linking intents to indexes).
|
|
5
|
+
* Absorbs the old Index Graph's evaluate-based assignment flow.
|
|
6
|
+
*
|
|
7
|
+
* Flow:
|
|
8
|
+
* START → router → {
|
|
9
|
+
* create: assignNode (direct or evaluated) → END
|
|
10
|
+
* read: readNode → END
|
|
11
|
+
* delete: unassignNode → END
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export const IntentIndexGraphState = Annotation.Root({
|
|
15
|
+
// --- Core Inputs (from ChatGraph via ToolContext) ---
|
|
16
|
+
/** User performing the action. Always required. */
|
|
17
|
+
userId: (Annotation),
|
|
18
|
+
/** Target index for assign/read-by-index. From ChatGraph or tool arg. */
|
|
19
|
+
indexId: Annotation({
|
|
20
|
+
reducer: (_, next) => next,
|
|
21
|
+
default: () => undefined,
|
|
22
|
+
}),
|
|
23
|
+
/** Target intent for assign/read-by-intent. From tool arg. */
|
|
24
|
+
intentId: Annotation({
|
|
25
|
+
reducer: (_, next) => next,
|
|
26
|
+
default: () => undefined,
|
|
27
|
+
}),
|
|
28
|
+
/** Operation mode. */
|
|
29
|
+
operationMode: Annotation({
|
|
30
|
+
reducer: (curr, next) => next ?? curr,
|
|
31
|
+
default: () => 'read',
|
|
32
|
+
}),
|
|
33
|
+
// --- Create Mode Controls ---
|
|
34
|
+
/**
|
|
35
|
+
* When true, skip LLM evaluation and assign directly.
|
|
36
|
+
* (Migrated from old Index Graph.)
|
|
37
|
+
*/
|
|
38
|
+
skipEvaluation: Annotation({
|
|
39
|
+
reducer: (_, next) => next,
|
|
40
|
+
default: () => true,
|
|
41
|
+
}),
|
|
42
|
+
// --- Intermediate State (populated by nodes, migrated from old Index Graph) ---
|
|
43
|
+
/** Intent payload and metadata. Null if intent not found. */
|
|
44
|
+
intent: Annotation({
|
|
45
|
+
reducer: (_, next) => next,
|
|
46
|
+
default: () => null,
|
|
47
|
+
}),
|
|
48
|
+
/** Index + member context. Null if user not eligible. */
|
|
49
|
+
indexContext: Annotation({
|
|
50
|
+
reducer: (_, next) => next,
|
|
51
|
+
default: () => null,
|
|
52
|
+
}),
|
|
53
|
+
/** LLM evaluation result. Null if skipped. */
|
|
54
|
+
evaluation: Annotation({
|
|
55
|
+
reducer: (_, next) => next,
|
|
56
|
+
default: () => null,
|
|
57
|
+
}),
|
|
58
|
+
/** Final decision: should intent be in this index? */
|
|
59
|
+
shouldAssign: Annotation({
|
|
60
|
+
reducer: (_, next) => next,
|
|
61
|
+
default: () => undefined,
|
|
62
|
+
}),
|
|
63
|
+
/** Final score used for decision (0–1). */
|
|
64
|
+
finalScore: Annotation({
|
|
65
|
+
reducer: (_, next) => next,
|
|
66
|
+
default: () => undefined,
|
|
67
|
+
}),
|
|
68
|
+
/** Result of the assignment operation. */
|
|
69
|
+
assignmentResult: Annotation({
|
|
70
|
+
reducer: (_, next) => next,
|
|
71
|
+
default: () => null,
|
|
72
|
+
}),
|
|
73
|
+
// --- Read Mode Outputs ---
|
|
74
|
+
/** For read-by-intent: pass userId when listing an intent's indexes (omit for read-by-index). */
|
|
75
|
+
queryUserId: Annotation({
|
|
76
|
+
reducer: (_, next) => next,
|
|
77
|
+
default: () => undefined,
|
|
78
|
+
}),
|
|
79
|
+
/** Output for read mode. */
|
|
80
|
+
readResult: Annotation({
|
|
81
|
+
reducer: (_, next) => next,
|
|
82
|
+
default: () => undefined,
|
|
83
|
+
}),
|
|
84
|
+
/** Output for create/delete modes. */
|
|
85
|
+
mutationResult: Annotation({
|
|
86
|
+
reducer: (_, next) => next,
|
|
87
|
+
default: () => undefined,
|
|
88
|
+
}),
|
|
89
|
+
/** Error message. */
|
|
90
|
+
error: Annotation({
|
|
91
|
+
reducer: (_, next) => next,
|
|
92
|
+
default: () => null,
|
|
93
|
+
}),
|
|
94
|
+
/** Timing records for each agent invocation within this graph run. */
|
|
95
|
+
agentTimings: Annotation({
|
|
96
|
+
reducer: (acc, val) => [...acc, ...val],
|
|
97
|
+
default: () => [],
|
|
98
|
+
}),
|
|
99
|
+
});
|
|
100
|
+
//# sourceMappingURL=intent_index.state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intent_index.state.js","sourceRoot":"","sources":["../../src/states/intent_index.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAqClD;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,UAAU,CAAC,IAAI,CAAC;IACnD,uDAAuD;IAEvD,mDAAmD;IACnD,MAAM,EAAE,CAAA,UAAkB,CAAA;IAE1B,yEAAyE;IACzE,OAAO,EAAE,UAAU,CAAqB;QACtC,OAAO,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI;QAC1B,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS;KACzB,CAAC;IAEF,8DAA8D;IAC9D,QAAQ,EAAE,UAAU,CAAqB;QACvC,OAAO,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI;QAC1B,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS;KACzB,CAAC;IAEF,sBAAsB;IACtB,aAAa,EAAE,UAAU,CAA+B;QACtD,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,IAAI,IAAI;QACrC,OAAO,EAAE,GAAG,EAAE,CAAC,MAAe;KA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