This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
How do developers connect a declarative agent to an API?
In the agent's definition, they refer to an API specification.
In the project, they add an API plugin definition. They add a reference to the plugin definition in the declarative agent.
In the agent's definition, they list API operations with URLs, sample requests, and the shape of the responses.
How does an agent know how to call the API behind a function in an API plugin?
The function specifies the URL, and the shape of the API that it uses.
The function references API specification that contains the URL of the API and describes its shape.
The function's name corresponds to the operationId in an API specification. The plugin uses the runtimes property to match functions to API specification. The API specification contains the URL of the API and its shape.
What's the role of the response_semantics property in the API plugin definition?
The response_semantics property instructs the agent on how to display the data from the API.
The response_semantics property includes a plain-text description of the data for the agent so that it can respond to the user's prompt more accurately using its language model.
The response_semantics property includes plain-text instructions for the language model on how to parse the data and what the different properties mean.
You must answer all questions before checking your work.
Was this page helpful?