Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

432 B
Raw Blame
import { resolveConfiguredServiceProvider } from '../studio-service'
import type { ConnectionDraft } from '../connection/types'
import type { SessionHistorySource } from './api'

export function resolveSessionHistorySource(
  connection: ConnectionDraft,
): SessionHistorySource {
  return resolveConfiguredServiceProvider(
    connection.baseUrl,
    connection.serviceSelection,
  ) === 'volcengine'
    ? 'content'
    : 'api'
}