INNER CODE UNIT · Python

add_tool

evalstate/fast-agent · src/fast_agent/a2a/server.py:89

    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"


def _fast_agent_version() -> str:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…