ttc-ai-chat-sdk 1.4.7 → 1.4.8

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +10 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -25,6 +25,11 @@ export interface ModuleFunctionConfig {
25
25
  inputSchema?: ZodSchema<any>;
26
26
  /** Zod schema for output validation */
27
27
  outputSchema?: ZodSchema<any>;
28
+ /** set this to true to specify this function as an image function
29
+ * return type must be either array of strings or a string
30
+ * value can be image urls or base64 encoded images
31
+ */
32
+ image?: boolean;
28
33
  /** The function implementation */
29
34
  func: (...args: any[]) => Promise<any>;
30
35
  }
@@ -47,6 +52,11 @@ export interface DescribeConfig {
47
52
  outputSchema?: ZodSchema<any>;
48
53
  /** Whether to validate input against the schema */
49
54
  validate?: boolean;
55
+ /** set this to true to specify this function as an image function
56
+ * return type must be either array of strings or a string
57
+ * value can be image urls or base64 encoded images
58
+ */
59
+ image?: boolean;
50
60
  }
51
61
  export type DescribeDecorator = (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
52
62
  export interface ChatMessage {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ttc-ai-chat-sdk",
3
- "version": "1.4.7",
3
+ "version": "1.4.8",
4
4
  "description": "TypeScript client sdk for TTC AI services with decorators and schema validation.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",