WEBVTT

00:00.280 --> 00:05.200
Now that we created the tool that would run Zap proxy, let's go ahead and create this cybersecurity

00:05.240 --> 00:05.760
agent.

00:05.920 --> 00:12.080
For that, I will create a Python file, name it as Web Security Vulnerability Scan agent.

00:12.480 --> 00:20.400
In here I'm going to use the crew AI components and packages to run the agent task and the tool together.

00:21.160 --> 00:28.320
So now I'm going to import crew base agent crew and task from the crew AI base package.

00:28.480 --> 00:31.080
And then I'll also import from source tools.

00:31.080 --> 00:32.880
I will import zap proxy.

00:33.080 --> 00:36.960
So now what I'm going to do is I'm going to quickly go ahead and create a class.

00:37.160 --> 00:40.160
This is going to do specifically pen testing.

00:40.400 --> 00:44.480
So pen test agent and I'll annotate this as a crew base.

00:44.680 --> 00:46.600
So now this is a pen test agent.

00:46.880 --> 00:47.840
Crew agent.

00:48.280 --> 00:53.760
Now what I'm going to do is I'm we'll have to import the two files that we created initially.

00:54.120 --> 00:58.920
So for that I will go ahead and write the agent configs that we initially wrote.

00:58.920 --> 01:01.250
It's a config and test agents.

01:01.490 --> 01:06.570
And then here the task config is config and test tasks.

01:06.930 --> 01:09.410
Now I will go ahead and write the agents.

01:09.410 --> 01:11.210
For that I'll say agent.

01:11.410 --> 01:14.610
I'll create a function that says pen test planner.

01:14.890 --> 01:17.010
And then this will give us the agent.

01:17.290 --> 01:18.650
That should be good enough.

01:19.010 --> 01:23.490
And then what I'm going to do is return an object as agent type.

01:23.690 --> 01:26.370
So config is one of the object that it needs.

01:26.690 --> 01:30.410
Let me go ahead and use the existing code base and I'll walk you through it.

01:31.490 --> 01:33.570
So here we have to import agent.

01:33.930 --> 01:37.090
So for that let me go ahead and input the right agent class.

01:37.290 --> 01:38.970
So this is our agent.

01:38.970 --> 01:42.290
So now I will go ahead and define the task that we created earlier.

01:42.530 --> 01:46.170
And I'll name this as Pen test security research task.

01:46.530 --> 01:47.090
Right.

01:47.330 --> 01:52.010
And this is this does very similar things like we did it earlier.

01:52.330 --> 01:54.850
It annotates the method with the task.

01:55.330 --> 02:01.950
And in here we are giving this task config as the name of the task that we wanted to use from this task

02:01.950 --> 02:04.510
file, and this is the agent file.

02:04.830 --> 02:10.870
So now coming to the final step where we will create the crew class or the crew agent.

02:11.110 --> 02:15.750
So for that I am editing this method crew by the name at crew.

02:15.990 --> 02:23.150
And then this is the method that will create the crew class with by passing all the agents, task and

02:23.150 --> 02:28.150
processes that we want to run all of this sequentially, one after another.

02:28.910 --> 02:33.870
And memory is true where we are passing memory from one call to another.

02:34.190 --> 02:40.310
We'll use this memory extensively in our next video Agentic calls, but for now, I'll make this as

02:40.310 --> 02:45.030
false and I will import process from the crew I package.

02:45.270 --> 02:46.030
All good.

02:46.350 --> 02:49.630
So now we have completed the entire Agentic flow.

02:49.670 --> 02:56.830
Let's go ahead and execute this and learn how this thing works end to end by taking a deep dive into

02:56.830 --> 02:57.310
it.

02:57.310 --> 02:59.990
Thank you and I'll see you in the next video.
