Npe Irinṣẹ
Ipe irinṣẹ jẹ ki awoṣe beere iṣẹ nipasẹ wiwo ti a ṣalaye.
Akopọ
Ohun elo tabi olupese ṣe iṣẹ naa ati pada abajade kan. Awoṣe ti o dabaa ipe ọpa yatọ si ipe yẹn ti o ṣaṣeyọri, ati pe awọn mejeeji yatọ si iṣẹ ṣiṣe olumulo ti o pari.
Awọn gbigba bọtini
- Jẹrisi aṣẹ ati apẹrẹ ariyanjiyan.
- Ṣe afẹyinti awọn atunyẹwo ailewu fun awọn ipa ẹgbẹ.
- Ṣayẹwo ipinle ti o ni abajade.
Jin Dive
Define each tool's purpose, input schema, output shape, and side effects. A narrowly scoped operation is easier to validate than a general command interface. The tool description should explain when the operation is appropriate without giving the model authority beyond the user's request. Validate inputs and permissions in application code. A well-formed argument can still identify the wrong account, destination, or amount. Keep secrets out of tool descriptions and return only information the demanding user is allowed to access. Handle errors and uncertain results explicitly. A network timeout may happen before or after an external action completes. Use operation identifiers or a read-back check where possible so a retry does not duplicate a finished action. After execution, provide an accurate result and verify the intended state. Treat text returned by a website or document as untrusted content; it cannot allow new actions simply because it arrived through a tool. Test cancellation, malformed responses, revoked access, and partial completion as part of the full tool-use lupu.
Imọ-imọ-ẹrọ
Imudaniloju igbewọle-sikematika ṣe agbekalẹ apẹrẹ ati diẹ ninu awọn idiwọ. Ko ṣe afihan pe iṣe kan ni aṣẹ tabi pe igbasilẹ ti a yan jẹ ti o tọ.
Ṣe atunyẹwo laisi ṣiṣe atunyẹwo
- Foju inu wo ohun elo ṣiṣẹda iṣẹ-ṣiṣe gba idanimọ ibeere demo-17. Idahun naa pari lẹhin ti a ṣẹda iṣẹ naa.
- Wo demo-17 ṣaaju ki o to ṣẹda iṣẹ miiran. Ti iṣẹ naa ba ṣe atilẹyin idempotency, tun lo idanimọ kanna fun atunyẹwo.
- Ṣe ijabọ ipari nikan lẹhin ti o jẹrisi iṣẹ ti o ni abajade ati akoonu rẹ.
Yi itumọ ti apẹẹrẹ ya uncertain transportation lati awọn ita igbese ká gangan abajade.
Ipa Ilana
Iyara ati iwọn
Ṣiṣan iṣẹ ede le gbe ni iyara laisi irubọ aitasera.
Wiwọle ati arọwọto
O faagun iraye si kọja awọn ede ati awọn aza ibaraẹnisọrọ.
Awọn ipinnu diẹ sii
Awọn ẹgbẹ le lo akoko diẹ sii lori idajọ lakoko ti adaṣe n kapa atunwi.
Real-World imuse
Gba igbasilẹ lọwọlọwọ ṣaaju ki o to dabaa imudojuiwọn kan.
Dá ìdánimọ̀ iṣẹ́ padà kí o sì jẹ́ àtúnyẹ̀wò èsì lẹ́yìn tí wọ́n fi fáìlì pamọ́.
Awọn ewu & Awọn ọna iṣọ
Awọn otitọ ti a sọ di mimọ le tẹ awọn ijabọ sii ni idakẹjẹ, awọn ṣiṣan atilẹyin, tabi awọn abajade iwadii.
Ifamọ kiakia le ṣẹda awọn abajade aisedede kọja awọn ibeere ti o jọra.
Awọn data ọrọ ifarabalẹ le farahan ti awọn idari wiwọle ko lagbara.
Ilana Ilana imuse
Ṣetumo ọna kika iṣẹjade, ohun orin, ati awọn iṣedede didara ṣaaju ṣiṣejade.
Awọn idahun ilẹ pẹlu awọn orisun ti o gbẹkẹle nigbakugba ti deede ba ṣe pataki.
Jeki aaye ayẹwo atunyẹwo eniyan fun awọn abajade ti o ga julọ.
Tọpinpin awọn ilana ikuna ati tunṣe awọn itọsi tabi ṣiṣan iṣẹ nigbagbogbo.
Awọn orisun ati siwaju kika
- AnthropicBawo ni lilo irinṣẹ ṣe n ṣiṣẹ
Tesiwaju Ṣiṣawari
Free newsletter
Get the daily AI briefing
Three verified AI stories every weekday morning, written in plain English. Free forever, no ads.
One email each weekday. Unsubscribe in one click. We never sell or share your address.
Test yourself
Take the Tool Calling quiz
Instant feedback on every answer, and a shareable certificate with a verifiable ID once you pass a course.
Support free AI education. AI Understanding is a 501(c)(3) nonprofit — no ads, no paywall, ever. Make a donation
Itọsọna atẹle
Aṣoju Ọpa Orchestration
Awọn ibeere ti a beere nigbagbogbo
Ṣe awoṣe kan ṣe iṣẹ kan nikan nipa lorukọ rẹ?
Rárá. Ohun elo tabi olupese irinṣẹ n ṣe iṣẹ naa. Ibeere ti a ṣeto gbọdọ wa ni mu, fun ni aṣẹ, ati ṣayẹwo.