-
公开(公告)号:US20250006196A1
公开(公告)日:2025-01-02
申请号:US18345455
申请日:2023-06-30
Applicant: Amazon Technologies, Inc.
Inventor: Hann Wang , Angeliki Metallinou , Melanie C B Gens , Arijit Biswas , Ying Shi
Abstract: Techniques for generating a prompt for a language model to determine an action responsive to a user input, are described. In some embodiments, the system receives a user input, determines one or more application programming interfaces (APIs) configured to perform actions that are relevant to the user input and exemplars representing examples of using the APIs with respect to user inputs similar to the current user input. The system further determines device states of devices that are determined to be related to the user input and also determines other contextual information (e.g., weather information, time of day, geographic location, etc.). The system generates a prompt including the user input, the APIs, the exemplars, the device states, and the other contextual information. A language model processes the prompt to determine an action responsive to the user input and the system causes performance of the action.