Skip to main content

Module async_poll

Module async_poll 

Source

Constantsยง

POLL_INTERVAL ๐Ÿ”’

Functionsยง

canceled_result ๐Ÿ”’
extract_run_id
Read run_id from the async capโ€™s initial MCP response JSON.
failed_result ๐Ÿ”’
Build a failed capability result for async control-plane failures. The original call identity is preserved so the terminal node event still correlates with the user-requested async capability, not the status poll.
parse_state_name
Convert status response state names into RTDL node state constants.
parse_status_json
Parse status MCP JSON: requires uppercase state enum; optional detail string.
poll_status ๐Ÿ”’
run_until_terminal
Dispatch an async cap, poll status every 2s, stream node_state changes, return terminal result.
terminal_result ๐Ÿ”’