kamioll999 commited on
Commit
7be8de0
·
verified ·
1 Parent(s): f84390a

Add 2 files

Browse files
Files changed (2) hide show
  1. index.html +0 -0
  2. prompts.txt +2 -1
index.html CHANGED
The diff for this file is too large to render. See raw diff
 
prompts.txt CHANGED
@@ -1 +1,2 @@
1
- 1. Working Application Name (Examples): CMD/BAT Script Creator BatchBuilder Windows Task Automator CMD Automagic Visual Batch Scripter 2. Main Application Goal (Summary): A desktop application (or potentially web-based?) designed for the visual (or simplified) creation of Windows batch files (.bat, .cmd). It allows users, even those without advanced knowledge of CMD syntax, to create scripts that automate repetitive tasks. 3. Problem the Application Solves: Manually creating .bat/.cmd scripts requires familiarity with specific commands, their parameters, and correct syntax. This process can be time-consuming and prone to errors (typos, flawed logic). Individuals who are not technically inclined or are beginners often find it difficult to automate even simple tasks in Windows using scripts. There's a lack of an easy-to-use, visual tool for "assembling" such scripts from pre-defined functional blocks. 4. Target Users: Home Users: Wanting to automate simple actions (e.g., launching multiple programs at once, cleaning temporary folders). Office Workers: Performing repetitive computer tasks (e.g., copying files to specific locations, launching specific applications in sequence). IT Administrators / Power Users: Seeking a faster way to generate simpler or template-based scripts, or wanting to provide less technical users with a tool for basic automation. Software Testers: Needing simple scripts to set up testing environments. 5. Key Features (What the application will do): Graphical User Interface (GUI): A user-friendly interface allowing selection of actions from a list/palette. Action Library: A predefined set of basic and advanced actions that can be added to the script, such as: Run Program/File: Select an .exe file or other document to open. Option to add command-line arguments. File/Folder Operations: Copy, Move, Delete, Rename, Create Folder. Basic CMD Commands: ECHO (display text), PAUSE (halt script), EXIT (terminate), CLS (clear screen), CD (change directory). Directory Navigation: Change the current working directory. Delay/Wait: Pause execution for a specified number of seconds (TIMEOUT). (Optional/Advanced): Simple Conditions (IF), Loops (FOR), Working with Environment Variables (SET), Getting User Input (SET /P). Visual/List-Based Editor: Ability to arrange selected actions in the correct sequence (e.g., a list of steps, drag-and-drop). Action Configuration: For each action, the ability to set its parameters (e.g., file path, destination folder name, text to display). Script Preview: A window showing the generated .bat/.cmd code in real-time. Save/Load Projects: Ability to save the script configuration in the application's format for later editing. Generate Output File: A "Generate" or "Save as .bat/.cmd" button that creates the final executable script file. (Optional) Validation: Basic checks for the validity of entered data (e.g., checking if a path exists - though this can be tricky and not always desirable). (Optional) Templates: Pre-configured sets of actions for common tasks. 6. User Interface (How it will look and work): Main Area: A list/sequence of the added steps (actions). Side Panel/Menu: A list of available actions to add (e.g., grouped by category: File Operations, Execution, Control Flow, etc.). Properties Panel: When a step in the list is selected, fields appear to configure its parameters. Toolbar: Buttons for: New Script, Open Project, Save Project, Generate .bat/.cmd File, Add Action, Remove Action, Move Up/Down. Optional: A tab with a preview of the generated code. 7. User Benefits: Time Savings: Faster script creation compared to manual coding. Error Reduction: Lower risk of syntax mistakes. Accessibility: Enables automation creation for individuals without programming knowledge. Ease of Use: Intuitive interface instead of memorizing commands. Organization: Ability to save and manage automation "projects." 8. Potential Enhancements (Future Ideas): More advanced actions (working with the registry, network operations, service management). More complex control structures (advanced loops, functions/subroutines). Integration with Windows Task Scheduler. Support for user-defined variables within the application. Importing existing .bat files (can be complex to implement reliably). Example Short Description (e.g., for a README file): CMD/BAT Script Creator is a Windows desktop application that enables easy, visual creation of batch files (.bat/.cmd). Instead of manually writing commands, users select actions from a list (e.g., 'Run Program,' 'Copy File,' 'Display Message'), configure their parameters, and arrange them in the desired sequence. The application generates a ready-to-use script, automating repetitive tasks without needing knowledge of CMD syntax. It's an ideal tool for home users, office workers, and administrators looking to simplify everyday computer operations.
 
 
1
+ 1. Working Application Name (Examples): CMD/BAT Script Creator BatchBuilder Windows Task Automator CMD Automagic Visual Batch Scripter 2. Main Application Goal (Summary): A desktop application (or potentially web-based?) designed for the visual (or simplified) creation of Windows batch files (.bat, .cmd). It allows users, even those without advanced knowledge of CMD syntax, to create scripts that automate repetitive tasks. 3. Problem the Application Solves: Manually creating .bat/.cmd scripts requires familiarity with specific commands, their parameters, and correct syntax. This process can be time-consuming and prone to errors (typos, flawed logic). Individuals who are not technically inclined or are beginners often find it difficult to automate even simple tasks in Windows using scripts. There's a lack of an easy-to-use, visual tool for "assembling" such scripts from pre-defined functional blocks. 4. Target Users: Home Users: Wanting to automate simple actions (e.g., launching multiple programs at once, cleaning temporary folders). Office Workers: Performing repetitive computer tasks (e.g., copying files to specific locations, launching specific applications in sequence). IT Administrators / Power Users: Seeking a faster way to generate simpler or template-based scripts, or wanting to provide less technical users with a tool for basic automation. Software Testers: Needing simple scripts to set up testing environments. 5. Key Features (What the application will do): Graphical User Interface (GUI): A user-friendly interface allowing selection of actions from a list/palette. Action Library: A predefined set of basic and advanced actions that can be added to the script, such as: Run Program/File: Select an .exe file or other document to open. Option to add command-line arguments. File/Folder Operations: Copy, Move, Delete, Rename, Create Folder. Basic CMD Commands: ECHO (display text), PAUSE (halt script), EXIT (terminate), CLS (clear screen), CD (change directory). Directory Navigation: Change the current working directory. Delay/Wait: Pause execution for a specified number of seconds (TIMEOUT). (Optional/Advanced): Simple Conditions (IF), Loops (FOR), Working with Environment Variables (SET), Getting User Input (SET /P). Visual/List-Based Editor: Ability to arrange selected actions in the correct sequence (e.g., a list of steps, drag-and-drop). Action Configuration: For each action, the ability to set its parameters (e.g., file path, destination folder name, text to display). Script Preview: A window showing the generated .bat/.cmd code in real-time. Save/Load Projects: Ability to save the script configuration in the application's format for later editing. Generate Output File: A "Generate" or "Save as .bat/.cmd" button that creates the final executable script file. (Optional) Validation: Basic checks for the validity of entered data (e.g., checking if a path exists - though this can be tricky and not always desirable). (Optional) Templates: Pre-configured sets of actions for common tasks. 6. User Interface (How it will look and work): Main Area: A list/sequence of the added steps (actions). Side Panel/Menu: A list of available actions to add (e.g., grouped by category: File Operations, Execution, Control Flow, etc.). Properties Panel: When a step in the list is selected, fields appear to configure its parameters. Toolbar: Buttons for: New Script, Open Project, Save Project, Generate .bat/.cmd File, Add Action, Remove Action, Move Up/Down. Optional: A tab with a preview of the generated code. 7. User Benefits: Time Savings: Faster script creation compared to manual coding. Error Reduction: Lower risk of syntax mistakes. Accessibility: Enables automation creation for individuals without programming knowledge. Ease of Use: Intuitive interface instead of memorizing commands. Organization: Ability to save and manage automation "projects." 8. Potential Enhancements (Future Ideas): More advanced actions (working with the registry, network operations, service management). More complex control structures (advanced loops, functions/subroutines). Integration with Windows Task Scheduler. Support for user-defined variables within the application. Importing existing .bat files (can be complex to implement reliably). Example Short Description (e.g., for a README file): CMD/BAT Script Creator is a Windows desktop application that enables easy, visual creation of batch files (.bat/.cmd). Instead of manually writing commands, users select actions from a list (e.g., 'Run Program,' 'Copy File,' 'Display Message'), configure their parameters, and arrange them in the desired sequence. The application generates a ready-to-use script, automating repetitive tasks without needing knowledge of CMD syntax. It's an ideal tool for home users, office workers, and administrators looking to simplify everyday computer operations.
2
+ gradio webapp to deploy autonoums agent using prebuild configurator that after setting up it will deploy script using this api functions calls : 1. Install the Javascript client (docs) if you don't already have it installed. copy $ npm i -D @gradio/client 2. Find the API endpoint below corresponding to your desired function in the app. Copy the code snippet, replacing the placeholder values with your own input data. Or use the API Recorder to automatically generate your API requests. api_name: /update_llm_num_ctx_visibility copy import { Client } from "@gradio/client"; const client = await Client.connect("http://127.0.0.1:7788/"); const result = await client.predict("/update_llm_num_ctx_visibility", { llm_provider: "anthropic", }); console.log(result.data); Accepts 1 parameter: llm_provider string Default: "openai" The input value that is provided in the "LLM Provider" Dropdown component. Returns 1 element number The output value that appears in the "Ollama Context Length" Slider component. api_name: /stop_agent copy import { Client } from "@gradio/client"; const client = await Client.connect("http://127.0.0.1:7788/"); const result = await client.predict("/stop_agent", { }); console.log(result.data); Accepts 0 parameters: Returns 1 element api_name: /run_with_stream copy import { Client } from "@gradio/client"; const client = await Client.connect("http://127.0.0.1:7788/"); const result = await client.predict("/run_with_stream", { agent_type: "org", llm_provider: "anthropic", llm_model_name: "gpt-4o", llm_num_ctx: 256, llm_temperature: 0, llm_base_url: "Hello!!", llm_api_key: "Hello!!", use_own_browser: true, keep_browser_open: true, headless: true, disable_security: true, window_w: 3, window_h: 3, save_recording_path: "Hello!!", save_agent_history_path: "Hello!!", save_trace_path: "Hello!!", enable_recording: true, task: "Hello!!", add_infos: "Hello!!", max_steps: 1, use_vision: true, max_actions_per_step: 1, tool_calling_method: "auto", chrome_cdp: "Hello!!", max_input_tokens: 3, }); console.log(result.data); Accepts 25 parameters: agent_type string Default: "custom" The input value that is provided in the "Agent Type" Radio component. llm_provider string Default: "openai" The input value that is provided in the "LLM Provider" Dropdown component. llm_model_name string Default: "gpt-4o" The input value that is provided in the "Model Name" Dropdown component. llm_num_ctx number Default: 16000 The input value that is provided in the "Ollama Context Length" Slider component. llm_temperature number Default: 0.6 The input value that is provided in the "Temperature" Slider component. llm_base_url string Default: "" The input value that is provided in the "Base URL" Textbox component. llm_api_key string Default: "" The input value that is provided in the "API Key" Textbox component. use_own_browser boolean Default: False The input value that is provided in the "Use Own Browser" Checkbox component. keep_browser_open boolean Default: False The input value that is provided in the "Keep Browser Open" Checkbox component. headless boolean Default: False The input value that is provided in the "Headless Mode" Checkbox component. disable_security boolean Default: True The input value that is provided in the "Disable Security" Checkbox component. window_w number Default: 1280 The input value that is provided in the "Window Width" Number component. window_h number Default: 1100 The input value that is provided in the "Window Height" Number component. save_recording_path string Default: "./tmp/record_videos" The input value that is provided in the "Recording Path" Textbox component. save_agent_history_path string Default: "./tmp/agent_history" The input value that is provided in the "Agent History Save Path" Textbox component. save_trace_path string Default: "./tmp/traces" The input value that is provided in the "Trace Path" Textbox component. enable_recording boolean Default: True The input value that is provided in the "Enable Recording" Checkbox component. task string Default: "go to google.com and type 'OpenAI' click search and give me the first url" The input value that is provided in the "Task Description" Textbox component. add_infos string Default: "" The input value that is provided in the "Additional Information" Textbox component. max_steps number Default: 100 The input value that is provided in the "Max Run Steps" Slider component. use_vision boolean Default: True The input value that is provided in the "Use Vision" Checkbox component. max_actions_per_step number Default: 10 The input value that is provided in the "Max Actions per Step" Slider component. tool_calling_method string Default: "auto" The input value that is provided in the "Tool Calling Method" Dropdown component. chrome_cdp string Default: "" The input value that is provided in the "CDP URL" Textbox component. max_input_tokens number Default: 128000 The input value that is provided in the "Max Input Tokens" Number component. Returns list of 8 elements [0] string The output value that appears in the "Live Browser View" Html component. [1] string The output value that appears in the "Final Result" Textbox component. [2] string The output value that appears in the "Errors" Textbox component. [3] string The output value that appears in the "Model Actions" Textbox component. [4] string The output value that appears in the "Model Thoughts" Textbox component. [5] string The output value that appears in the "Result GIF" Image component. [6] The output value that appears in the "Trace File" File component. [7] The output value that appears in the "Agent History" File component. api_name: /run_deep_search copy import { Client } from "@gradio/client"; const client = await Client.connect("http://127.0.0.1:7788/"); const result = await client.predict("/run_deep_search", { research_task: "Hello!!", max_search_iteration_input: 3, max_query_per_iter_input: 3, llm_provider: "anthropic", llm_model_name: "gpt-4o", llm_num_ctx: 256, llm_temperature: 0, llm_base_url: "Hello!!", llm_api_key: "Hello!!", use_vision: true, use_own_browser: true, headless: true, chrome_cdp: "Hello!!", }); console.log(result.data); Accepts 13 parameters: research_task string Default: "Compose a report on the use of Reinforcement Learning for training Large Language Models, encompassing its origins, current advancements, and future prospects, substantiated with examples of relevant models and techniques. The report should reflect original insights and analysis, moving beyond mere summarization of existing literature." The input value that is provided in the "Research Task" Textbox component. max_search_iteration_input number Default: 3 The input value that is provided in the "Max Search Iteration" Number component. max_query_per_iter_input number Default: 1 The input value that is provided in the "Max Query per Iteration" Number component. llm_provider string Default: "openai" The input value that is provided in the "LLM Provider" Dropdown component. llm_model_name string Default: "gpt-4o" The input value that is provided in the "Model Name" Dropdown component. llm_num_ctx number Default: 16000 The input value that is provided in the "Ollama Context Length" Slider component. llm_temperature number Default: 0.6 The input value that is provided in the "Temperature" Slider component. llm_base_url string Default: "" The input value that is provided in the "Base URL" Textbox component. llm_api_key string Default: "" The input value that is provided in the "API Key" Textbox component. use_vision boolean Default: True The input value that is provided in the "Use Vision" Checkbox component. use_own_browser boolean Default: False The input value that is provided in the "Use Own Browser" Checkbox component. headless boolean Default: False The input value that is provided in the "Headless Mode" Checkbox component. chrome_cdp string Default: "" The input value that is provided in the "CDP URL" Textbox component. Returns list of 2 elements [0] string The output value that appears in the "Research Report" Markdown component. [1] The output value that appears in the "Download Research Report" File component. api_name: /stop_research_agent copy import { Client } from "@gradio/client"; const client = await Client.connect("http://127.0.0.1:7788/"); const result = await client.predict("/stop_research_agent", { }); console.log(result.data); Accepts 0 parameters: Returns 1 element api_name: /list_recordings copy import { Client } from "@gradio/client"; const client = await Client.connect("http://127.0.0.1:7788/"); const result = await client.predict("/list_recordings", { save_recording_path: "Hello!!", }); console.log(result.data); Accepts 1 parameter: save_recording_path string Default: "./tmp/record_videos" The input value that is provided in the "Recording Path" Textbox component. Returns 1 element The output value that appears in the "Recordings" Gallery component. api_name: /save_current_config copy import { Client } from "@gradio/client"; const client = await Client.connect("http://127.0.0.1:7788/"); const result = await client.predict("/save_current_config", { }); console.log(result.data); Accepts 0 parameters: Returns 1 element string The output value that appears in the "Status" Textbox component. api_name: /lambda copy import { Client } from "@gradio/client"; const client = await Client.connect("http://127.0.0.1:7788/"); const result = await client.predict("/lambda", { provider: "anthropic", api_key: "Hello!!", base_url: "Hello!!", }); console.log(result.data); Accepts 3 parameters: provider string Default: "openai" The input value that is provided in the "LLM Provider" Dropdown component. api_key string Default: "" The input value that is provided in the "API Key" Textbox component. base_url string Default: "" The input value that is provided in the "Base URL" Textbox component. Returns 1 element string The output value that appears in the "Model Name" Dropdown component. api_name: /lambda_1 copy import { Client } from "@gradio/client"; const client = await Client.connect("http://127.0.0.1:7788/"); const result = await client.predict("/lambda_1", { enabled: true, }); console.log(result.data); Accepts 1 parameter: enabled boolean Default: True The input value that is provided in the "Enable Recording" Checkbox component. Returns 1 element string The output value that appears in the "Recording Path" Textbox component. api_name: /close_global_browser copy import { Client } from "@gradio/client"; const client = await Client.connect("http://127.0.0.1:7788/"); const result = await client.predict("/close_global_browser", { }); console.log(result.data); Accepts 0 parameters: Returns 1 element api_name: /close_global_browser_1 copy import { Client } from "@gradio/client"; const client = await Client.connect("http://127.0.0.1:7788/"); const result = await client.predict("/close_global_browser_1", { }); console.log(result.data); Accepts 0 parameters: Returns 1 element api_name: /update_ui_from_config copy import { Client } from "@gradio/client"; const response_0 = await fetch("https://github.com/gradio-app/gradio/raw/main/test/test_files/sample_file.pdf"); const exampleFile = await response_0.blob(); const client = await Client.connect("http://127.0.0.1:7788/"); const result = await client.predict("/update_ui_from_config", { config_file: exampleFile, }); console.log(result.data); Accepts 1 parameter: config_file any Required The input value that is provided in the "Load UI Settings from Config File" File component. The FileData class is a subclass of the GradioModel class that represents a file object within a Gradio interface. It is used to store file data and metadata when a file is uploaded. Attributes: path: The server file path where the file is stored. url: The normalized server URL pointing to the file. size: The size of the file in bytes. orig_name: The original filename before upload. mime_type: The MIME type of the file. is_stream: Indicates whether the file is a stream. meta: Additional metadata used internally (should not be changed). Returns list of 28 elements [0] string The output value that appears in the "Agent Type" Radio component. [1] number The output value that appears in the "Max Run Steps" Slider component. [2] number The output value that appears in the "Max Actions per Step" Slider component. [3] boolean The output value that appears in the "Use Vision" Checkbox component. [4] number The output value that appears in the "Max Input Tokens" Number component. [5] string The output value that appears in the "Tool Calling Method" Dropdown component. [6] string The output value that appears in the "LLM Provider" Dropdown component. [7] string The output value that appears in the "Model Name" Dropdown component. [8] number The output value that appears in the "Ollama Context Length" Slider component. [9] number The output value that appears in the "Temperature" Slider component. [10] boolean The output value that appears in the "Use Own Browser" Checkbox component. [11] boolean The output value that appears in the "Keep Browser Open" Checkbox component. [12] boolean The output value that appears in the "Headless Mode" Checkbox component. [13] boolean The output value that appears in the "Disable Security" Checkbox component. [14] boolean The output value that appears in the "Enable Recording" Checkbox component. [15] number The output value that appears in the "Window Width" Number component. [16] number The output value that appears in the "Window Height" Number component. [17] string The output value that appears in the "CDP URL" Textbox component. [18] string The output value that appears in the "Recording Path" Textbox component. [19] string The output value that appears in the "Trace Path" Textbox component. [20] string The output value that appears in the "Agent History Save Path" Textbox component. [21] string The output value that appears in the "Task Description" Textbox component. [22] string The output value that appears in the "Additional Information" Textbox component. [23] string The output value that appears in the "Research Task" Textbox component. [24] number The output value that appears in the "Max Search Iteration" Number component. [25] number The output value that appears in the "Max Query per Iteration" Number component. [26] The output value that appears in the "Load UI Settings from Config File" File component. [27] string The output value that appears in the "Status" Textbox component.