Skip to main content
Glama
index.ts1.23 kB
/** * Chat Context Optimization Services * * This module provides intelligent context management for chat conversations, * optimizing token usage while maintaining relevance and coherence. * * @module services/chat */ // Core services export { tokenEstimator, TokenEstimator, TokenEstimationStrategy } from './TokenEstimator.js'; export { embeddingService, EmbeddingService, EmbeddingProvider } from './EmbeddingService.js'; export { SpanRetriever, SpanRetrieverConfig, RetrievedSpan } from './SpanRetriever.js'; // Main builder export { chatContextBuilder, ChatContextBuilder, resolveChatContextConfig, DEFAULT_CHAT_CONTEXT_CONFIG, } from './ChatContextBuilder.js'; // Integration helpers export { buildContextForRequest, queueMessageEmbedding, saveAssistantResponse, backfillConversationEmbeddings, } from './integration.js'; // Utility functions export { chatContextUtils } from './utils.js'; // Types export type { ChatContextStrategy, ChatContextConfig, ContextMessage, BuildContextParams, BuildContextResult, } from './ChatContextBuilder.js'; export type { OpenAIMessage, ContextBuildRequest, ContextBuildResponse, } from './integration.js';

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/babasida246/ai-mcp-gateway'

If you have feedback or need assistance with the MCP directory API, please join our Discord server