GenkitG
Genkitโ€ข7mo ago
urgent-maroon

**How context propagates**

How context propagates
I used to explicitly pass context from the flow to the prompt, as shown on :58.

Then I read the brilliant docs, which says, "Context is automatically propagated to all actions called within the scope of execution: Context passed to a flow is made available to prompts executed within the flow. Context passed to the generate() method is available to tools called within the generation loop."

So I tried removing context in the prompt invokation, :60, but that fails.

What am I misunderstanding or doing wrong?
image.png
Was this page helpful?