mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 05:29:26 +08:00
21 lines
747 B
TypeScript
21 lines
747 B
TypeScript
/**
|
|
* This file is part of the NocoBase (R) project.
|
|
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
* Authors: NocoBase Team.
|
|
*
|
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
*/
|
|
|
|
import { z } from 'zod';
|
|
import { ToolOptions } from '../manager/ai-manager';
|
|
|
|
export const formFillter: ToolOptions = {
|
|
title: '{{t("Form filler")}}',
|
|
description: '{{t("Fill the form with the given content")}}',
|
|
schema: z.object({
|
|
form: z.string().describe('The UI Schema ID of the target form to be filled.'),
|
|
data: z.record(z.any()).describe("Structured data matching the form's JSON Schema, to be assigned to form.values."),
|
|
}),
|
|
};
|