const { genSchema: genericGenSchema } = VM.require( "near/widget/Entities.Template.GenericSchema", ); const genSchema = (namespace, entityType, title) => { const entityTitle = "Agent"; const genericSchema = genericGenSchema(namespace, entityType, entityTitle); return { ...genericSchema, prompt: { type: "string", inputProps: { min: 2, max: 8192, placeholder: "The prompt for the agent.", required: true, }, multiline: true, label: "Prompt", order: 10, }, component: { type: "string", inputProps: { min: 0, max: 255, placeholder: "The component used to run the agent, default is near/widget/AI.Agent.AgentChat", required: false, }, label: "Component", order: 11, }, // preferredProvider: { // inputProps: { // min: 2, // max: 255, // placeholder: "The preferred provider for the agent.", // required: false, // }, // label: "Preferred Provider", // order: 4, // }, // preferredModel: { // inputProps: { // min: 2, // max: 255, // placeholder: "The preferred model for the agent.", // required: false, // }, // label: "Preferred Model", // order: 5, // }, // variables: { // inputProps: { // min: 2, // max: 255, // placeholder: "The variables for the agent.", // required: false, // }, // label: "A comma separated list of variables that should be passed into the prompt. Example: ['rfp', 'proposal'].", // order: 6, // }, // tools: { // inputProps: { // min: 2, // max: 255, // placeholder: "A JSON array of Tools or Functions the agent should have access to.", // required: false, // }, // // label: "Tools", // order: 9, // }, // properties: { // inputProps: { // min: 2, // max: 1024, // placeholder: "JSON properties for the agent.", // required: false, // }, // // label: "Properties", // order: 10, // }, }; }; return { genSchema };