Skip to content

Commit 4ca52fc

Browse files
committed
Add response type
1 parent b65a147 commit 4ca52fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openai-agents/examples/app/notify_when_ready.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ async def on_send(ctx: restate.WorkflowContext, user_query: str):
2727
@agent_service.handler()
2828
async def on_notify(ctx: restate.WorkflowContext, email: str):
2929
# Wait for the agent's response
30-
response = await ctx.promise("agent_response").value()
30+
response = await ctx.promise("agent_response", type_hint=str).value()
3131

3232
# Send the email
3333
await ctx.run_typed("Email", send_email, email=email, body=response)

0 commit comments

Comments
 (0)