endpoint
Endpoint types and DSL (select, offer, send, recv).
This module is part of the public surface (extension tier): it is what
declares= on a participant is built with. Its rec, var and
stop deliberately share their names with the session-level DSL in
agentsparty.protocol — import the module, not the names::
from agentsparty.protocol.language import endpoint
tolerant = endpoint.offer(Lead, case('Sign', Text), case('Paused')).close()
attributeEndpointTypeTypeAlias= EndpointEnd | EndpointBranch | EndpointSelect | EndpointRec | EndpointVarattributeEndpointFragmentTypeAlias= Fragment[EndpointType]attributestopFragment[EndpointType]= Fragment.halt(EndpointEnd())