@codeworksh/aikit 0.4.1-dev.20260530181036 → 0.4.1-dev.20260530184501

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/index.d.mts CHANGED
@@ -5453,13 +5453,13 @@ declare namespace Model {
5453
5453
  openaiCompatible?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai" | undefined;
5454
5454
  } | undefined;
5455
5455
  protocol: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai";
5456
- id: string;
5457
5456
  name: string;
5457
+ id: string;
5458
5458
  provider: {
5459
5459
  key?: string | undefined;
5460
5460
  options?: Record<string, any> | undefined;
5461
- id: string;
5462
5461
  name: string;
5462
+ id: string;
5463
5463
  source: "env" | "config" | "custom" | "api" | "unknown";
5464
5464
  env: string[];
5465
5465
  };
@@ -5478,58 +5478,7 @@ declare namespace Model {
5478
5478
  reset(): void;
5479
5479
  };
5480
5480
  function supportsProtocol(model: Info, protocol: KnownProviderEnum): boolean;
5481
- function getModel<TProvider extends string, TModel extends Info["id"]>(provider: TProvider, model: TModel, overrides?: Partial<Info>): Promise<{
5482
- api?: {
5483
- id?: string | undefined;
5484
- url?: string | undefined;
5485
- method?: "messages" | "languageModel" | "chat" | "completion" | "completionModel" | "responses" | undefined;
5486
- } | undefined;
5487
- options?: Record<string, unknown> | undefined;
5488
- headers?: Record<string, string> | undefined;
5489
- thinkingLevelMap?: {
5490
- off?: string | null | undefined;
5491
- minimal?: string | null | undefined;
5492
- low?: string | null | undefined;
5493
- medium?: string | null | undefined;
5494
- high?: string | null | undefined;
5495
- xhigh?: string | null | undefined;
5496
- } | undefined;
5497
- npm?: string | undefined;
5498
- providerOptionsKey?: string | undefined;
5499
- providerOptions?: Record<string, unknown> | undefined;
5500
- supportedProtocols?: {
5501
- anthropic?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai" | undefined;
5502
- google?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai" | undefined;
5503
- openai?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai" | undefined;
5504
- openrouter?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai" | undefined;
5505
- xai?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai" | undefined;
5506
- googleVertex?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai" | undefined;
5507
- googleVertexAnthropic?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai" | undefined;
5508
- openaiCompatible?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai" | undefined;
5509
- } | undefined;
5510
- protocol: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai";
5511
- id: string;
5512
- name: string;
5513
- provider: {
5514
- key?: string | undefined;
5515
- options?: Record<string, any> | undefined;
5516
- id: string;
5517
- name: string;
5518
- source: "env" | "config" | "custom" | "api" | "unknown";
5519
- env: string[];
5520
- };
5521
- input: ("text" | "image")[];
5522
- cost: {
5523
- input: number;
5524
- output: number;
5525
- cacheRead: number;
5526
- cacheWrite: number;
5527
- };
5528
- maxTokens: number;
5529
- baseUrl: string;
5530
- reasoning: boolean;
5531
- contextWindow: number;
5532
- } | undefined>;
5481
+ function getModel<TProvider extends string, TModel extends Info["id"]>(provider: TProvider, model: TModel, overrides?: Partial<Info>): Promise<Info | undefined>;
5533
5482
  function getProviders(): Promise<string[]>;
5534
5483
  function getModels<TProvider extends string>(provider: TProvider): Promise<Info[]>;
5535
5484
  /**
@@ -7131,7 +7080,9 @@ declare namespace Protocol {
7131
7080
  export function resolveProtocolProvider(model: Model.Info): AnyRegisteredProtocol;
7132
7081
  export function getProtocolProviders(): AnyRegisteredProtocol[];
7133
7082
  export function stream<TProtocol extends ProtocolWithOptions>(model: Model.TModel<TProtocol>, context: Message.Context, options?: OptionsFor<TProtocol>): AssistantMessageEventStream;
7083
+ export function stream(model: Model.Info, context: Message.Context, options?: CommonOptions): AssistantMessageEventStream;
7134
7084
  export function complete<TProtocol extends ProtocolWithOptions>(model: Model.TModel<TProtocol>, context: Message.Context, options?: OptionsFor<TProtocol>): Promise<Message.AssistantMessage>;
7085
+ export function complete(model: Model.Info, context: Message.Context, options?: CommonOptions): Promise<Message.AssistantMessage>;
7135
7086
  export function unregisterProtocolProviders(sourceId: string): void;
7136
7087
  export function clearProtocolProviders(): void;
7137
7088
  export {};
@@ -7165,6 +7116,7 @@ declare namespace Protocol {
7165
7116
  */
7166
7117
  type StreamCallable = {
7167
7118
  <TProtocol extends Protocol.ProtocolWithOptions>(model: Model.TModel<TProtocol>, context: Message.Context, options?: Protocol.OptionsFor<TProtocol>): AssistantMessageEventStream;
7119
+ (model: Model.Info, context: Message.Context, options?: Protocol.CommonOptions): AssistantMessageEventStream;
7168
7120
  complete: typeof Protocol.complete;
7169
7121
  resolveProtocolProvider: typeof Protocol.resolveProtocolProvider;
7170
7122
  };