Skip to content

Commit f7b5695

Browse files
committed
fix renamed property in demo
1 parent a9367e5 commit f7b5695

File tree

1 file changed

+5
-3
lines changed
  • typescript-sdk/integrations/crewai/python/ag_ui_crewai/examples

1 file changed

+5
-3
lines changed

typescript-sdk/integrations/crewai/python/ag_ui_crewai/examples/shared_state.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class Ingredient(BaseModel):
6464
"enum": [level.value for level in SkillLevel],
6565
"description": "The skill level required for the recipe."
6666
},
67-
"dietary_preferences": {
67+
"special_preferences": {
6868
"type": "array",
6969
"items": {
7070
"type": "string"
@@ -95,7 +95,7 @@ class Ingredient(BaseModel):
9595
"description": "Step-by-step instructions for preparing the recipe."
9696
}
9797
},
98-
"required": ["title", "skill_level", "cooking_time", "dietary_preferences", "ingredients", "instructions"]
98+
"required": ["title", "skill_level", "cooking_time", "special_preferences", "ingredients", "instructions"]
9999
}
100100
},
101101
"required": ["recipe"]
@@ -109,7 +109,7 @@ class Recipe(BaseModel):
109109
"""
110110
title: str
111111
skill_level: SkillLevel
112-
dietary_preferences: List[str] = Field(default_factory=list)
112+
special_preferences: List[str] = Field(default_factory=list)
113113
cooking_time: CookingTime
114114
ingredients: List[Ingredient] = Field(default_factory=list)
115115
instructions: List[str] = Field(default_factory=list)
@@ -132,6 +132,8 @@ async def start_flow(self):
132132
"""
133133
This is the entry point for the flow.
134134
"""
135+
print(f"start_flow")
136+
print(f"self.state: {self.state}")
135137

136138
@router(start_flow)
137139
async def chat(self):

0 commit comments

Comments
 (0)