gateway/types.ts

FinanceMCP · src/gateway/types.ts · typescript · MIT
ai

types.ts from guangxiangdebizi/FinanceMCP

// Source: https://github.com/guangxiangdebizi/FinanceMCP | License: MIT | Copyright 2025 guangxiangdebizi
// Provided via justclaw.it.com; keep this notice with the code.
export type GatewayProtocol = 'openai-responses' | 'openai-chat' | 'anthropic';

export type CacheProvider = 'openai' | 'anthropic' | 'deepseek' | 'generic' | 'none';

export interface GatewayClientConfig {
  tokenHash: string;
  tenantId: string;
  workspaceId: string;
  label?: string;
}

export interface GatewayCachePolicy {
  provider: CacheProvider;
  enabled?: boolean;
  mode?: 'automatic' | 'explicit';
  ttl?: '5m' | '1h' | '30m';
}

export interface GatewayHandoffPolicy {
  enabled?: boolean;
  autoResume?: boolean;
  resumeWindowMinutes?: number;
  maxMessages?: number;
  maxCharacters?: number;
}

export interf

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key