Add Recipes Test Script (#5420)

This commit is contained in:
Amed Rodriguez
2025-10-28 17:17:51 -07:00
committed by GitHub
parent 5e0b074a98
commit 4687656487
6 changed files with 236 additions and 0 deletions
@@ -0,0 +1,23 @@
version: "1.0.0"
title: "Activity Recommender"
description: "Suggest activities based on weather conditions"
instructions: |
You are a travel expert. Recommend appropriate activities and attractions
based on current weather conditions.
parameters:
- key: weather_conditions
input_type: string
requirement: required
description: "Current weather conditions to base recommendations on"
extensions:
- type: builtin
name: developer
timeout: 300
bundled: true
prompt: |
Based on these weather conditions: {{ weather_conditions }},
suggest appropriate activities, attractions, and travel tips.
Include both indoor and outdoor options as relevant.
@@ -0,0 +1,23 @@
version: "1.0.0"
title: "Weather Data Collector"
description: "Fetch current weather conditions for a location"
instructions: |
You are a weather data specialist. Gather current weather information
including temperature, conditions, and seasonal context.
parameters:
- key: location
input_type: string
requirement: required
description: "City or location to get weather data for"
extensions:
- type: builtin
name: developer
timeout: 300
bundled: true
prompt: |
Get the current weather conditions for {{ location }}.
Include temperature, weather conditions (sunny, rainy, etc.),
and any relevant seasonal information.
@@ -0,0 +1,23 @@
version: "1.0.0"
title: "Travel Activity Planner"
description: "Get weather data and suggest appropriate activities"
instructions: |
Plan activities by first getting weather data, then suggesting activities based on conditions.
prompt: |
Plan activities for Sydney by first getting weather data, then suggesting activities based on the weather conditions we receive.
sub_recipes:
- name: weather_data
path: "{{ recipe_dir }}/subrecipes/weather-data.yaml"
# No values - location parameter comes from prompt context
- name: activity_suggestions
path: "{{ recipe_dir }}/subrecipes/activity-suggestions.yaml"
# weather_conditions parameter comes from conversation context
extensions:
- type: builtin
name: developer
timeout: 300
bundled: true
@@ -0,0 +1,23 @@
version: "1.0.0"
title: "Travel Activity Planner (Parallel)"
description: "Get weather data and suggest activities in parallel"
instructions: |
Plan activities by getting weather data and activity suggestions in parallel to save time.
prompt: |
Run the following subrecipes in parallel to plan activities for Sydney:
- use weather_data subrecipe to get the weather for Sydney
- use activity_suggestions subrecipe to suggest activities for overcast, cool weather
sub_recipes:
- name: weather_data
path: "{{ recipe_dir }}/subrecipes/weather-data.yaml"
- name: activity_suggestions
path: "{{ recipe_dir }}/subrecipes/activity-suggestions.yaml"
extensions:
- type: builtin
name: developer
timeout: 300
bundled: true