@standardagents/openrouter 0.44.1 → 0.45.0

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/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { LLMProviderInterface, ProviderFactoryConfig, ToolDefinition, ToolArgs, ToolTenvs, ModelCapabilities, ProviderModelInfo, ProviderRequest, ProviderResponse, ProviderStreamChunk, ResponseSummary, InspectedRequest, ProviderFactoryWithOptions } from '@standardagents/spec';
1
+ import { LLMProviderInterface, ProviderFactoryConfig, ModelCapabilities, ProviderModelInfo, ProviderRequest, ProviderResponse, ProviderStreamChunk, ResponseSummary, InspectedRequest, ProviderFactoryWithOptions } from '@standardagents/spec';
2
2
  import { z } from 'zod';
3
3
 
4
4
  /**
@@ -160,7 +160,7 @@ declare class OpenRouterProvider implements LLMProviderInterface {
160
160
  private toSdkResponsesRequest;
161
161
  private throwOpenRouterFetchError;
162
162
  supportsModel(_modelId: string): boolean;
163
- getTools(_modelId?: string): Record<string, ToolDefinition<any, ToolArgs | null, ToolTenvs | null>>;
163
+ getTools(_modelId?: string): Awaited<ReturnType<NonNullable<LLMProviderInterface['getTools']>>>;
164
164
  /**
165
165
  * Get the icon for a model as a data URI.
166
166
  * Extracts the AI lab/organization from the model ID prefix and returns
@@ -243,6 +243,12 @@ declare class OpenRouterProvider implements LLMProviderInterface {
243
243
  inspectRequest(request: ProviderRequest): Promise<InspectedRequest>;
244
244
  }
245
245
 
246
+ /**
247
+ * Discrete transformer functions for OpenRouter Responses API provider.
248
+ * These functions convert between Standard Agent types and OpenRouter Responses API types.
249
+ * Kept as pure functions for easy testing.
250
+ */
251
+
246
252
  /**
247
253
  * Generation metadata returned by OpenRouter's /api/v1/generation endpoint.
248
254
  * Contains accurate usage, cost, and provider information.