You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: typescript-sdk/integrations/adk-middleware/examples/shared_state/agent.py
+15-4Lines changed: 15 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,8 @@ class Recipe(BaseModel):
69
69
defgenerate_recipe(
70
70
tool_context: ToolContext,
71
71
skill_level: str,
72
-
special_preferences: str="",
72
+
title: str,
73
+
special_preferences: List[str] = [],
73
74
cooking_time: str="",
74
75
ingredients: List[dict] = [],
75
76
instructions: List[str] = [],
@@ -79,14 +80,20 @@ def generate_recipe(
79
80
Generate or update a recipe using the provided recipe data.
80
81
81
82
Args:
83
+
"title": {
84
+
"type": "string",
85
+
"description": "**REQUIRED** - The title of the recipe."
86
+
},
82
87
"skill_level": {
83
88
"type": "string",
84
89
"enum": ["Beginner","Intermediate","Advanced"],
85
90
"description": "**REQUIRED** - The skill level required for the recipe. Must be one of the predefined skill levels (Beginner, Intermediate, Advanced)."
86
91
},
87
92
"special_preferences": {
88
-
"type": "string",
89
-
"description": "**OPTIONAL** - Special dietary preferences for the recipe as comma-separated values. Example: 'High Protein, Low Carb, Gluten Free'. Leave empty or omit if no special preferences."
"description": "**OPTIONAL** - Special dietary preferences for the recipe as comma-separated values. Example: 'High Protein, Low Carb, Gluten Free'. Leave empty array if no special preferences."
0 commit comments