Memory that powers flows
Questo esercizio fa parte del corso
Building AI Agents with CrewAI
Istruzioni dell'esercizio
So far, your agent can take on tasks and deliver results. But for more complex workflows, it’s crucial that the system can remember what has happened. That’s where state comes in! Here's what you'll need to do to define a state model for your flow:
- Initialize the
ContentStateclass as an instance ofBaseModel. - Add the missing fields:
url, a string, andmetadata, a dictionary.
Note: If you’re running DataLab in Restricted Mode, this exercise isn’t supported yet. We’re actively working on making it available in the future.
Esercizio pratico interattivo
Passa dalla teoria alla pratica con uno dei nostri esercizi interattivi
Inizia esercizio