开始使用免费开始使用

Memory that powers flows

本练习是课程的一部分

Building AI Agents with CrewAI

查看课程

练习说明

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 ContentState class as an instance of BaseModel.
  • Add the missing fields: url, a string, and metadata, 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.


动手互动练习

通过我们的互动练习之一,将理论转化为实践

开始练习