Skip to main content
Tool वैल्यू बनाएँ और उन्हें AgentSdk::defineTool(...) के ज़रिए दें। टूल में ये शामिल हो सकते हैं:
  • मॉडल को दिखाए जाने वाले JSON parameters
  • inputSchema, outputSchema और eventSchema validation callback
  • timeoutMs और execute callback
  • boolean या callback के रूप में requireApproval
  • interactive काम के लिए onToolCalled और onResponseReceived
  • nextTurnParams और onError: "return-to-model"
शुरुआती नतीजों के लिए RuntimeContext::$emitProgress और ऐप context के लिए $setContext उपयोग करें।
मानक PHP runtime में tool callback synchronous चलते हैं। इसलिए concurrency और interruption उस PHP process की क्षमताओं पर निर्भर करते हैं जिसमें SDK चलता है।

संबंधित विषय

अंतिम संशोधन 2 अक्टूबर 2026