Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

791 B
Raw Blame
import type { AgentKind, CustomProviderConfig, DeploymentProvider, DiscoveredModel, ProviderPreset } from '@cindy/model-providers';
import type { ProviderErrorCode } from './providerErrors.js';

export interface DetectionCatalog {
  ok: boolean;
  models?: DiscoveredModel[];
  code?: ProviderErrorCode;
  status?: number;
}
export interface DeploymentDetectionResult {
  candidates: DeploymentProvider[];
  reason: 'matched' | 'conflict' | 'insufficient_evidence' | 'budget_exhausted';
  catalog?: DetectionCatalog;
}
/** In-memory handoff only. Never persisted or logged. */
export interface DetectedProviderDraft {
  preset: ProviderPreset;
  agent: AgentKind;
  config: CustomProviderConfig;
  apiKey: string;
  keys?: Partial<Record<AgentKind, string>>;
  catalog?: DetectionCatalog;
}