A programming framework for agentic AI
Update termination-with-intervention.md (#115)
Jack Gerrits606e43b32500
diff --git a/python/docs/src/guides/termination-with-intervention.md b/python/docs/src/guides/termination-with-intervention.mdindex 9c95e69c4..1723df4a4 100644--- a/python/docs/src/guides/termination-with-intervention.md+++ b/python/docs/src/guides/termination-with-intervention.md@@ -46,15 +46,15 @@ Next, we create an InterventionHandler that will detect the termination messageclass TerminationHandler(DefaultInterventionHandler):def __init__(self):- self.termination_value: T | None = None+ self.termination_value: Termination | None = Noneasync def on_publish(self, message: Any, *, sender: AgentId | None) -> Any:if isinstance(message, Termination):- self.termination_value = self.termination_type(message.reason)+ self.termination_value = messagereturn message@property- def termination_value(self) -> T | None:+ def termination_value(self) -> Termination | None:return self.termination_value@property@@ -81,4 +81,4 @@ async def main() -> None:if __name__ == "__main__":asyncio.run(main())-```\ No newline at end of file+```