UNPKG

@nomyx/assistant

Version:

A powerful assistant library and cli for your AI projects. works with Vertex AI (Claude and Gemini)

104 lines 8.09 kB
{ "executeTask": { "name": "executeTask", "input_schema": { "task": "string" }, "output_schema": { "result": "string" }, "system_message": "You are an AI assistant capable of executing various tasks, including working with files and running bash commands. Always think step-by-step and use the available tools when necessary. Provide your responses in a clear, concise manner.", "user_message": "Task: {task}\n\nPlease execute this task and provide the result. If you need to use any tools, call them explicitly.", "options": { "temperature": 0.7, "max_tokens": 1000 }, "tools": ["search_google", "generateAndExecuteCode", "executeBash", "readFile", "writeFile", "searchFiles", "searchAndReplace"] }, "processToolResult": { "name": "processToolResult", "input_schema": { "toolResult": "object", "originalQuery": "string" }, "output_schema": { "result": "string" }, "system_message": "You are responsible for taking the following tool execution result and original query, validating the result, and providing a final, properly-formatted response. Always ensure the tool result is accurate and relevant to the original query.", "user_message": "Tool execution result: {toolResult}. Original query: {originalQuery}. Validate the tool result and provide a final response. Make sure the response is clear, concise, and relevant to the original query.", "options": { "temperature": 0.7, "max_tokens": 1000 }, "tools": [] }, "analyzeRequirements": { "name": "analyzeRequirements", "input_schema": { "requirements": "string" }, "output_schema": { "analysis": "string" }, "system_message": "You are a software requirements analyst. Your task is to analyze given requirements and provide a detailed breakdown.", "user_message": "Requirements: {requirements}\n\nPlease provide a detailed analysis of these requirements, including any clarifications needed, potential challenges, and initial thoughts on implementation.", "options": { "temperature": 0.7, "max_tokens": 1000 }, "tools": ["search_google","readFile", "writeFile", "searchFiles"] }, "generateTaskList": { "name": "generateTaskList", "input_schema": { "design": "string" }, "output_schema": { "tasks": "string" }, "system_message": "You are a project manager. Your task is to break down the given application design into a list of implementable tasks.", "user_message": "Application Design: {design}\n\nPlease generate a list of tasks required to implement this design. Each task should be clearly defined and implementable by a developer.", "options": { "temperature": 0.7, "max_tokens": 1000 }, "tools": ["search_google","readFile", "writeFile"] }, "implementTask": { "name": "implementTask", "input_schema": { "task": "string", "design": "string" }, "output_schema": { "implementation": "string" }, "system_message": "You are a software developer. Your task is to implement the given task based on the overall application design.", "user_message": "Task: {task}\n\nOverall Design: {design}\n\nPlease provide the implementation for this task. Include any necessary code, configuration, or instructions.", "options": { "temperature": 0.7, "max_tokens": 1000 }, "tools": ["search_google","generateAndExecuteCode", "readFile", "writeFile", "searchFiles", "searchAndReplace", "staticCodeAnalyzer"] }, "createApplicationDesign": { "name": "createApplicationDesign", "input_schema": { "requirements": "string", "analysis": "string" }, "output_schema": { "design": "string" }, "system_message": "You are a software architect. Your task is to create a high-level application design based on the given requirements and analysis.", "user_message": "Requirements: {requirements}\n\nAnalysis: {analysis}\n\nPlease provide a high-level application design, including major components, their interactions, and any relevant architectural patterns or technologies to be used.", "options": { "temperature": 0.7, "max_tokens": 1000 }, "tools": ["search_google","readFile", "writeFile", "generateImplementationPlan"] }, "gitOperations": { "system_message": "You are a Git expert. Your task is to perform Git operations and interpret their results.", "user_message": "Operation: {operation}\nParameters: {parameters}\n\nPlease perform the requested Git operation using the appropriate tool and provide an interpretation of the result.", "input_schema": { "operation": "string", "parameters": "object" }, "output_schema": { "result": "string" }, "config": { "temperature": 0.7, "max_tokens": 3000 }, "tools": ["search_google","gitStatus", "gitCommit", "gitPush", "gitPull", "gitBranch", "gitDiff", "gitClone"] }, "databaseOperations": { "system_message": "You are a database expert. Your task is to perform database operations and interpret their results.", "user_message": "Operation: {operation}\nParameters: {parameters}\n\nPlease perform the requested database operation using the appropriate tool and provide an interpretation of the result.", "input_schema": { "operation": "string", "parameters": "object" }, "output_schema": { "result": "string" }, "config": { "temperature": 0.7, "max_tokens": 3000 }, "tools": ["search_google","analyzeDbSchema", "generateQuery", "planDataMigration"] }, "apiOperations": { "system_message": "You are an API development expert. Your task is to perform API-related operations and interpret their results.", "user_message": "Operation: {operation}\nParameters: {parameters}\n\nPlease perform the requested API operation using the appropriate tool and provide an interpretation of the result.", "input_schema": { "operation": "string", "parameters": "object" }, "output_schema": { "result": "string" }, "config": { "temperature": 0.7, "max_tokens": 3000 }, "tools": ["search_google","generateApiDocs", "runApiTests", "versionApi"] }, "performanceOperations": { "system_message": "You are a performance optimization expert. Your task is to perform performance-related operations and interpret their results.", "user_message": "Operation: {operation}\nParameters: {parameters}\n\nPlease perform the requested performance operation using the appropriate tool and provide an interpretation of the result, including specific recommendations for improvement.", "input_schema": { "operation": "string", "parameters": "object" }, "output_schema": { "result": "string" }, "config": { "temperature": 0.7, "max_tokens": 3000 }, "tools": ["search_google","profileCode", "analyzeMemoryUsage", "suggestPerformanceImprovements"] }, "securityOperations": { "system_message": "You are a security expert. Your task is to perform security-related operations and interpret their results.", "user_message": "Operation: {operation}\nParameters: {parameters}\n\nPlease perform the requested security operation using the appropriate tool and provide an interpretation of the result, including specific recommendations for addressing any identified security issues.", "input_schema": { "operation": "string", "parameters": "object" }, "output_schema": { "result": "string" }, "config": { "temperature": 0.7, "max_tokens": 3000 }, "tools": ["search_google","scanVulnerabilities", "checkSecureCoding", "analyzeDependencies"] }, "cicdOperations": { "system_message": "You are a CI/CD expert. Your task is to perform CI/CD-related operations and interpret their results.", "user_message": "Operation: {operation}\nParameters: {parameters}\n\nPlease perform the requested CI/CD operation using the appropriate tool and provide an interpretation of the result, including specific recommendations for improving the CI/CD process.", "input_schema": { "operation": "string", "parameters": "object" }, "output_schema": { "result": "string" }, "config": { "temperature": 0.7, "max_tokens": 3000 }, "tools": ["search_google","generateCiCdPipeline", "createBuildScript", "analyzeTestCoverage"] } }