INNER CODE UNIT · Python
_FunctionToolAttachable
evalstate/fast-agent · src/fast_agent/a2a/server.py:88
class _FunctionToolAttachable(Protocol):
def add_tool(self, tool: Any, *, replace: bool = True) -> None:
"""Attach a local function tool."""
@runtime_checkable
class _A2ADeferredTaskStartCapable(Protocol):
a2a_defer_task_start: bool
logger = get_logger(__name__)
A2A_INPUT_MODES = ["text/plain", "application/json", "application/octet-stream", "image/*"]
A2A_OUTPUT_MODES = ["text/plain", "application/json", "application/octet-stream", "image/*"]
A2A_HF_BEARER_SCHEME = "hf_bearer"
DEFAULT_A2A_HOST = "127.0.0.1"