Scenarios
Agents are composed of Scenarios. Scenarios are logical collections of use-cases that partition the question space and the tool space of an Agent. Scenarios include a curated list of tools that are meant to be used by the Agent to solve the problems that the scenario is meant for. E.g. Listing past orders by a variety of search criteria is a good scenario. This scenario can be used to answer any number of related user questions around listing or searching for past orders such as -
What were the orders cancelled last month?
What are my pending orders?
What orders greater than 100$ were delivered in the past 3 months?
Were there any orders with shirts in them?
Are there any refunds pending for any orders?
All of these can be clubbed under the same scenario and provided with one or more tools that support the execution of the scenario. Scenarios help provide the reasoning engine with a smaller set of tools to choose from making it more robust and likely to make the right choices. They also provide guardrails so the Agent knows what questions it is meant to answer and it prevents users from getting answers to questions that are not in the scope of the Agent. A classifier determines which scenario a user’s question belongs to. In the future, additional strategies may be provided for scenario selection.
Last updated