Тест, свързан с ръководство · Среден Ниво

Turning OpenAPI Specs into LLM Tools Quiz

Map OpenAPI operations to tool schemas, curate endpoints, validate arguments, protect credentials, and enforce application-side authorization.

Свързани ръководни пътекиTurning Openapi Specs Into LLM Tools
Въпрос 1 на 8

Какво включва основно картографиране на конвертирането на спецификация на OpenAPI в инструменти за LLM?

Визуализирайте всеки въпрос8 въпроси

Отговорите и обясненията се появяват, докато отговаряте на теста.

  1. Какво включва основно картографиране на конвертирането на спецификация на OpenAPI в инструменти за LLM?
    • Each endpoint's path, method and parameters into a tool schema a model can call
    • Database table names into tool names
    • CSS styles into tool descriptions
    • Server uptime logs into tool metadata
  2. Защо един екип би изложил само 6 от 140 документирани крайни точки като инструменти?
    • Because OpenAPI only allows 6 endpoints total
    • Because including the full spec can overwhelm the model's context and increase the chance it picks the wrong endpoint
    • Because tools must be written in alphabetical order
    • Because the API only supports 6 HTTP methods
  3. Защо приложение може да изисква потвърждение, преди инструмент да извика чувствителна крайна точка?
    • OpenAPI fully defines the product’s confirmation policy
    • Models cannot return JSON arguments
    • The application owns risk policy and user confirmation; an API description alone does not decide these
    • HTTP methods never change data
  4. Кое семейство версии на OpenAPI подравнява своя Schema Object с JSON Schema 2020-12, улеснявайки преобразуването към JSON-Schema-базирани параметри на инструмента?
    • YAML front matter
    • Protocol Buffers
    • XML DTD
    • OpenAPI 3.1 and later
  5. Как обикновено се обработват идентификационните данни на API от схема за сигурност на OpenAPI при конвертиране в инструменти?
    • They are injected server-side at execution time, after the model has chosen the call and arguments
    • The model is given the raw API key as a tool parameter to fill in
    • They are ignored entirely and requests are sent unauthenticated
    • They are hardcoded into the model's weights
  6. In the weather API example, why did the model inconsistently omit the units parameter?
    • Because the API rejected all requests with units included
    • Because units was marked optional with no example value, giving the model little guidance
    • Because the parameter name was misspelled in the code
    • Because OpenAPI does not support optional parameters
  7. According to the guide, what is a common misconception about feeding an entire large OpenAPI file to a model as tools?
    • That it is technically impossible to attempt
    • That OpenAPI files cannot contain more than 10 endpoints
    • That it works reliably out of the box regardless of tool count or description clarity
    • That models cannot process JSON Schema at all
  8. What part of the conversion process most often still requires human judgment rather than pure automation?
    • Copying the HTTP method into the tool name
    • Formatting the JSON response
    • Choosing the server's port number
    • Curating which endpoints to include and rewriting descriptions for model clarity