Improve task writing by following best practices
Example: “Flip a coin, the result of coin_flip decides whether the customer kickoffs the game.”
Example: “Flipping coins must be quarters, the result of the flip is marked after the coin falls in your hand and stops moving. If the coin falls from your hand, the result is null.""For example, an example of the Task that uses the
refund_eligibility
API would be:
trip_details_extract_with_pnr
: Retrieves flight details using the customer’s PNR and last name.trip_details_pnr_emails
: Handles email addresses associated with the PNR.send_itinerary_email_as_string
: Sends the trip receipt or itinerary to the customer via email.(data["APICallName"])
to let GenerativeAgent know that that precise piece of writing is the data return from an API Call.
Here is an example of API Return Handling: