
    kKj/                     :    d Z ddlmZmZmZmZmZmZ dedz  fdZy)z'SEP-1686 task capabilities declaration.    )ServerTasksCapabilityServerTasksRequestsCapabilityTasksCallCapabilityTasksCancelCapabilityTasksListCapabilityTasksToolsCapabilityreturnNc            
          ddl m}   |        syt        t               t	               t        t        t                     di idi i            S )	u  Return the SEP-1686 task capabilities.

    Returns task capabilities as a first-class ServerCapabilities field,
    declaring support for list, cancel, and request operations per SEP-1686.

    Returns None if a compatible pydocket is not installed (no task support).
    Uses the canonical ``is_docket_available()`` check so that capability
    advertisement and handler registration stay in sync — otherwise a server
    with an old transitive pydocket would advertise task support and then
    return "method not found" when clients invoked it.

    Note: prompts/resources are passed via extra_data since the SDK types
    don't include them yet (FastMCP supports them ahead of the spec).
    r   is_docket_availableN)callgetread)toolsprompts	resources)listcancelrequests)fastmcp.server.dependenciesr   r   r   r   r   r   r   r   s    r/Users/ahmed/devFolder/Ultron/claude-voice/.venv/lib/python3.12/site-packages/fastmcp/server/tasks/capabilities.pyget_task_capabilitiesr      sL    $ @   "$&.&,?,ABBKrl
     )	__doc__	mcp.typesr   r   r   r   r   r   r    r   r   <module>r      s$    - 4t; r   