Agents SDK Agents SDK Agents SDK · Lab 2/2 Lab 2/2 Lab 2/2 · 20 phút · 20 min · 20 នាទី

02

Khám phá repo Agents Exploring the Agents Repo ស្វែងយល់ repo Agents

Repo Agents có nhiều ví dụ — clone, cài và build. The Agents repo has lots of examples. Repo Agents មានឧទាហរណ៍ច្រើន — clone ដំឡើង និង build។

Nội dung bước (lệnh, code) giữ nguyên tiếng Anh từ nguồn chính thức. Step body (commands, code) stays in English from the official source. ខ្លឹមសារជំហាន (ពាក្យបញ្ជា និង code) រក្សាភាសាអង់គ្លេសពីប្រភពផ្លូវការ។ labs.cloudflare.dev ↗

Cần trước Prerequisites តម្រូវការជាមុន

  • Node.js v20+ Node.js v20+ Node.js v20+
  • Tài khoản Cloudflare Cloudflare Account គណនី Cloudflare
  • Terminal / dòng lệnh Terminal/Command Line Terminal / ពាក្យបញ្ជា
  • Biết JavaScript cơ bản Basic JavaScript knowledge ចេះ JavaScript មូលដ្ឋាន

Bạn sẽ làm được Learning objectives គោលបំណងសិក្សា

  • Nhớ Agent Framework đang đổi rất nhanh Recall that the Agent Framework is evolving fast ចងចាំថា Agent Framework កំពុងផ្លាស់ប្តូរលឿន
  • Nhớ là có nhiều ví dụ tốt Recall that there are great examples ចងចាំថាមានឧទាហរណ៍ល្អៗ
  • Build và chạy các ví dụ Build and run examples Build និងរត់ឧទាហរណ៍

Bước 1 Step 1 ជំហាន 1

Clone repo về máy Clone the repo locally Clone repo មកម៉ាស៊ីន

Chúng ta đang xây What we're building អ្វីដែលយើងកំពុងសង់
Get a copy of the agents repo.
Vì sao quan trọng Why this matters ហេតុអ្វីសំខាន់
The repo has great examples that you can use hands on.
bash
# Get to a folder you want to use
git clone git@github.com:cloudflare/agents.git

Bước 2: npm install và build Step 2: Install npm dependencies and build ជំហាន 2: npm install និង build

bash
# Change into the directory
cd agents
bash
# Install the npm installs
npm install
bash
# Build
npm run build

Bước 3 Step 3 ជំហាន 3

Choose your own adventure!

Choose your own adventure!

Choose your own adventure!

Bạn đã sẵn sàng xây agent! You're ready to build agents! អ្នករួចរាល់សង់ agent ហើយ!

You have the repo cloned, built, and ready to explore. The Agent Framework is evolving fast — the best way to keep up is to dig into the examples.

You have the repo cloned, built, and ready to explore. The Agent Framework is evolving fast — the best way to keep up is to dig into the examples.

You have the repo cloned, built, and ready to explore. The Agent Framework is evolving fast — the best way to keep up is to dig into the examples.

What you built

What you built

What you built

  1. 01 Set up a Cloudflare Agent project from the official template
  2. 02 Cloned the agents repo and built the examples

What to build next

What to build next

What to build next

Share what you built with #CloudflareAgents and connect with the community!

Share what you built with #CloudflareAgents and connect with the community!

Share what you built with #CloudflareAgents and connect with the community!