fix assistant widget configuration
This commit is contained in:
1 parent
8d06201b41
commit
1f60b4b4be
16 files changed
+696
-11
No files matched your search
@@ -10,6 +10,7 @@ const humanToolKinds = {
|
||||
ask_user: "question",
|
||||
configure_app: "form",
|
||||
configure_board_settings: "form",
|
||||
configure_widget: "form",
|
||||
} as const;
|
||||
|
||||
const getStringArg = (args: unknown, key: string) => {
|
||||
@@ -40,7 +41,11 @@ export const getPendingAssistantAction = (message: ThreadMessage | undefined): A
|
||||
toolName: part.toolName,
|
||||
detail: getStringArg(
|
||||
part.args,
|
||||
kind === "question" ? "question" : part.toolName === "configure_board_settings" ? "boardName" : "name",
|
||||
kind === "question"
|
||||
? "question"
|
||||
: part.toolName === "configure_board_settings" || part.toolName === "configure_widget"
|
||||
? "boardName"
|
||||
: "name",
|
||||
),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user