Removed the incompatible output_schema=str from graph samples (#2228)

This commit is contained in:
Saloni Gupta
2026-09-13 23:54:56 +02:00
committed by GitHub
parent 0a75ee1214
commit a7dbbcf986
2 changed files with 0 additions and 5 deletions
-2
View File
@@ -412,7 +412,6 @@ workflows offer much more flexibility to define the routing logic you need.
name="generator_agent",
model="gemini-flash-latest",
instruction="Write python code for user request.",
output_schema=str,
)
@node(name="lint_reviewer")
@@ -427,7 +426,6 @@ workflows offer much more flexibility to define the routing logic you need.
model="gemini-flash-latest",
instruction="""Refactor current code {code}.
Based on compile & lint review: {findings}""",
output_schema=str,
)
@node # workflow node
-3
View File
@@ -67,7 +67,6 @@ function, and the final agent reports the information.
model="gemini-flash-latest",
instruction="""Return the name of a random city.
Return only the name, nothing else.""",
output_schema=str,
)
class CityTime(BaseModel):
@@ -84,7 +83,6 @@ function, and the final agent reports the information.
input_schema=CityTime,
instruction="""Output following line:
It is {CityTime.time_info} in {CityTime.city} right now.""",
output_schema=str,
)
def completed_message_function(node_input: str):
@@ -176,7 +174,6 @@ translated into a graph-based agent:
or "LOGISTICS". If you think a message applies to more than one category,
reply with a comma separated list of categories.
""",
output_schema=str,
)
def router(node_input: str):