Викторина, связанная с руководством · Средний Уровень

Викторина по разработке инструментов для агентов LLM

Проверяет, как имена и описания инструментов влияют на выбор модели, почему важны строгие схемы и ошибки, требующие принятия мер, и почему слишком большое количество инструментов вредит агентам.

Связанные направляющие путиРазработка инструментов для агентов LLM
Вопрос 1 из 8

Что на самом деле использует модель, чтобы решить, как вызвать инструмент?

Предварительный просмотр каждого вопроса8 вопросы

Ответы и пояснения появляются по мере прохождения теста.

  1. Что на самом деле использует модель, чтобы решить, как вызвать инструмент?
    • The tool's source code
    • The name, description, schema and returned text
    • The server's latency history
    • The programming language the tool is written in
  2. Почему агент может использовать такие префиксы, как github_create_issue и jira_create_issue?
    • Prefixes make tools run faster
    • APIs require prefixes
    • They keep similar tools from different services apart
    • They reduce the size of JSON Schema files
  3. Какой дизайн параметров с наибольшей вероятностью даст правильные аргументы?
    • An enum listing the allowed values
    • A free-text string called 'value'
    • An untyped field with no description
    • A parameter named 'x'
  4. Что делает хорошее сообщение об ошибке инструмента?
    • A numeric error code only
    • A generic 'something went wrong'
    • Nothing, so no tokens are spent
    • It explains what went wrong and suggests what to try next
  5. Почему добавление большого количества инструментов может снизить производительность агента?
    • Models can only call one tool per conversation
    • Each definition takes up context, and overlapping tools make selection harder
    • Tools stop working once there are more than five
    • Tool count has no effect
  6. Compared with mirroring every API endpoint one-to-one, what does the guide recommend?
    • Fewer, higher-level tools shaped around real tasks
    • Exposing every endpoint so the agent has full coverage
    • Using only one tool for everything
    • Letting the model write its own HTTP requests
  7. Why should a tool paginate or truncate its output by default?
    • To hide data from users
    • Because models cannot read numbers
    • To avoid filling the context window with low-value data
    • Because JSON Schema requires it
  8. Why make tools idempotent or give them an idempotency key?
    • It makes descriptions shorter
    • It lets the model skip schemas
    • It speeds up model inference
    • A retried call will not create duplicate records