@baziapi/ai-tools 1.0.1 → 1.0.2
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 +7 -3
- package/dist/index.d.mts +7 -3
- package/dist/index.d.ts +7 -3
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as _baziapi_sdk from '@baziapi/sdk';
|
|
2
|
-
import { BaziClient } from '@baziapi/sdk';
|
|
3
1
|
import * as zod from 'zod';
|
|
4
2
|
import { z } from 'zod';
|
|
3
|
+
import { BaziClient } from '@baziapi/sdk';
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* @file openai/toolDefinition.ts
|
|
@@ -77,6 +76,11 @@ declare function executeOpenAIBaziCall(client: BaziClientLike, toolArgs: {
|
|
|
77
76
|
language?: 'en' | 'zh';
|
|
78
77
|
}): Promise<unknown>;
|
|
79
78
|
|
|
79
|
+
/**
|
|
80
|
+
* @file vercel-ai/baziTool.ts
|
|
81
|
+
* @description Vercel AI SDK (`ai`) tool helper for Next.js AI Chatbot & Agent applications.
|
|
82
|
+
*/
|
|
83
|
+
|
|
80
84
|
declare const baziToolSchema: z.ZodObject<{
|
|
81
85
|
birthDate: z.ZodString;
|
|
82
86
|
birthTime: z.ZodDefault<z.ZodString>;
|
|
@@ -139,7 +143,7 @@ declare function createBaziVercelTool(client: BaziClient): {
|
|
|
139
143
|
timezone?: string | undefined;
|
|
140
144
|
language?: "en" | "zh" | undefined;
|
|
141
145
|
}>;
|
|
142
|
-
execute: (args: BaziToolInput) => Promise<
|
|
146
|
+
execute: (args: BaziToolInput) => Promise<any>;
|
|
143
147
|
};
|
|
144
148
|
|
|
145
149
|
interface LangChainToolConfig {
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as _baziapi_sdk from '@baziapi/sdk';
|
|
2
|
-
import { BaziClient } from '@baziapi/sdk';
|
|
3
1
|
import * as zod from 'zod';
|
|
4
2
|
import { z } from 'zod';
|
|
3
|
+
import { BaziClient } from '@baziapi/sdk';
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* @file openai/toolDefinition.ts
|
|
@@ -77,6 +76,11 @@ declare function executeOpenAIBaziCall(client: BaziClientLike, toolArgs: {
|
|
|
77
76
|
language?: 'en' | 'zh';
|
|
78
77
|
}): Promise<unknown>;
|
|
79
78
|
|
|
79
|
+
/**
|
|
80
|
+
* @file vercel-ai/baziTool.ts
|
|
81
|
+
* @description Vercel AI SDK (`ai`) tool helper for Next.js AI Chatbot & Agent applications.
|
|
82
|
+
*/
|
|
83
|
+
|
|
80
84
|
declare const baziToolSchema: z.ZodObject<{
|
|
81
85
|
birthDate: z.ZodString;
|
|
82
86
|
birthTime: z.ZodDefault<z.ZodString>;
|
|
@@ -139,7 +143,7 @@ declare function createBaziVercelTool(client: BaziClient): {
|
|
|
139
143
|
timezone?: string | undefined;
|
|
140
144
|
language?: "en" | "zh" | undefined;
|
|
141
145
|
}>;
|
|
142
|
-
execute: (args: BaziToolInput) => Promise<
|
|
146
|
+
execute: (args: BaziToolInput) => Promise<any>;
|
|
143
147
|
};
|
|
144
148
|
|
|
145
149
|
interface LangChainToolConfig {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as _baziapi_sdk from '@baziapi/sdk';
|
|
2
|
-
import { BaziClient } from '@baziapi/sdk';
|
|
3
1
|
import * as zod from 'zod';
|
|
4
2
|
import { z } from 'zod';
|
|
3
|
+
import { BaziClient } from '@baziapi/sdk';
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* @file openai/toolDefinition.ts
|
|
@@ -77,6 +76,11 @@ declare function executeOpenAIBaziCall(client: BaziClientLike, toolArgs: {
|
|
|
77
76
|
language?: 'en' | 'zh';
|
|
78
77
|
}): Promise<unknown>;
|
|
79
78
|
|
|
79
|
+
/**
|
|
80
|
+
* @file vercel-ai/baziTool.ts
|
|
81
|
+
* @description Vercel AI SDK (`ai`) tool helper for Next.js AI Chatbot & Agent applications.
|
|
82
|
+
*/
|
|
83
|
+
|
|
80
84
|
declare const baziToolSchema: z.ZodObject<{
|
|
81
85
|
birthDate: z.ZodString;
|
|
82
86
|
birthTime: z.ZodDefault<z.ZodString>;
|
|
@@ -139,7 +143,7 @@ declare function createBaziVercelTool(client: BaziClient): {
|
|
|
139
143
|
timezone?: string | undefined;
|
|
140
144
|
language?: "en" | "zh" | undefined;
|
|
141
145
|
}>;
|
|
142
|
-
execute: (args: BaziToolInput) => Promise<
|
|
146
|
+
execute: (args: BaziToolInput) => Promise<any>;
|
|
143
147
|
};
|
|
144
148
|
|
|
145
149
|
interface LangChainToolConfig {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baziapi/ai-tools",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Official AI Agent and LLM Function Calling Tools for BaZi API (OpenAI, LangChain, Vercel AI SDK)",
|
|
5
5
|
"author": "Md. Nasir Uddin Shoyas",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"README.md"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@baziapi/sdk": "
|
|
26
|
+
"@baziapi/sdk": "^1.0.2"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"zod": "^3.0.0"
|