The Best Code AI Agent just dropped, Taskweaver from Microsoft Setup Tutorial
Key Takeaways
The video demonstrates how to set up and use TaskWeaver, a code-first AI agent framework from Microsoft, to forecast Bitcoin prices using WiFi and stats models.
Full Transcript
hello everybody today I'm going to be going over task Weaver and trying to get it to forecast Bitcoin prices task Weaver is a new AI agent released by Microsoft it's a code first agent framework for seamlessly planning and ex using data analytics tasks so it's fairly easy to set up you need to open a API key and python 3.10 or above okay so to install it you're just going to get clone into the library CD inside of it then install the requirements and for this example we're going to forecast bitcoin's price by using um WiFi and stats models to do so so what we're going to do now is open py charm my IDE I'm going to create a new project we going to call it YouTube and then I'm just going to set up a new cond environment py charm does this for me um so we're just going to name this YouTu one and then we're going to make a new window after which then we're going to open up the terminal we're going to paste these codes to clone the repo CD inside the repo then install the requirements with the PIP install requirements. text and now it's installing everything and cloning the repo so in one second it should be in here so if we look here now we have the repository inside so next step we're going to be doing is going into project task Weaver config.js we're just going to put our API key in here so we're going to put our API key between these two apostrophes I want to do that now and hide it so you guys don't steal my key that is done we're just going to go into the REM me and then get the Run command so but before we do that which the Run command is right here but before we do that we're going to copy and past these two commands to pip install wi Finance stats models for the example we want to do which is forecast the Bitcoin prices so let going to copy and paste these in here and it's going to do that for me and then we're just going to copy and paste this new command which is start Task Weaver copy paste and now we should be inside of the agent awesome so now it says I am task weer an AI assistant to get started could you please enter your request I'm going to tell it can you please forecast the Bitcoin price for next week and now it should come up with a plan so it has a planner module that plans on how to achieve the request that the user asked which in my case is a forecasted bitcoin price for next week so it should set up a strategy the strategy will be passed down to the code generator and the code generator to the code X to make sure the code works so the first plan is to the first step of the plan is to obain a historical bitcoin price data and then choose a forecasting model train the forecasting model with historical data basically feed the data into the model and then forecast the Bitcoin price for the next week which is get the output of that forecasted model and then report that back to me the user okay so it says it's now it's asking me to forecast the Bitcoin price for next week I need to obtain hisorical historical bitcoin price data can you please please provide me the stores a data file for the historical data prices and Bitcoin prices I'm going to tell it please use y Finance for this thanks okay so it should know to use wi Finance um intuitively but uh sometimes it's not having that implementation so now it's on the current plan stop which is to instruct C in mature to obtain historical bitcoin price using my finance and now it's wrote the code for that and now it got the prices and the historical prices as well prices actually which is quite good so it has all the way from 2014 till today okay so now it's telling me historical bitcoin price data has been obtained to proceed with forecasting we need to choose a forecasting model common choices include ARA L lstm neural networks or profit which one do you prefer or do you have any another model in mind use whatever best and you can you have access to okay so now I'm telling it to use whatever is best and what it has access to so it doesn't have to do anything more complicated um if I were less ignorant I would know exactly which model to suggest but I am ignorant so I will let it decipher that itself and it just passed along my model I mean my request which is please use an appropriate forecasting model which is essentially what I said and that's the step it's on choosing the forecasting model and now it's done so as you can see here task we said the Bitcoin price forecast for the next week has been generated here are the predicted closing prices so December 7th the predicted price is $44,988 4,338 I'm not sure how accurate these forecasts are or how probabilistic they are but this is just an example on how to use task Weaver to generate complic complicated code um and gener and execute the code itself so I didn't execute any of this code it did it all itself without my help in terms of writing the code I just helped it along the way and telling it what to do so I hope you guys enjoyed this video um Peace
Original Description
How to use and setup TaskWeaver, and examples of using it to forecast Bitcoin pricing.
🔗 Links
- Join my AI email list: https://www.redai.ai
- My discord: https://discord.gg/self
- PyCharm: https://www.jetbrains.com/pycharm/download/?section=mac
- Github Desktop: https://desktop.github.com/
👋🏻 About Me
My name is Ali Hamadi, an AI developer who uses AI in everything. Email me if you need help building AI apps! ali@redai.ai
#metagpt #aiagents #agents #gpt #autogpt #ai #artificialintelligence #tutorial #stepbystep #openai #llm #largelanguagemodels #largelanguagemodel #chatgpt #gpt4 #machinelearning #chatdev #autogen #autogpt #opensource
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
More on: LLM Foundations
View skill →Related Reads
📰
📰
📰
📰
I compared the real cost of running LLMs on AWS - here's when each option makes sense
Dev.to · Jerzy Kopaczewski
Building a Character-Level Bigram Language Model from Scratch with PyTorch
Dev.to · Mohamed Heni
Running NVIDIA Nemotron 3.5 ASR Locally with parakeet.cpp (and how it beat Whisper on my laptop)
Medium · LLM
When Does a Prompt Become an Undocumented Program?
Dev.to · Yura Solovey
🎓
Tutor Explanation
DeepCamp AI