llm-fns 1.0.9 → 1.0.10

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.
@@ -27,3 +27,4 @@ export declare function createJsonSchemaLlmClient(params: CreateJsonSchemaLlmCli
27
27
  isPromptJsonCached: (messages: OpenAI.Chat.Completions.ChatCompletionMessageParam[], schema: Record<string, any>, options?: JsonSchemaLlmClientOptions) => Promise<boolean>;
28
28
  };
29
29
  export type JsonSchemaClient = ReturnType<typeof createJsonSchemaLlmClient>;
30
+ export type PromptJsonFunction = JsonSchemaClient['promptJson'];
@@ -45,3 +45,4 @@ export declare function createLlmRetryClient(params: CreateLlmRetryClientParams)
45
45
  <T = Buffer<ArrayBufferLike>>(options: LlmRetryOptions<T>): Promise<T>;
46
46
  };
47
47
  };
48
+ export type LlmRetryClient = ReturnType<typeof createLlmRetryClient>;
@@ -26,3 +26,5 @@ export declare function createZodLlmClient(params: CreateZodLlmClientParams): {
26
26
  <T extends ZodTypeAny>(mainInstruction: string, userMessagePayload: string | OpenAI.Chat.Completions.ChatCompletionContentPart[], dataExtractionSchema: T, options?: ZodLlmClientOptions): Promise<boolean>;
27
27
  };
28
28
  };
29
+ export type ZodLlmClient = ReturnType<typeof createZodLlmClient>;
30
+ export type PromptZodFunction = ZodLlmClient['promptZod'];
@@ -45,3 +45,4 @@ export declare function createLlm(params: CreateLlmFactoryParams): {
45
45
  (options: import("./createLlmClient.js").LlmPromptOptions): Promise<Buffer>;
46
46
  };
47
47
  };
48
+ export type LlmClient = ReturnType<typeof createLlm>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "llm-fns",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",