@charivo/core 0.35.0 → 0.36.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.cts CHANGED
@@ -200,10 +200,7 @@ interface LLMToolResponse {
200
200
  toolCalls?: LLMToolCall[];
201
201
  }
202
202
  interface LLMProvider {
203
- generateResponse(messages: Array<{
204
- role: string;
205
- content: string;
206
- }>): Promise<string>;
203
+ generateResponse(messages: LLMMessage[]): Promise<string>;
207
204
  /** Tool-calling variant; providers that support function calling implement this alongside generateResponse. */
208
205
  generateResponseWithTools?(messages: LLMMessage[], tools: ToolDefinition[]): Promise<LLMToolResponse>;
209
206
  }
@@ -215,10 +212,7 @@ interface LLMCallOptions {
215
212
  signal?: AbortSignal;
216
213
  }
217
214
  interface LLMClient {
218
- call(messages: Array<{
219
- role: string;
220
- content: string;
221
- }>, options?: LLMCallOptions): Promise<string>;
215
+ call(messages: LLMMessage[], options?: LLMCallOptions): Promise<string>;
222
216
  /** Tool-calling variant; clients that support function calling implement this alongside call. */
223
217
  callWithTools?(messages: LLMMessage[], tools: ToolDefinition[], options?: LLMCallOptions): Promise<LLMToolResponse>;
224
218
  }
package/dist/index.d.ts CHANGED
@@ -200,10 +200,7 @@ interface LLMToolResponse {
200
200
  toolCalls?: LLMToolCall[];
201
201
  }
202
202
  interface LLMProvider {
203
- generateResponse(messages: Array<{
204
- role: string;
205
- content: string;
206
- }>): Promise<string>;
203
+ generateResponse(messages: LLMMessage[]): Promise<string>;
207
204
  /** Tool-calling variant; providers that support function calling implement this alongside generateResponse. */
208
205
  generateResponseWithTools?(messages: LLMMessage[], tools: ToolDefinition[]): Promise<LLMToolResponse>;
209
206
  }
@@ -215,10 +212,7 @@ interface LLMCallOptions {
215
212
  signal?: AbortSignal;
216
213
  }
217
214
  interface LLMClient {
218
- call(messages: Array<{
219
- role: string;
220
- content: string;
221
- }>, options?: LLMCallOptions): Promise<string>;
215
+ call(messages: LLMMessage[], options?: LLMCallOptions): Promise<string>;
222
216
  /** Tool-calling variant; clients that support function calling implement this alongside call. */
223
217
  callWithTools?(messages: LLMMessage[], tools: ToolDefinition[], options?: LLMCallOptions): Promise<LLMToolResponse>;
224
218
  }