CrewAI Noob vs Pro Tools

  Рет қаралды 986

aiwithbrandon

aiwithbrandon

Күн бұрын

Пікірлер: 13
@chrisgscott
@chrisgscott 9 сағат бұрын
Loving this series! Working on something that sends outputs from tasks to a supabase db as tasks complete. How do you decide between using a callback function vs a custom tool for something like that?
@gerasimosplegas5699
@gerasimosplegas5699 7 сағат бұрын
Sending outputs of tasks to supabase. Mind if you shared an example?
@chrisgscott
@chrisgscott 4 сағат бұрын
@ yeah, so I’m building something that has a bunch of tasks that each do a very specific bit of research asynchronously and spit out a report on the thing they researched. Right now I’m using a callback function to send those reports individually to a supabase table so they can be displayed on the front end (nextjs). Wondering if I’d be better served by creating a custom tool instead and just giving the agents or tasks access to that tool.
@gerasimosplegas5699
@gerasimosplegas5699 4 сағат бұрын
I’m trying to figure out sth similar to that. Using callback function to store each tasks output to supabase. Could you please share a snippet of how you handle that?
@chrisgscott
@chrisgscott 49 минут бұрын
@@gerasimosplegas5699 I don't have access to that project right now, but here's an example from the CrewAI docs' support bot: Here's an example of a callback function that could be used to send task output to a Supabase database: def send_to_supabase(output: TaskOutput): print(f""" Task completed! Task: {output.description} Output: {output.raw} """) # Add your Supabase database connection and insertion logic here # For example: # supabase_client.table('task_outputs').insert({ # 'task_description': output.description, # 'task_output': output.raw # }).execute() research_task = Task( description='Find and summarize the latest AI news', expected_output='A bullet list summary of the top 5 most important AI news', agent=research_agent, tools=[search_tool], callback=send_to_supabase ) So you create that callback function in your main.py and add "callback=send_to_supabase" to any task that you need the output sent to supabase. Still working on my implementation, but this is the gist of it. Hope that helps!
@KumR
@KumR 8 сағат бұрын
Hi Brandon -- How are you ? I am a fan of your work . I need some help. I have done some work in CrewAI some months back but have been out of touch. Now I see CrewAI has changed a lot . A lot of my old notebooks aren't really working now. So can you suggest how I can restart my journey of learning CrewAI ? There are many videos but am not sure which is valid and which is deprecated.. Kindly help me? If you have any paid training also pl let me know. In KZbin do you have any dedicated playlist for CrewAI ?
@sylvestersylvester7188
@sylvestersylvester7188 8 сағат бұрын
I noticed the same thing. I like your Complete Crash Course for Beginners Brandon, but watching this video I felt a bit lost with the yaml files. Do you go through them in some other video?
@gajjalayeswanth4415
@gajjalayeswanth4415 3 сағат бұрын
Hi @aiwithbrandon, How to tackle the large outputs from the tools
@seththunder2077
@seththunder2077 9 сағат бұрын
Hey brandon can u share the github link please
@bhancock_ai
@bhancock_ai 8 сағат бұрын
Hey! It’s actually the first link in the description 😁
@Alsa971
@Alsa971 9 сағат бұрын
Free!! Is the magic word that has been exploited
@sylvestersylvester7188
@sylvestersylvester7188 8 сағат бұрын
What is not free?
@MukulTripathi
@MukulTripathi 10 сағат бұрын
First?
CrewAI Noob vs Pro - God Task
26:28
aiwithbrandon
Рет қаралды 7 М.
CrewAI Flows: AI Feedback Loop
57:28
aiwithbrandon
Рет қаралды 6 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
11 Tools to Save You Hours of Time in CrewAI
20:29
Tyler AI
Рет қаралды 4,6 М.
LangGraph + CrewAI: Crash Course for Beginners [Source Code Included]
53:34
How language model post-training is done today
53:51
Interconnects AI
Рет қаралды 4,3 М.
How To Connect Llama3 to CrewAI [Groq + Ollama]
31:42
aiwithbrandon
Рет қаралды 35 М.
CrewAI RAG Deep Dive [Basic & Advanced Examples]
1:10:11
aiwithbrandon
Рет қаралды 29 М.
A Deep Dive into JVM Start-Up
22:03
Java
Рет қаралды 25 М.
UV for Python… (Almost) All Batteries Included
17:35
ArjanCodes
Рет қаралды 92 М.
I Discovered the GOD TIER Prompt Chain to Make AI Coding Foolproof!
25:00