Let AgentRunner client pass an event callback handler by scottpersinger · Pull Request #200 · supercog-ai/agentic (original) (raw)
I've started using some custom events, and I wanted to be able to test those getting generated when testing using the CLI. Was useful to be able to pass an event handler to the Runner so I can see all events without having to write my own Runner...
I guess another approach would be to structure the Runner so that you could subclass some method that would see each event. But this seemed a little simpler.