docs: refresh translations for recent English changes (#3379)
This commit is contained in:
parent
d8b638304e
commit
c5d7d0b6d0
2 changed files with 3149 additions and 1047 deletions
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
translation:
|
||||
sections: [335ca2a0b266f003, d1ad562d3fe87bc0, 0bb1396c86daeba4, d1cb1235bb9ee267, 833179c09d239c83, e5d6dec2d2e655e8]
|
||||
sections: [335ca2a0b266f003, d1ad562d3fe87bc0, 25b49f89c9e6f9d0, d1cb1235bb9ee267, 833179c09d239c83, e5d6dec2d2e655e8]
|
||||
tool: 1
|
||||
---
|
||||
# Elicitation {#elicitation}
|
||||
|
|
@ -89,7 +89,8 @@ client को आपका message मिलता है और उसके
|
|||
!!! warning
|
||||
elicitation schema tool के input schema जितना expressive नहीं होता। सिर्फ़ flat, primitive
|
||||
fields: `str`, `int`, `float`, `bool`, या strings का `Literal` (यह `enum` बन जाता है)।
|
||||
model के अंदर model रखें और `ctx.elicit` client को कुछ भी भेजे जाने से पहले ही raise कर देता है:
|
||||
model के अंदर model रखें और `ctx.elicit` client को कुछ भी भेजे जाने से पहले ही raise कर देता है।
|
||||
tool call `Error executing tool <name>` के साथ fail हो जाता है, और वजह आपके server log में मिलती है:
|
||||
|
||||
```text
|
||||
TypeError: Elicitation schema field 'address' rendered as {'$ref': '#/$defs/Address'}, which is not a valid PrimitiveSchemaDefinition
|
||||
|
|
@ -112,8 +113,8 @@ client को आपका message मिलता है और उसके
|
|||
|
||||
!!! tip
|
||||
जवाब आपके code तक पहुँचने से पहले आपके model के विरुद्ध validate होता है। जो client
|
||||
`bool` के लिए `"maybe"` भेजता है, वह आपकी booking को खराब नहीं करता: call
|
||||
schema-mismatch error के साथ fail हो जाता है, आपका `if` कभी नहीं चलता।
|
||||
`bool` के लिए `"maybe"` भेजता है, वह आपकी booking को खराब नहीं करता: `ctx.elicit`
|
||||
`ValueError` raise करता है, call fail हो जाता है, और आपका `if` कभी नहीं चलता।
|
||||
|
||||
## user को URL पर भेजना {#send-the-user-to-a-url}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
translation:
|
||||
sections: [c93a3e1aefd77955, 7851abd5ec54393b, f49d1ca2f330f9cd, c03764bd9dfeef7b, 4a0391691a674ae4, 2df5cd279eabf9f5]
|
||||
sections: [c93a3e1aefd77955, 7851abd5ec54393b, f49d1ca2f330f9cd, 4cc0a00347c3f534, 4a0391691a674ae4, 2df5cd279eabf9f5]
|
||||
tool: 1
|
||||
---
|
||||
# Logging {#logging}
|
||||
|
|
@ -54,6 +54,8 @@ default `"INFO"` है।
|
|||
|
||||
`logging.basicConfig()` पहले से मौजूद handlers को कभी नहीं बदलता। अगर आप server बनाने से पहले खुद logging configure करते हैं, तो आपका configuration ही चलता है।
|
||||
|
||||
सिर्फ़ failures दर्ज करने के लिए हर handler में `try`/`except` लगाने की भी ज़रूरत नहीं है। जब कोई tool या resource function raise करता है, तो SDK उसे आपके लिए log कर देता है। क्या log होता है और किस level पर, यह **[errors संभालना](../servers/handling-errors.md#any-other-exception)** में बताया गया है।
|
||||
|
||||
## इसे आज़माएँ {#try-it}
|
||||
|
||||
server को MCP Inspector के साथ चलाएँ:
|
||||
|
|
|
|||
Loading…
Reference in a new issue