متك متك م

مكتشفة - مرفوضة

فما تعلمته المصافحة عن الخادوم ، وأيّ اداته لا يمكن اعلانه — الاسم ، لا السقوط بهدوء .

read after initializerejections are namedinvalid definitions
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

await client.initialize();
const tools = await client.listTools();

console.log(client.protocolVersion);   // the revision both sides agreed on
console.log(client.rejectedTools);     // [{ name, reason }]
client.initialize()
tools = client.list_tools()

print(client.protocol_version)   # the revision both sides agreed on

لماذا يتم رفض أداة

السببالمعنى
لالا شيء ينجو من التثبيت والتشذيب
A ترويد معرَ عنوان لا يمكن قراءةفهي تقع تحت بنية يمكن ان تتفرع ، لذلك لا يوجد طريق واحد لقراءتها في الحجج — فالمواصفة تدعو هذا التعريف غير صحيح .
أداة مرر هو مسمى، لا مخفي

إسقاطه في صمت من شأنه أن يترك وثائق الخادم الخاصة به واعداً بأداة لا تظهر أبداً، دون أي شيء تشير إليه. السبب هو الشيء الذي يجب إرساله إلى من يقوم بتشغيل الخادم.

"الخيارات" هي المتفق عليها

ليس ما يفضله هذا العميل وليس ما يفضله الخادم - ما يعرفه كلاهما. إنه مسجل على اتصال، ومرئ في )أ(.

المُمَاَسَه

if (client.rejectedTools.length) {
  console.warn("not declarable:", client.rejectedTools.map((t) => `${t.name} (${t.reason})`).join(", "));
}
# The Python client returns every tool the server lists; check each schema yourself
from iagenify import sanitize_schema

declarable = [t for t in tools if sanitize_schema(t.get("inputSchema") or {}).get("type") == "object"]
skipped = [t["name"] for t in tools if t not in declarable]
if skipped:
    print("not declarable:", ", ".join(skipped))