INNER CODE UNIT · Python

decorator

concierge-hq/concierge · __init__.py:260

        def decorator(fn: Callable) -> Callable:
            tool_name = fn.__name__
            if name not in self._stages:
                self._stages[name] = []
            if tool_name not in self._stages[name]:
                self._stages[name].append(tool_name)
            return fn

        return decorator

    def tool(self, **kwargs) -> Callable:
        """Register a tool. Delegates to underlying FastMCP.

        Example:
            @app.tool()
            def my_tool(arg: str) -> dict:
                return {"result": arg}
        """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…