@@ -6,29 +6,50 @@ description: Learn the basics of the AI Agent SDK in a few minutes.
6
6
7
7
<Steps >
8
8
<Step title = " Start with a template" >
9
- <pre ><code >npx @covalenthq/create-zee-app </code ></pre >
9
+ ``` typescript
10
+ npx @covalenthq / create - zee - app
11
+ ```
10
12
</Step >
13
+
11
14
<Step title = " Modify the agent" >
12
- <pre ><code >{ ` const agent1 = new Agent({
13
- name: "Agent1",
14
- model: {
15
- provider: "OPEN_AI",
16
- name: "gpt-4o-mini",
17
- },
18
- description: "A helpful AI assistant that can engage in conversation.",
19
- }); ` } </code ></pre >
15
+ <CodeGroup >
16
+ ``` typescript
17
+ const agent1 = new Agent ({
18
+ name: " Agent1" ,
19
+ model: {
20
+ provider: " OPEN_AI" ,
21
+ name: " gpt-4o-mini" ,
22
+ },
23
+ description: " A helpful AI assistant that can engage in conversation." ,
24
+ });
25
+ ```
26
+ </CodeGroup >
20
27
</Step >
28
+
21
29
<Step title = " Modify the ZEE Workflow" >
22
- <pre ><code >{ ` const zee = new ZeeWorkflow({
23
- description: "A workflow of agents that do stuff together",
24
- output: "Just bunch of stuff",
25
- agents: { agent1, agent2 },
26
- }); ` } </code ></pre >
30
+
31
+ <CodeGroup >
32
+ ``` typescript
33
+ const zee = new ZeeWorkflow ({
34
+ description: " A workflow of agents that do stuff together" ,
35
+ output: " Just bunch of stuff" ,
36
+ agents: { agent1 , agent2 },
37
+ });
38
+ ```
39
+ </CodeGroup >
27
40
</Step >
41
+
28
42
<Step title = " Run the Zee Workflow" >
29
- <pre ><code >{ ` (async function main() {
30
- const result = await ZeeWorkflow.run(zee);
31
- console.log(result);
32
- })(); ` } </code ></pre >
43
+
44
+ <CodeGroup >
45
+ ``` typescript
46
+ (async function main() {
47
+ const result = await ZeeWorkflow .run (zee );
48
+ console .log (result );
49
+ })();
50
+ ```
51
+ </CodeGroup >
52
+
53
+
33
54
</Step >
34
55
</Steps >
0 commit comments