diff --git a/_containers/devika/log.txt b/_containers/devika/log.txt new file mode 100644 index 0000000..0da4d76 --- /dev/null +++ b/_containers/devika/log.txt @@ -0,0 +1,19 @@ +time=2024-04-22T08:11:02.350Z level=DEBUG source=routes.go:249 msg="generate handler" prompt="```\n\tWe use optional cookies to improve your experience on our websites, such as through social media connections, and to display personalized advertising based on your online activity. If you reject optional cookies, only cookies necessary to provide you the services will be used. You may change your selection by clicking “Manage Cookies” at the bottom of the page. Privacy Statement Third-Party Cookies\nAccept Reject Manage cookies\nSkip to main content\nAzure\nExplore\nProducts\nSolutions\nPricing\nPartners\nResources\nLearn\nSupport\nContact Sales\nTry Azure for free\nSign in\nMicrosoft Azure portal\n\nBuild, manage, and monitor everything from simple web apps to complex cloud applications in a single, unified console\n\nSign in New to Azure? Start free\nCheck out the how-to video series for tips on deploying your cloud workloads from the Azure portal.\nAzure mobile app\n\nStay connected to your Azure resources—anytime, anywhere. Now available for iOS and Android.\n\nLearn more\nView one portal, manage all your apps\n\nView and manage all of your applications in one unified hub—including web apps, databases, virtual machines, virtual networks, storage, and Visual Studio team projects. Enjoy the flexibility of using the Azure portal's graphical experience or the integrated command-line experience provided by\u00a0Cloud Shell.\u00a0Get an overview, and\u00a0see which Azure services can be managed with the Azure portal.\n\nPersonalize your experience\n\nImagine a single easy-to-use console built just for you, your team, and your projects. This unified hub significantly simplifies building, deploying, and managing your cloud resources. Organize your portal to custom-fit your work and your work style. Stay on top of the things that matter most by pinning them to your dashboard. Resize tiles to show just the right amount of detail, and share insights across apps and resources.\n\nUse fine-grained access control\n\nRole-based access control lets you select exactly who can manage what. Grant explicit management and access rights to the account, service, and operation levels for individuals and groups.\n\nCombine services to create amazingly powerful applications\n\nChoose from more than 3,000 services delivered by Microsoft and our partners, many of them at no charge. Find open source applications, frameworks, and templates, as well as single and multiple virtual machine images. When you combine these with Azure services, you can create powerful solutions on your own faster and with less effort—for any device and any cloud—even\u00a0manually or automatically scaling instance count\u00a0to meet demand. Plus, see all your service usage on a single bill.\n\nGain visibility with no more billing blind spots\n\nNow it’s easy to keep tabs on current and projected costs. The Azure portal automatically calculates your existing charges and forecasts your likely monthly charges—even if you’re managing hundreds of resources across several apps. Plus, it’s easy to see your cross-cloud analytics and real-time active use data when you\u00a0enable monitoring and diagnostics\u00a0and\u00a0monitor service metrics, which helps you avoid billing surprises.\n\nGet integrated support when and where you need it\n\nWhether you need support because of an\u00a0alert notification\u00a0or you notice issues when you\u00a0view events and audit logs, help is only a click away. Microsoft provides the full range of resources to help you get started and grow, including access to our communities and forums, specific troubleshooting information, and direct support from a world-class Azure support representative. Plus, you have access to a direct feedback channel for the Azure product team.\n\nSee how the Azure portal simplifies using the cloud\nSign in\nNew to Azure?\nStart free\nAdditional Navigation\nGet the Azure mobile app\nExplore Azure\nWhat is Azure?\nGet started\nGlobal infrastructure\nDatacenter regions\nTrust your cloud\nCustomer enablement\nCustomer stories\nProducts and pricing\nProducts\nPricing\nFree Azure services\nFlexible purchase options\nCloud economics\nOptimize your costs\nSolutions and support\nSolutions\nResources for accelerating growth\nSolution architectures\nSupport\nAzure demo and live Q&A\nPartners\nAzure Marketplace\nFind a partner\nJoin ISV Success\nResources\nTraining and certifications\nDocumentation\nBlog\nDeveloper resources\nStudents\nEvents and webinars\nAnalyst reports, white papers, and e-books\nVideos\nCloud computing\nWhat is cloud computing?\nWhat is cloud migration?\nWhat is a hybrid cloud?\nWhat is AI?\nWhat is IaaS?\nWhat is SaaS?\nWhat is PaaS?\nWhat is DevOps?\nChange language\nEnglish (US)\nČeština\nDansk\nDeutsch\nEnglish (Australia)\nEnglish (Canada)\nEnglish (India)\nEnglish (UK)\nEspañol\nEspañol (MX)\nFrançais\nFrançais (Canada)\nIndonesia\nItaliano\nMagyar\nNorsk\nNederlands\nPolski\nPortuguês (Brasil)\nPortuguês\nSvenska\nTürkçe\nPусский\n日本語\n한국어\n中文(简体)\n中文(繁體)\nYour Privacy Choices\nConsumer Health Privacy\nDiversity and Inclusion\nAccessibility\nPrivacy & Cookies\nData Protection Notice\nTrademarks\nTerms of use\nPrivacy Data Management\nManage cookies\nContact us\nFeedback\nSitemap\n© Microsoft 2024\n```\n\nYou are provided with a raw extracted text from a PDF render of a web page. This web page could be a blog, documentation, or any other type of web page.\n\nYour task is to format the text in a way that is easy to read and understand and include more detail.\n\nYou are essentially a RAW text to clean Markdown convertor. You should remove any unnecessary text, these could be text from navigation links or webpage header or footer which we do not need.\n\nIf it's a documentation with code, try to focus more on the code examples and the explanation of the code, make your responses short to save context window.\n\nYou should only respond with the formatted text in markdown format and nothing else. Start your response with \"```\" and end with \"```\"." + +[GIN] 2024/04/22 - 08:10:57 | 200 | 9.325250288s | 92.247.170.10 | POST "/api/generate" + +time=2024-04-22T08:11:02.351Z level=DEBUG source=routes.go:282 msg="generate handler" prompt="<|im_start|>system\nYou are Dolphin, a helpful AI assistant.\n<|im_end|>\n<|im_start|>user\n```\n\tWe use optional cookies to improve your experience on our websites, such as through social media connections, and to display personalized advertising based on your online activity. If you reject optional cookies, only cookies necessary to provide you the services will be used. You may change your selection by clicking “Manage Cookies” at the bottom of the page. Privacy Statement Third-Party Cookies\nAccept Reject Manage cookies\nSkip to main content\nAzure\nExplore\nProducts\nSolutions\nPricing\nPartners\nResources\nLearn\nSupport\nContact Sales\nTry Azure for free\nSign in\nMicrosoft Azure portal\n\nBuild, manage, and monitor everything from simple web apps to complex cloud applications in a single, unified console\n\nSign in New to Azure? Start free\nCheck out the how-to video series for tips on deploying your cloud workloads from the Azure portal.\nAzure mobile app\n\nStay connected to your Azure resources—anytime, anywhere. Now available for iOS and Android.\n\nLearn more\nView one portal, manage all your apps\n\nView and manage all of your applications in one unified hub—including web apps, databases, virtual machines, virtual networks, storage, and Visual Studio team projects. Enjoy the flexibility of using the Azure portal's graphical experience or the integrated command-line experience provided by\u00a0Cloud Shell.\u00a0Get an overview, and\u00a0see which Azure services can be managed with the Azure portal.\n\nPersonalize your experience\n\nImagine a single easy-to-use console built just for you, your team, and your projects. This unified hub significantly simplifies building, deploying, and managing your cloud resources. Organize your portal to custom-fit your work and your work style. Stay on top of the things that matter most by pinning them to your dashboard. Resize tiles to show just the right amount of detail, and share insights across apps and resources.\n\nUse fine-grained access control\n\nRole-based access control lets you select exactly who can manage what. Grant explicit management and access rights to the account, service, and operation levels for individuals and groups.\n\nCombine services to create amazingly powerful applications\n\nChoose from more than 3,000 services delivered by Microsoft and our partners, many of them at no charge. Find open source applications, frameworks, and templates, as well as single and multiple virtual machine images. When you combine these with Azure services, you can create powerful solutions on your own faster and with less effort—for any device and any cloud—even\u00a0manually or automatically scaling instance count\u00a0to meet demand. Plus, see all your service usage on a single bill.\n\nGain visibility with no more billing blind spots\n\nNow it’s easy to keep tabs on current and projected costs. The Azure portal automatically calculates your existing charges and forecasts your likely monthly charges—even if you’re managing hundreds of resources across several apps. Plus, it’s easy to see your cross-cloud analytics and real-time active use data when you\u00a0enable monitoring and diagnostics\u00a0and\u00a0monitor service metrics, which helps you avoid billing surprises.\n\nGet integrated support when and where you need it\n\nWhether you need support because of an\u00a0alert notification\u00a0or you notice issues when you\u00a0view events and audit logs, help is only a click away. Microsoft provides the full range of resources to help you get started and grow, including access to our communities and forums, specific troubleshooting information, and direct support from a world-class Azure support representative. Plus, you have access to a direct feedback channel for the Azure product team.\n\nSee how the Azure portal simplifies using the cloud\nSign in\nNew to Azure?\nStart free\nAdditional Navigation\nGet the Azure mobile app\nExplore Azure\nWhat is Azure?\nGet started\nGlobal infrastructure\nDatacenter regions\nTrust your cloud\nCustomer enablement\nCustomer stories\nProducts and pricing\nProducts\nPricing\nFree Azure services\nFlexible purchase options\nCloud economics\nOptimize your costs\nSolutions and support\nSolutions\nResources for accelerating growth\nSolution architectures\nSupport\nAzure demo and live Q&A\nPartners\nAzure Marketplace\nFind a partner\nJoin ISV Success\nResources\nTraining and certifications\nDocumentation\nBlog\nDeveloper resources\nStudents\nEvents and webinars\nAnalyst reports, white papers, and e-books\nVideos\nCloud computing\nWhat is cloud computing?\nWhat is cloud migration?\nWhat is a hybrid cloud?\nWhat is AI?\nWhat is IaaS?\nWhat is SaaS?\nWhat is PaaS?\nWhat is DevOps?\nChange language\nEnglish (US)\nČeština\nDansk\nDeutsch\nEnglish (Australia)\nEnglish (Canada)\nEnglish (India)\nEnglish (UK)\nEspañol\nEspañol (MX)\nFrançais\nFrançais (Canada)\nIndonesia\nItaliano\nMagyar\nNorsk\nNederlands\nPolski\nPortuguês (Brasil)\nPortuguês\nSvenska\nTürkçe\nPусский\n日本語\n한국어\n中文(简体)\n中文(繁體)\nYour Privacy Choices\nConsumer Health Privacy\nDiversity and Inclusion\nAccessibility\nPrivacy & Cookies\nData Protection Notice\nTrademarks\nTerms of use\nPrivacy Data Management\nManage cookies\nContact us\nFeedback\nSitemap\n© Microsoft 2024\n```\n\nYou are provided with a raw extracted text from a PDF render of a web page. This web page could be a blog, documentation, or any other type of web page.\n\nYour task is to format the text in a way that is easy to read and understand and include more detail.\n\nYou are essentially a RAW text to clean Markdown convertor. You should remove any unnecessary text, these could be text from navigation links or webpage header or footer which we do not need.\n\nIf it's a documentation with code, try to focus more on the code examples and the explanation of the code, make your responses short to save context window.\n\nYou should only respond with the formatted text in markdown format and nothing else. Start your response with \"```\" and end with \"```\".<|im_end|>\n<|im_start|>assistant\n" + +[1713773448] next result cancel on stop + +time=2024-04-22T08:10:33.212Z level=DEBUG source=routes.go:249 msg="generate handler" prompt="For the provided step-by-step plan, write all the necessary search queries to gather information from the web that the base model doesn't already know.\n\nWrite optimized search queries for each step of the plan, just like how you would write a Google search query. Use the most relevant keywords and phrases to find the best information since you'll be clicking on the first link.\n\nalso only ask for information if you think it's necessary, otherwise leave ask_user field empty.\n\nStep-by-Step Plan:\nProject Name: Azure Portal Login Plan\nYour Reply to the Human Prompter: I am creating a step-by-step plan to login to portal.azure.com as per your request.\nCurrent Focus: The main objective is to log in to the Azure Portal.\nPlan:\n- [ ] Step 1: Open a web browser and navigate to portal.azure.com.\n- [ ] Step 2: Enter your Microsoft account email address and password.\n- [ ] Step 3: Click on the 'Sign In' button to authenticate and access the Azure Portal.\nSummary: The plan involves opening a web browser, navigating to the Azure Portal website, entering the user's credentials, and clicking on the sign-in button. This should allow for successful login and access to the portal.\n\nOnly respond in the following JSON format:\n\n```\n{\n \"queries\": [\n \"\",\n \"\"\n ],\n \"ask_user\": \"\"\n}\n```\n\nKeywords for Search Query: Azure, Portal, Objective, Log, Main\n\nExample \"queries\": [\"How to do Bing Search via API in Python\", \"Claude API Documentation Python\"]\nExample \"ask_user\": \"Can you please provide API Keys for Claude, OpenAI, and Firebase?\"\n\nRules:\n- Only search for a maximum of 3 queries.\n- Do not search anything that you already know (In your training data, in the base model). For example: You already know how to write a Python flask web server, it is in your data, so you shouldn't search how to do that.\n- Do not search for information that is not relevant to the task at hand.\n- Try to include contextual keywords into your search queries, adding relevant keywords and phrases to make the search queries as specific as possible.\n- Only search for documentation, do not search basic how tos. Forbidden Queries: How to install XYZ, How to setup ABC, etc.\n- Do not search for basic queries, only search for advanced and specific queries. You are allowed to leave the \"queries\" field empty if no search queries are needed for the step.\n- DO NOT EVER SEARCH FOR BASIC QUERIES. ONLY SEARCH FOR ADVANCED QUERIES.\n- YOU ARE ALLOWED TO LEAVE THE \"queries\" FIELD EMPTY IF NO SEARCH QUERIES ARE NEEDED FOR THE STEP.\n\nRemember to only make search queries for resources that might require external information (like Documentation or a Blog or an Article). If the information is already known to you or commonly known, there is no need to search for it.\n\nThe `queries` key and the `ask_user` key can be empty list and string respectively if no search queries or user input are needed for the step. Try to keep the number of search queries to a minimum to save context window. One query per subject.\n\nOnly search for documentation or articles that are relevant to the task at hand. Do not search for general information.\n\nTry to include contextual keywords into your search queries, adding relevant keywords and phrases to make the search queries as specific as possible.\n\nOnly the provided JSON response format is accepted. Any other response format will be rejected." + +time=2024-04-22T08:10:23.269Z level=DEBUG source=routes.go:249 msg="generate handler" prompt="You are Devika, an AI Software Engineer.\n\nOne of your AI agent module is currently working through the following prompt:\n\n```\nProject Name: Azure Portal Login Plan\nYour Reply to the Human Prompter: I am creating a step-by-step plan to login to portal.azure.com as per your request.\nCurrent Focus: The main objective is to log in to the Azure Portal.\nPlan:\n- [ ] Step 1: Open a web browser and navigate to portal.azure.com.\n- [ ] Step 2: Enter your Microsoft account email address and password.\n- [ ] Step 3: Click on the 'Sign In' button to authenticate and access the Azure Portal.\nSummary: The plan involves opening a web browser, navigating to the Azure Portal website, entering the user's credentials, and clicking on the sign-in button. This should allow for successful login and access to the portal.\n```\n\nTo show the user what you're thinking about or doing, respond with a short human-like response verbalizing your internal monologue.\n\nYour response should be in the following JSON format:\n\n```\n{\n \"internal_monologue\": \"\"\n}\n```\n\nTIP: Make the internal monologue very human-like and conversational. It should be very short and concise.\n\nOnly the provided JSON response format is accepted. Any other response format will be rejected." + +time=2024-04-22T08:10:23.269Z level=DEBUG source=routes.go:282 msg="generate handler" prompt="<|im_start|>system\nYou are Dolphin, a helpful AI assistant.\n<|im_end|>\n<|im_start|>user\nYou are Devika, an AI Software Engineer.\n\nOne of your AI agent module is currently working through the following prompt:\n\n```\nProject Name: Azure Portal Login Plan\nYour Reply to the Human Prompter: I am creating a step-by-step plan to login to portal.azure.com as per your request.\nCurrent Focus: The main objective is to log in to the Azure Portal.\nPlan:\n- [ ] Step 1: Open a web browser and navigate to portal.azure.com.\n- [ ] Step 2: Enter your Microsoft account email address and password.\n- [ ] Step 3: Click on the 'Sign In' button to authenticate and access the Azure Portal.\nSummary: The plan involves opening a web browser, navigating to the Azure Portal website, entering the user's credentials, and clicking on the sign-in button. This should allow for successful login and access to the portal.\n```\n\nTo show the user what you're thinking about or doing, respond with a short human-like response verbalizing your internal monologue.\n\nYour response should be in the following JSON format:\n\n```\n{\n \"internal_monologue\": \"\"\n}\n```\n\nTIP: Make the internal monologue very human-like and conversational. It should be very short and concise.\n\nOnly the provided JSON response format is accepted. Any other response format will be rejected.<|im_end|>\n<|im_start|>assistant\n" + +time=2024-04-22T08:10:33.212Z level=DEBUG source=routes.go:282 msg="generate handler" prompt="<|im_start|>system\nYou are Dolphin, a helpful AI assistant.\n<|im_end|>\n<|im_start|>user\nFor the provided step-by-step plan, write all the necessary search queries to gather information from the web that the base model doesn't already know.\n\nWrite optimized search queries for each step of the plan, just like how you would write a Google search query. Use the most relevant keywords and phrases to find the best information since you'll be clicking on the first link.\n\nalso only ask for information if you think it's necessary, otherwise leave ask_user field empty.\n\nStep-by-Step Plan:\nProject Name: Azure Portal Login Plan\nYour Reply to the Human Prompter: I am creating a step-by-step plan to login to portal.azure.com as per your request.\nCurrent Focus: The main objective is to log in to the Azure Portal.\nPlan:\n- [ ] Step 1: Open a web browser and navigate to portal.azure.com.\n- [ ] Step 2: Enter your Microsoft account email address and password.\n- [ ] Step 3: Click on the 'Sign In' button to authenticate and access the Azure Portal.\nSummary: The plan involves opening a web browser, navigating to the Azure Portal website, entering the user's credentials, and clicking on the sign-in button. This should allow for successful login and access to the portal.\n\nOnly respond in the following JSON format:\n\n```\n{\n \"queries\": [\n \"\",\n \"\"\n ],\n \"ask_user\": \"\"\n}\n```\n\nKeywords for Search Query: Azure, Portal, Objective, Log, Main\n\nExample \"queries\": [\"How to do Bing Search via API in Python\", \"Claude API Documentation Python\"]\nExample \"ask_user\": \"Can you please provide API Keys for Claude, OpenAI, and Firebase?\"\n\nRules:\n- Only search for a maximum of 3 queries.\n- Do not search anything that you already know (In your training data, in the base model). For example: You already know how to write a Python flask web server, it is in your data, so you shouldn't search how to do that.\n- Do not search for information that is not relevant to the task at hand.\n- Try to include contextual keywords into your search queries, adding relevant keywords and phrases to make the search queries as specific as possible.\n- Only search for documentation, do not search basic how tos. Forbidden Queries: How to install XYZ, How to setup ABC, etc.\n- Do not search for basic queries, only search for advanced and specific queries. You are allowed to leave the \"queries\" field empty if no search queries are needed for the step.\n- DO NOT EVER SEARCH FOR BASIC QUERIES. ONLY SEARCH FOR ADVANCED QUERIES.\n- YOU ARE ALLOWED TO LEAVE THE \"queries\" FIELD EMPTY IF NO SEARCH QUERIES ARE NEEDED FOR THE STEP.\n\nRemember to only make search queries for resources that might require external information (like Documentation or a Blog or an Article). If the information is already known to you or commonly known, there is no need to search for it.\n\nThe `queries` key and the `ask_user` key can be empty list and string respectively if no search queries or user input are needed for the step. Try to keep the number of search queries to a minimum to save context window. One query per subject.\n\nOnly search for documentation or articles that are relevant to the task at hand. Do not search for general information.\n\nTry to include contextual keywords into your search queries, adding relevant keywords and phrases to make the search queries as specific as possible.\n\nOnly the provided JSON response format is accepted. Any other response format will be rejected.<|im_end|>\n<|im_start|>assistant\n" + +time=2024-04-22T08:10:48.218Z level=DEBUG source=routes.go:249 msg="generate handler" prompt="For the provided step-by-step plan, write all the necessary search queries to gather information from the web that the base model doesn't already know.\n\nWrite optimized search queries for each step of the plan, just like how you would write a Google search query. Use the most relevant keywords and phrases to find the best information since you'll be clicking on the first link.\n\nalso only ask for information if you think it's necessary, otherwise leave ask_user field empty.\n\nStep-by-Step Plan:\nProject Name: Azure Portal Login Plan\nYour Reply to the Human Prompter: I am creating a step-by-step plan to login to portal.azure.com as per your request.\nCurrent Focus: The main objective is to log in to the Azure Portal.\nPlan:\n- [ ] Step 1: Open a web browser and navigate to portal.azure.com.\n- [ ] Step 2: Enter your Microsoft account email address and password.\n- [ ] Step 3: Click on the 'Sign In' button to authenticate and access the Azure Portal.\nSummary: The plan involves opening a web browser, navigating to the Azure Portal website, entering the user's credentials, and clicking on the sign-in button. This should allow for successful login and access to the portal.\n\nOnly respond in the following JSON format:\n\n```\n{\n \"queries\": [\n \"\",\n \"\"\n ],\n \"ask_user\": \"\"\n}\n```\n\nKeywords for Search Query: Azure, Portal, Objective, Log, Main\n\nExample \"queries\": [\"How to do Bing Search via API in Python\", \"Claude API Documentation Python\"]\nExample \"ask_user\": \"Can you please provide API Keys for Claude, OpenAI, and Firebase?\"\n\nRules:\n- Only search for a maximum of 3 queries.\n- Do not search anything that you already know (In your training data, in the base model). For example: You already know how to write a Python flask web server, it is in your data, so you shouldn't search how to do that.\n- Do not search for information that is not relevant to the task at hand.\n- Try to include contextual keywords into your search queries, adding relevant keywords and phrases to make the search queries as specific as possible.\n- Only search for documentation, do not search basic how tos. Forbidden Queries: How to install XYZ, How to setup ABC, etc.\n- Do not search for basic queries, only search for advanced and specific queries. You are allowed to leave the \"queries\" field empty if no search queries are needed for the step.\n- DO NOT EVER SEARCH FOR BASIC QUERIES. ONLY SEARCH FOR ADVANCED QUERIES.\n- YOU ARE ALLOWED TO LEAVE THE \"queries\" FIELD EMPTY IF NO SEARCH QUERIES ARE NEEDED FOR THE STEP.\n\nRemember to only make search queries for resources that might require external information (like Documentation or a Blog or an Article). If the information is already known to you or commonly known, there is no need to search for it.\n\nThe `queries` key and the `ask_user` key can be empty list and string respectively if no search queries or user input are needed for the step. Try to keep the number of search queries to a minimum to save context window. One query per subject.\n\nOnly search for documentation or articles that are relevant to the task at hand. Do not search for general information.\n\nTry to include contextual keywords into your search queries, adding relevant keywords and phrases to make the search queries as specific as possible.\n\nOnly the provided JSON response format is accepted. Any other response format will be rejected." + +time=2024-04-22T08:10:48.218Z level=DEBUG source=routes.go:282 msg="generate handler" prompt="<|im_start|>system\nYou are Dolphin, a helpful AI assistant.\n<|im_end|>\n<|im_start|>user\nFor the provided step-by-step plan, write all the necessary search queries to gather information from the web that the base model doesn't already know.\n\nWrite optimized search queries for each step of the plan, just like how you would write a Google search query. Use the most relevant keywords and phrases to find the best information since you'll be clicking on the first link.\n\nalso only ask for information if you think it's necessary, otherwise leave ask_user field empty.\n\nStep-by-Step Plan:\nProject Name: Azure Portal Login Plan\nYour Reply to the Human Prompter: I am creating a step-by-step plan to login to portal.azure.com as per your request.\nCurrent Focus: The main objective is to log in to the Azure Portal.\nPlan:\n- [ ] Step 1: Open a web browser and navigate to portal.azure.com.\n- [ ] Step 2: Enter your Microsoft account email address and password.\n- [ ] Step 3: Click on the 'Sign In' button to authenticate and access the Azure Portal.\nSummary: The plan involves opening a web browser, navigating to the Azure Portal website, entering the user's credentials, and clicking on the sign-in button. This should allow for successful login and access to the portal.\n\nOnly respond in the following JSON format:\n\n```\n{\n \"queries\": [\n \"\",\n \"\"\n ],\n \"ask_user\": \"\"\n}\n```\n\nKeywords for Search Query: Azure, Portal, Objective, Log, Main\n\nExample \"queries\": [\"How to do Bing Search via API in Python\", \"Claude API Documentation Python\"]\nExample \"ask_user\": \"Can you please provide API Keys for Claude, OpenAI, and Firebase?\"\n\nRules:\n- Only search for a maximum of 3 queries.\n- Do not search anything that you already know (In your training data, in the base model). For example: You already know how to write a Python flask web server, it is in your data, so you shouldn't search how to do that.\n- Do not search for information that is not relevant to the task at hand.\n- Try to include contextual keywords into your search queries, adding relevant keywords and phrases to make the search queries as specific as possible.\n- Only search for documentation, do not search basic how tos. Forbidden Queries: How to install XYZ, How to setup ABC, etc.\n- Do not search for basic queries, only search for advanced and specific queries. You are allowed to leave the \"queries\" field empty if no search queries are needed for the step.\n- DO NOT EVER SEARCH FOR BASIC QUERIES. ONLY SEARCH FOR ADVANCED QUERIES.\n- YOU ARE ALLOWED TO LEAVE THE \"queries\" FIELD EMPTY IF NO SEARCH QUERIES ARE NEEDED FOR THE STEP.\n\nRemember to only make search queries for resources that might require external information (like Documentation or a Blog or an Article). If the information is already known to you or commonly known, there is no need to search for it.\n\nThe `queries` key and the `ask_user` key can be empty list and string respectively if no search queries or user input are needed for the step. Try to keep the number of search queries to a minimum to save context window. One query per subject.\n\nOnly search for documentation or articles that are relevant to the task at hand. Do not search for general information.\n\nTry to include contextual keywords into your search queries, adding relevant keywords and phrases to make the search queries as specific as possible.\n\nOnly the provided JSON response format is accepted. Any other response format will be rejected.<|im_end|>\n<|im_start|>assistant\n" diff --git a/_containers/devika/prompts.md b/_containers/devika/prompts.md new file mode 100644 index 0000000..bd3f108 --- /dev/null +++ b/_containers/devika/prompts.md @@ -0,0 +1 @@ +create a python app that will watch for new pairs on https://www.dextools.io/app/en/pairs (we need to crawl that with JS enabled to pull the actual content) and provide option to execute a HTTP request to an API to inform about the new pair diff --git a/_containers/devika/setup.gist b/_containers/devika/setup.gist index 7eba67a..da40263 100644 --- a/_containers/devika/setup.gist +++ b/_containers/devika/setup.gist @@ -4,6 +4,12 @@ conda activate devika which python /config/miniconda3/envs/devika/bin/python -m pip install -r requirements.txt +fix browser issue +#apt --fix-broken install +#sudo apt-get update +#sudo apt-get install libnss3 + + /ui#>? playwright install --with-deps npm install diff --git a/agent-pyter/dexbot.py b/agent-pyter/dexbot.py index fe5561b..e1f225f 100644 --- a/agent-pyter/dexbot.py +++ b/agent-pyter/dexbot.py @@ -1,14 +1,22 @@ import requests from bs4 import BeautifulSoup -import schedule +# import schedule import time +# pip install requests beautifulsoup4 schedule + def check_new_pairs(): + # log the running time + print("Checking for new pairs...") url = "https://www.dextools.io/" url = "https://www.dextools.io/app/en/bnb/pool-explorer" response = requests.get(url) soup = BeautifulSoup(response.text, 'html.parser') + # make html dump to ./dextools-last.html + with open('dextools-last.html', 'w') as f: + f.write(soup.prettify()) + # Assuming the pairs are listed in
tags with a class that includes the word 'pair' pairs = soup.find_all('div', class_=lambda x: x and 'pair' in x) @@ -26,11 +34,12 @@ def check_new_pairs(): check_new_pairs.last_pairs = current_pairs def main(): - schedule.every(10).seconds.do(check_new_pairs) + #schedule.every(10).seconds.do(check_new_pairs) while True: - schedule.run_pending() - time.sleep(1) + # schedule.run_pending() + check_new_pairs() + time.sleep(10000) if __name__ == "__main__": main() diff --git a/agent-pyter/notes.md b/agent-pyter/notes.md index bbdafa1..51f6426 100644 --- a/agent-pyter/notes.md +++ b/agent-pyter/notes.md @@ -1 +1,12 @@ -https://github.com/ccxt/ccxt/tree/master/examples/py/ \ No newline at end of file +https://github.com/ccxt/ccxt/tree/master/examples/py/ + + + +playwright._impl._errors.TargetClosedError: Target page, context or browser has been closed +Browser logs: + + /config/.cache/ms-playwright/chromium-1105/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --user-data-dir=/tmp/playwright_chromiumdev_profile-kMyQDr --remote-debugging-pipe --no-startup-window + pid=1019347 +[pid=1019347][err] /config/.cache/ms-playwright/chromium-1105/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory +[pid=1019347] +[pid=1019347] starting temporary directories cleanup \ No newline at end of file