Finish
autogen.beta.network.handoff.Finish dataclass #
Routing intent returned by a tool that ends the channel cleanly.
Example::
from autogen.beta.network import Finish
@coord_agent.tool
def finish(summary: str) -> Finish:
return Finish(summary=summary)
When the framework finds a Finish on a ToolResultEvent it closes the channel — equivalent to a TerminateTarget rule firing, but driven by the tool's runtime decision rather than a static graph transition. reason populates ChannelMetadata.close_reason; summary rides on the packet's routing.summary field for callers / observability.