Skip to content
Discussion options

You must be logged in to vote

Hi @JayRabari17, thanks for the question, and apologies for the very delayed follow-up here.

As @zastrowm noted, stream_events isn't a Strands API (I'm guessing you were thinking of LangChain's astream_events), but everything you listed is available from stream_async today. The iterator yields intermediate events as the run progresses: event["data"] for streamed text, event["current_tool_use"] for tool calls as they happen, event["message"] each time a message is added to the conversation (including tool results), and a final event["result"] holding the complete AgentResult.

For typed structured output specifically, this landed since you asked: pass structured_output_model directly to the…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by yonib05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants