Talk to wren nodes from the chat's Control tab, opened from Home
This commit is contained in:
@@ -565,6 +565,35 @@ export const ChatItemSchema = {
|
||||
title: 'ChatItem'
|
||||
} as const;
|
||||
|
||||
export const ControlNodeSchema = {
|
||||
properties: {
|
||||
id: {
|
||||
type: 'string',
|
||||
title: 'Id'
|
||||
},
|
||||
flow: {
|
||||
type: 'string',
|
||||
title: 'Flow'
|
||||
},
|
||||
title: {
|
||||
type: 'string',
|
||||
title: 'Title'
|
||||
},
|
||||
prompt_msg: {
|
||||
type: 'string',
|
||||
title: 'Prompt Msg'
|
||||
},
|
||||
actions_msg: {
|
||||
type: 'string',
|
||||
title: 'Actions Msg'
|
||||
}
|
||||
},
|
||||
type: 'object',
|
||||
required: ['id', 'flow', 'title', 'prompt_msg', 'actions_msg'],
|
||||
title: 'ControlNode',
|
||||
description: 'A wren node the chat can talk to: where it sends and where it reads.'
|
||||
} as const;
|
||||
|
||||
export const DTypeSchema = {
|
||||
type: 'string',
|
||||
enum: ['float', 'int', 'str', 'bool', 'json', 'series', 'record', 'list', 'artifact', 'image', 'audio', 'video'],
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -142,6 +142,17 @@ export type ChatItem = {
|
||||
error?: (string | null);
|
||||
};
|
||||
|
||||
/**
|
||||
* A wren node the chat can talk to: where it sends and where it reads.
|
||||
*/
|
||||
export type ControlNode = {
|
||||
id: string;
|
||||
flow: string;
|
||||
title: string;
|
||||
prompt_msg: string;
|
||||
actions_msg: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* A dashboard as stored, and as the API hands it over.
|
||||
*/
|
||||
@@ -1461,6 +1472,8 @@ export type AiListAiModelsResponse = (Array<(string)>);
|
||||
|
||||
export type AiReadAiStatusResponse = (AIStatus);
|
||||
|
||||
export type AiReadControlNodesResponse = (Array<ControlNode>);
|
||||
|
||||
export type AiReadChatResponse = (Array<ChatItem>);
|
||||
|
||||
export type AiChatData = {
|
||||
|
||||
Reference in New Issue
Block a user