Skip to content

Commit dcf3bc5

Browse files
committed
fix: use async function for agent
1 parent 68325d0 commit dcf3bc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/06_streaming_summary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class TranslationOutput(BaseModel):
2929

3030

3131
@workflowai.agent(id="french-translator", model=Model.CLAUDE_3_5_SONNET_LATEST)
32-
def translate_to_english(_: TranslationInput) -> TranslationOutput:
32+
async def translate_to_english(_: TranslationInput) -> TranslationOutput:
3333
"""
3434
Translate French text into natural, fluent English.
3535

0 commit comments

Comments
 (0)