mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-28 05:14:08 +01:00
feat: add schemas and types
This commit is contained in:
parent
d91f34dd42
commit
c0ae6f277f
3 changed files with 9 additions and 2 deletions
|
|
@ -9,10 +9,10 @@ import type {
|
|||
TConversationTag,
|
||||
TAttachment,
|
||||
} from './schemas';
|
||||
import type { Agent, AgentToolResources } from './types/assistants';
|
||||
import type { SettingDefinition } from './generate';
|
||||
import type { TMinimalFeedback } from './feedback';
|
||||
import type { ContentTypes } from './types/runs';
|
||||
import type { Agent } from './types/assistants';
|
||||
|
||||
export * from './schemas';
|
||||
|
||||
|
|
@ -499,6 +499,7 @@ export type TPrompt = {
|
|||
author: string;
|
||||
prompt: string;
|
||||
type: 'text' | 'chat';
|
||||
tool_resources?: AgentToolResources;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
_id?: string;
|
||||
|
|
@ -521,7 +522,7 @@ export type TPromptGroup = {
|
|||
};
|
||||
|
||||
export type TCreatePrompt = {
|
||||
prompt: Pick<TPrompt, 'prompt' | 'type'> & { groupId?: string };
|
||||
prompt: Pick<TPrompt, 'prompt' | 'type' | 'tool_resources'> & { groupId?: string };
|
||||
group?: { name: string; category?: string; oneliner?: string; command?: string };
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue