Assistant node, and the Control tab as one conversation (openpanel V5)
run_turn takes its tools, system prompt and tool caller; the chat passes the MCP tools as before. The assistant node offers one tool per wired target, reads its other inputs as context, streams its reply a sentence at a time, warms the provider on `listening` and says so when the provider is not there. Completions share the per-server HTTP client. wren replies when nothing reads `unhandled`, stt shows a note when nothing was heard. /ai/control lists one conversation per entry node with the messages to watch.
This commit is contained in:
@@ -606,15 +606,39 @@ export const ControlNodeSchema = {
|
||||
type: 'string',
|
||||
title: 'Prompt Msg'
|
||||
},
|
||||
actions_msg: {
|
||||
type: 'string',
|
||||
title: 'Actions Msg'
|
||||
watch: {
|
||||
items: {
|
||||
'$ref': '#/components/schemas/ControlWatch'
|
||||
},
|
||||
type: 'array',
|
||||
title: 'Watch'
|
||||
}
|
||||
},
|
||||
type: 'object',
|
||||
required: ['id', 'flow', 'title', 'prompt_msg', 'actions_msg'],
|
||||
required: ['id', 'flow', 'title', 'prompt_msg', 'watch'],
|
||||
title: 'ControlNode',
|
||||
description: 'A wren node the chat can talk to: where it sends and where it reads.'
|
||||
description: 'A conversation the chat can hold: where a command goes, and what to show.'
|
||||
} as const;
|
||||
|
||||
export const ControlWatchSchema = {
|
||||
properties: {
|
||||
msg: {
|
||||
type: 'string',
|
||||
title: 'Msg'
|
||||
},
|
||||
kind: {
|
||||
'$ref': '#/components/schemas/WatchKind'
|
||||
},
|
||||
node: {
|
||||
type: 'string',
|
||||
title: 'Node',
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
type: 'object',
|
||||
required: ['msg', 'kind'],
|
||||
title: 'ControlWatch',
|
||||
description: 'A message the conversation shows, as one kind of line.'
|
||||
} as const;
|
||||
|
||||
export const DTypeSchema = {
|
||||
@@ -4937,6 +4961,11 @@ export const WaitingNodeSchema = {
|
||||
title: 'WaitingNode'
|
||||
} as const;
|
||||
|
||||
export const WatchKindSchema = {
|
||||
type: 'string',
|
||||
enum: ['partial', 'text', 'reply', 'actions']
|
||||
} as const;
|
||||
|
||||
export const WebPushKeySchema = {
|
||||
properties: {
|
||||
key: {
|
||||
|
||||
Reference in New Issue
Block a user