Commit fc7603b2 by Nixieboluo Committed by GitHub

refactor: match ask ui with latest design (#7446)

* refactor: match ask ui with latest design

Signed-off-by: Nixieboluo <me@sagirii.me>

* refactor: disable transitions for ask ui

Signed-off-by: Nixieboluo <me@sagirii.me>

* refactor: tweaks to ask_user prompt

Signed-off-by: Nixieboluo <me@sagirii.me>

---------

Signed-off-by: Nixieboluo <me@sagirii.me>
parent a5bcccdd
......@@ -78,17 +78,17 @@ export const createAskAgentTool = (name = 'ask_agent'): ChatCompletionTool => ({
minItems: 2,
maxItems: 4,
description:
'Two to four choices. summary is concise UI text; value is the complete answer returned after selection.',
'Use three choices by default when possible. Choices must be clear, mutually exclusive, definitive answers. Do not use choices to request any input from the user. The user can select exactly one choice or enter a custom answer. Do not add an "Other" choice because the user can enter custom text directly. Each choice uses a short summary phrase and a sentence that explains the answer itself to the user.',
items: {
type: 'object',
properties: {
summary: {
type: 'string',
description: 'Concise option text shown to the user.'
description: 'A short phrase summarizing the answer content.'
},
value: {
type: 'string',
description: 'Complete answer returned to the agent after selection.'
description: 'A sentence that explains the answer itself to the user.'
}
},
required: ['summary', 'value']
......
......@@ -421,6 +421,7 @@ export const iconPaths = {
empty: () => import('./icons/empty.svg'),
export: () => import('./icons/export.svg'),
feedback: () => import('./icons/feedback.svg'),
'common/edit-filled': () => import('./icons/common/edit-filled.svg'),
'file/fill/audio': () => import('./icons/file/fill/audio.svg'),
'file/fill/csv': () => import('./icons/file/fill/csv.svg'),
'file/fill/doc': () => import('./icons/file/fill/doc.svg'),
......
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11 11">
<path fill="#fff" d="M10.68 2.7 8.24.26A.87.87 0 0 0 7 .26L.26 7a1 1 0 0 0-.26.62v2.44a.9.9 0 0 0 .88.88h9.18a.44.44 0 0 0 0-.88h-5.5l6.12-6.12a.9.9 0 0 0 0-1.24M8.75 4.63 6.31 2.2 7.6.87l2.45 2.45z" />
</svg>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment