我们仍在将本课翻译成简体中文。目前您阅读的是English版本。帮助我们翻译
本课时属于认证课程 Agent Career Ladder — Build
已完成 0 / 5 课时查看课程

0%

跳转到正文

Tools and Function Calling

入门~25 分钟0/3 步骤

Tools and Function Calling

A tool is a named capability with a contract: a name, inputs, and a result the model can read. Function calling is how the model asks to use that capability instead of pretending it already knows the answer.

In this lesson you build a tiny inspector: a page that shows one real tool call (name, input, result) so you can see the glass window, not just the chat.

Learning outcomes

  • Describe a tool as name + input schema + result
  • Show a failed call vs a successful call
  • Refuse to invent a result you did not run

操作说明

1

Add an <h1> about tools or function calling

提示: Name the skill, not a product brand.

2

Add <section class="tool-card"> with .tool-name, .tool-input, and .tool-result

3

Add <section class="honesty"> stating you must not invent tool results

你的代码

html
19
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

实时预览

实时预览