veryfront 0.0.6 → 0.0.7
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/ai/client.d.ts +2 -0
- package/dist/ai/components.d.ts +11 -0
- package/dist/ai/dev.d.ts +7 -0
- package/dist/ai/index.d.ts +40 -0
- package/dist/ai/index.js +1 -1
- package/dist/ai/index.js.map +1 -1
- package/dist/ai/primitives.d.ts +29 -0
- package/dist/ai/production.d.ts +13 -0
- package/dist/ai/react.d.ts +3 -0
- package/dist/cli.js +22 -23
- package/dist/components.d.ts +33 -0
- package/dist/components.js +1 -1
- package/dist/components.js.map +1 -1
- package/dist/config.d.ts +23 -0
- package/dist/data.d.ts +21 -0
- package/dist/data.js +1 -1
- package/dist/data.js.map +1 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +2 -2
- package/package.json +25 -5
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// AI styled components type definitions
|
|
2
|
+
import type { ReactNode, HTMLAttributes } from 'react';
|
|
3
|
+
import type { UseChatHelpers } from '@ai-sdk/react';
|
|
4
|
+
|
|
5
|
+
export interface ChatProps extends Partial<UseChatHelpers> {
|
|
6
|
+
className?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
welcomeMessage?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export declare function Chat(props: ChatProps): JSX.Element;
|
package/dist/ai/dev.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// AI module type definitions
|
|
2
|
+
import type { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
export interface AgentConfig {
|
|
5
|
+
model: string;
|
|
6
|
+
system?: string;
|
|
7
|
+
tools?: Record<string, boolean | object>;
|
|
8
|
+
memory?: {
|
|
9
|
+
type?: 'conversation' | 'summary' | 'buffer';
|
|
10
|
+
maxTokens?: number;
|
|
11
|
+
};
|
|
12
|
+
maxSteps?: number;
|
|
13
|
+
temperature?: number;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface ToolConfig<TInput = unknown, TOutput = unknown> {
|
|
17
|
+
description: string;
|
|
18
|
+
inputSchema: z.ZodType<TInput>;
|
|
19
|
+
execute: (input: TInput) => Promise<TOutput> | TOutput;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface ResourceConfig<TParams = unknown, TData = unknown> {
|
|
23
|
+
description: string;
|
|
24
|
+
paramsSchema?: z.ZodType<TParams>;
|
|
25
|
+
load: (params: TParams) => Promise<TData> | TData;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export declare function agent(config: AgentConfig): {
|
|
29
|
+
stream(options: { messages: Array<{ role: string; content: string }> }): {
|
|
30
|
+
toDataStreamResponse(): Response;
|
|
31
|
+
};
|
|
32
|
+
respond(request: Request): Promise<Response>;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export declare function tool<TInput, TOutput>(config: ToolConfig<TInput, TOutput>): ToolConfig<TInput, TOutput>;
|
|
36
|
+
|
|
37
|
+
export declare function resource<TParams, TData>(config: ResourceConfig<TParams, TData>): ResourceConfig<TParams, TData>;
|
|
38
|
+
|
|
39
|
+
// Re-export from ai-sdk
|
|
40
|
+
export * from 'ai';
|
package/dist/ai/index.js
CHANGED