AI Engineer Beginner Project 1: Agentic Behavior (Full Code)

  Рет қаралды 7,604

All About AI

All About AI

Күн бұрын

To try everything Brilliant has to offer-free-for a full 30 days, visit brilliant.org/AllAboutAI . You’ll also get 20% off an annual premium subscription
👊 Become a member and get access to GitHub and Code:
/ allaboutai
🤖 AI Engineer Course:
scrimba.com/learn/aiengineer?...
📧 Join the newsletter:
www.allabtai.com/newsletter/
🌐 My website:
www.allabtai.com
In this video I share a ai engineer beginners project where you can create a agentic behavior using two llm apis and adding text-to-speech and adjusting the prompts to your needs and intereste
00:00 Agentic Behavior Project
02:00 Brilliant
03:18 Full Code
15:00 Testing the code
19:17 Conclusion
This video was sponsored by Brilliant

Пікірлер: 37
@AllAboutAI
@AllAboutAI Ай бұрын
Brilliant: To try everything Brilliant has to offer-free-for a full 30 days, visit brilliant.org/AllAboutAI . You’ll also get 20% off an annual premium subscription
@RowanSheridan
@RowanSheridan Ай бұрын
Bot replying to your own posts 😂
@user-ru1qz1bo2q
@user-ru1qz1bo2q Ай бұрын
This is very helpful, Kris! I've been wanting to play around with building agents but the 3rd party options (Langchain, Autogen, CrewAI, etc.) are all exceedingly over-complicated, the code is deeply obscured and obfuscated and the dependency requirements tend to be quite extreme. Most importantly, they don't generally work at all well with smaller local models, and since the only way to adapt them would be through adjustments to the underlying prompts (which are obscured below multiple layers of unintelligible code) we need a solution that gives us direct access to what is going on under the bonnet. Your example is very basic, but can provide a jumping off point for developing customized and functional agent systems. Thank you!!
@AllAboutAI
@AllAboutAI Ай бұрын
thnx a lot mate, really appreciate the feedback :) yeah i know what you mean, a lot of the existing options can be pretty over-engineered. that's why i wanted to share something a bit more basic and approachable, where you have more control over the inner workings. i'm glad you found it helpful as a starting point. let me know if you have any other questions!
@kamelirzouni4730
@kamelirzouni4730 Ай бұрын
Another fascinating project! I really appreciate the integration of agents' thought processes, adding an explanatory layer to their interactions. Exploring creative interactions in unresolved areas could be intriguing.
@AllAboutAI
@AllAboutAI Ай бұрын
thnx :) yeah, i really enjoyed playing around with this. i'm just exploring some ideas for how ai systems could have more natural and thoughtful conversations in the future. lots of interesting avenues to explore there! let me know if you have any other questions.
@JolionVT
@JolionVT Ай бұрын
This already gonna be a banger
@AllAboutAI
@AllAboutAI Ай бұрын
thnx mate :) im really excited to see what people come up with using this! let me know if you have any other questions.
@AEnoob
@AEnoob Ай бұрын
Was waiting for some beginner projects ty
@AllAboutAI
@AllAboutAI Ай бұрын
thnx :) i have some beginner friendly projects in the member section. but i might do a vid on the channel soon too, stay tuned!
@micbab-vg2mu
@micbab-vg2mu Ай бұрын
Great video -thank you:)
@AllAboutAI
@AllAboutAI Ай бұрын
thnx a lot :) glad you enjoyed it! be sure to check out the community github if you become a member, lots more fun stuff there :)
@TheHistoryCode125
@TheHistoryCode125 Ай бұрын
This video is a beginner AI project on creating "agentic behavior" by having two AI agents autonomously interact with each other. The creator uses Python, OpenAI's GPT-4, Anthropic's Claude, and 11 Labs' text-to-speech, but you can use any models. The key steps are: 1) Set up API keys/clients 2) Define text-to-speech and audio playback functions 3) Create agent chat functions that take user input, a "system message" to define the agent's personality, and a memory of the conversation 4) In the main function, get user input for conversation topics and max messages, update the agents' system messages, and kick off the conversation with an initial message 5) Loop through the agents having a back-and-forth conversation, using the chat functions and updating their memories each turn, until the max messages is reached. The video doesn't go in-depth on optimizing the prompts, handling errors, or creating an actual two-way infinite conversation loop. It's more of a simple demo of the concept than a complete, production-ready system.
@AllAboutAI
@AllAboutAI Ай бұрын
thanks for the detailed breakdown, sounds like an interesting project! as mentioned in the video, i've put the code up on the community github for members. if you become a member, just send me an email at kris@allabtai.com and i'll get you set up with access. would love to hear your thoughts on how to expand and improve the system!
@N_Wisdom
@N_Wisdom Ай бұрын
your are very Genius
@AllAboutAI
@AllAboutAI Ай бұрын
thnx a lot, but i still have a lot to learn :) happy to keep sharing my experiments though!
@yannolaf
@yannolaf Ай бұрын
마지막 대화가 어떻게 이어졌을지 관심이 쏠렸을 것이다. :)
@AllAboutAI
@AllAboutAI Ай бұрын
thanks :) yeah i was really curious to see how that conversation would go as well! i tried to set up some interesting topics for mike and annie to discuss. but you can customize the prompts to get all kinds of different interactions. i'm looking forward to seeing what other users come up with too!
@camcamkiller
@camcamkiller Ай бұрын
The link to your discord is broke :(
@AllAboutAI
@AllAboutAI Ай бұрын
aw man, that sucks :( if you become a channel member, i'll get you set up on the discord asap!
@YT_Jx
@YT_Jx Ай бұрын
Hmm, Kris, why did you cut off the agents when they started critiquing your code? hehe
@AllAboutAI
@AllAboutAI Ай бұрын
haha yeah, i guess i should have let them go on a bit more :) but i wanted to keep it short and sweet for the vid. no worries tho, the full code with all the agent interaction will be up on the github for members!
@KolTregaskes
@KolTregaskes Ай бұрын
16:25 It sounds like they are each hearing each other thoughts, the male AI thought the female AI might not like the AI topic before she said it out loud to him. Perhaps edit the prompt so each agent thinks independently of each other?
@AllAboutAI
@AllAboutAI Ай бұрын
yeah, i agree. the thoughts component is a bit too explicit atm. i think making them more independent could be better. i'll explore that in a future update. thanks for the feedback!
@ZombieRPGee
@ZombieRPGee Ай бұрын
Love your videos! I suggest you change your channel name to 'The Bearded Swede' :P
@AllAboutAI
@AllAboutAI Ай бұрын
haha, i like your sense of humor! although i'm actually Norwegian, not a Swede ;) but thanks, the bearded part is definitely accurate! glad you're enjoying the videos, and looking forward to continuing to make more content for the community!
@elyakimlev
@elyakimlev Ай бұрын
Where are the agents here? These are just normal chat bots with their own contexts talking to each other. I thought you were going to introduce LangChain and web browsing agents or coding agents or other agents that supplement the basic LLM capabilities.
@AllAboutAI
@AllAboutAI Ай бұрын
hey mate, thanks for the feedback! this is just a simple demo i threw together to showcase the idea of having two ai "agents" have a back-and-forth conversation. i wanted to keep it pretty straightforward for this video, but you're absolutely right that there's tons of scope to build more advanced systems using things like langchain, web browsing, coding, and so on. that's definitely something i want to explore more in the future. for now, i just wanted to put out a basic example to get people thinking about the potential. but i appreciate the suggestion, and i'll make sure to look into incorporating more advanced agent capabilities in future projects! let me know if you have any other ideas.
@playthisnote
@playthisnote Ай бұрын
Heh two agents are the same as two request!
@ASchnacky
@ASchnacky 10 күн бұрын
the green convo is narcissistic trying to manipulate the other into their fantasy while the yellow convo thinks the green actually cares about their interest lol
@amandamate9117
@amandamate9117 Ай бұрын
was so obvious that with time you will use a cap lol
@AllAboutAI
@AllAboutAI Ай бұрын
thnx:) i try to keep it casual usually, but can always mix it up! let me know if you have any other feedback.
@playthisnote
@playthisnote Ай бұрын
Kinda need a before and after thoughts not just after.
@AllAboutAI
@AllAboutAI Ай бұрын
yeah, i can see that would be helpful. i'll try to add some more of the before thoughts in future demos. thanks for the feedback! :)
@fnice1971
@fnice1971 Ай бұрын
Can you see if you can get AutoDev to work? interested in this.
The Complete Guide to Building AI Agents for Beginners
28:43
Парковка Пошла Не По Плану 😨
00:12
Глеб Рандалайнен
Рет қаралды 14 МЛН
Teenagers Show Kindness by Repairing Grandmother's Old Fence #shorts
00:37
Fabiosa Best Lifehacks
Рет қаралды 7 МЛН
CAN FOXY TRICK HIM?! 🤣 #shorts *FOXY AND NUGGET!*
00:17
LankyBox
Рет қаралды 13 МЛН
AI Expert Explains Future Programming Jobs… and Python
9:59
Travis Media
Рет қаралды 271 М.
AI Pioneer Shows The Power of AI AGENTS - "The Future Is Agentic"
23:47
Fine-tune Multi-modal LLaVA Vision and Language Models
51:06
Trelis Research
Рет қаралды 10 М.
Self-Correcting AI Coding Agent + Prompting Deep Dive
17:45
All About AI
Рет қаралды 12 М.
Build Anything with AI Agents, Here's How
29:49
David Ondrej
Рет қаралды 125 М.
Learn To Code Like a GENIUS and Not Waste Time
9:41
The Coding Sloth
Рет қаралды 982 М.
Reliable, fully local RAG agents with LLaMA3
21:19
LangChain
Рет қаралды 58 М.
Как открыть дверь в Jaecoo J8? Удобно?🤔😊
0:27
Суворкин Сергей
Рет қаралды 945 М.
Почему сканер ставят так не удобно?
0:47
Не шарю!
Рет қаралды 869 М.
Subscribe for more!! #procreate #logoanimation #roblox
0:11
Animations by danny
Рет қаралды 3,8 МЛН
Я Создал Новый Айфон!
0:59
FLV
Рет қаралды 2,1 МЛН
Result of the portable iPhone electrical machine #hacks
1:01
KevKevKiwi
Рет қаралды 7 МЛН