Skip to content

Commit dad54f2

Browse files
committed
add below output
1 parent 317a852 commit dad54f2

File tree

1 file changed

+79
-1
lines changed

1 file changed

+79
-1
lines changed

articles/ai-foundry/agents/includes/quickstart-typescript.md

Lines changed: 79 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,82 @@ Next, create an `index.ts` file and paste in the following code:
7575

7676
:::code language="typescript" source="~/azure-sdk-for-js-docs/samples/foundry/azure-ai-agents-quickstart-math/index.ts":::
7777

78-
Run the code using `npx tsx -r dotenv/config index.ts`. This code answers the question `I need to solve the equation '3x + 11 = 14'. Can you help me?`. Full [sample source code](https://github.com/Azure-Samples/azure-sdk-for-js-docs/blob/main/samples/foundry/azure-ai-agents-quickstart-math) available.
78+
Run the code using `npx tsx -r dotenv/config index.ts`. This code answers the question `I need to solve the equation '3x + 11 = 14'. Can you help me?`. Responses aren't deterministic, your output will look similar to the below output:
79+
80+
```console
81+
Created agent, agent ID : asst_X4yDNWrdWKb8LN0SQ6xlzhWk
82+
Created thread, thread ID : thread_TxqZcHL2BqkNWl9dFzBYMIU6
83+
Threads for agent asst_X4yDNWrdWKb8LN0SQ6xlzhWk:
84+
Thread ID: thread_TxqZcHL2BqkNWl9dFzBYMIU6 created at: Fri Sep 12 2025 14:31:49 GMT-0700 (Pacific Daylight Time)
85+
Thread ID: thread_e3QMF9BqMyo0lI3fti6vw2cL created at: Fri Sep 12 2025 11:50:58 GMT-0700 (Pacific Daylight Time)
86+
Thread ID: thread_ns89NllYfdd8nxlVJqQ1yQt1 created at: Fri Sep 12 2025 11:48:23 GMT-0700 (Pacific Daylight Time)
87+
Thread ID: thread_kDM0m1F0OPqfxG4VbJZ3qz2u created at: Fri Sep 12 2025 10:36:28 GMT-0700 (Pacific Daylight Time)
88+
Thread ID: thread_IL2YEzPzF0YJAQOytU68clPL created at: Fri Sep 12 2025 10:30:56 GMT-0700 (Pacific Daylight Time)
89+
Thread ID: thread_oYuxGjdE5SdmTTwqCc8upOI5 created at: Fri Sep 12 2025 10:21:31 GMT-0700 (Pacific Daylight Time)
90+
Thread ID: thread_5Pcpl9TtS17fTrtF1kfPFG9l created at: Fri Sep 12 2025 10:18:42 GMT-0700 (Pacific Daylight Time)
91+
Thread ID: thread_fJUin6rgX4yeBUAhc7U3aS8O created at: Fri Sep 12 2025 10:12:20 GMT-0700 (Pacific Daylight Time)
92+
Thread ID: thread_aYa57scnqCzYMLnzY2dXpQqh created at: Fri Sep 12 2025 10:11:37 GMT-0700 (Pacific Daylight Time)
93+
Thread ID: thread_j5pHWrhQmM2HvAaJWn2c0sjy created at: Fri Sep 12 2025 10:10:22 GMT-0700 (Pacific Daylight Time)
94+
Thread ID: thread_sEztfhDVeR5ELiv8uYzs35Ng created at: Fri Sep 12 2025 10:06:37 GMT-0700 (Pacific Daylight Time)
95+
Thread ID: thread_rZ4rBrBq23GjYKspx5y0IyME created at: Fri Sep 12 2025 10:00:42 GMT-0700 (Pacific Daylight Time)
96+
Thread ID: thread_ZC2t71yhumF5B3wiyOFhuP8o created at: Fri Sep 12 2025 09:59:01 GMT-0700 (Pacific Daylight Time)
97+
Thread ID: thread_Z6kDHoHRp9kjZve7jYrdJSzW created at: Fri Sep 12 2025 09:56:54 GMT-0700 (Pacific Daylight Time)
98+
Thread ID: thread_y6vngbEX5zajCdgQDm22kS7G created at: Fri Sep 12 2025 09:47:10 GMT-0700 (Pacific Daylight Time)
99+
Thread ID: thread_Wkkv4qd4uIwSOB6am56TDmak created at: Fri Sep 12 2025 09:38:14 GMT-0700 (Pacific Daylight Time)
100+
Thread ID: thread_KNsyxN2A7hWynbIKpGYceCo0 created at: Fri Sep 12 2025 09:23:02 GMT-0700 (Pacific Daylight Time)
101+
Thread ID: thread_P4941rTZ4ir14PovwSLxEMeN created at: Fri Sep 12 2025 09:11:37 GMT-0700 (Pacific Daylight Time)
102+
Created message, message ID : msg_R0zDsXdc2UbfsNXvS1zeS6hk
103+
Creating run...
104+
Received response with status: queued
105+
Received response with status: in_progress
106+
Received response with status: completed
107+
Run finished with status: completed
108+
109+
110+
========================================================
111+
=================== CONVERSATION RESULTS ===================
112+
========================================================
113+
114+
115+
❓ USER QUESTION: I need to solve the equation `3x + 11 = 14`. Can you help me?
116+
117+
🤖 ASSISTANT'S ANSWER:
118+
--------------------------------------------------
119+
Certainly! Let's solve the equation step by step:
120+
121+
We have:
122+
3x + 11 = 14
123+
124+
### Step 1: Eliminate the constant (+11) on the left-hand side.
125+
Subtract 11 from both sides:
126+
3x + 11 - 11 = 14 - 11
127+
This simplifies to:
128+
3x = 3
129+
130+
We have:
131+
3x + 11 = 14
132+
133+
### Step 1: Eliminate the constant (+11) on the left-hand side.
134+
Subtract 11 from both sides:
135+
3x + 11 - 11 = 14 - 11
136+
This simplifies to:
137+
3x = 3
138+
139+
### Step 2: Solve for x.
140+
Divide both sides by 3:
141+
3x / 3 = 3 / 3
142+
This simplifies to:
143+
x = 1
144+
145+
### Final Answer:
146+
x = 1
147+
--------------------------------------------------
148+
149+
150+
========================================================
151+
====================== END OF RESULTS ======================
152+
========================================================
153+
```
154+
155+
156+
Full [sample source code](https://github.com/Azure-Samples/azure-sdk-for-js-docs/blob/main/samples/foundry/azure-ai-agents-quickstart-math) available.

0 commit comments

Comments
 (0)