PrefectHQ / ControlFlow

🦾 Take control of your AI agents
https://controlflow.ai
Apache License 2.0
593 stars 40 forks source link

Add configurable history visibility #233

Closed jlowin closed 2 months ago

jlowin commented 2 months ago

Agent-level setting that determines how event history is loaded.

a = Agent(history_visibility='UPSTREAM')

This will probably require some finessing to get right. In particular, taking a task result, modifying it, then passing that data to another task could interrupt the upstream chain (the downstream task can't detect the upstream) and we'll probably want a way to "load" extra history.

Note: ALL history is the default, which is different than the default on the 0.9 branch so far (but mirrors 0.8 behavior)