diff --git a/pyproject.toml b/pyproject.toml index 48b88bca..2a487dc3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta" [project] name = "avs-blueprint-agents" -version = "0.6.2" +version = "0.6.4" description = "Microservice blueprint for creating agents" authors = [ { name = "Blueprint Team", email = "patrick.maue@bechtle.com" }, diff --git a/src/blueprint/agents/io/api/utilities/root.py b/src/blueprint/agents/io/api/utilities/root.py index 04748e21..abf258de 100644 --- a/src/blueprint/agents/io/api/utilities/root.py +++ b/src/blueprint/agents/io/api/utilities/root.py @@ -45,9 +45,10 @@ async def root(self) -> Any: for route in self._app.routes: if not isinstance(route, APIRoute): continue - methods = ", ".join(sorted(route.methods or set())) + route_methods = route.methods or set() + methods = ", ".join(sorted(route_methods)) summary = route.summary or "" - if "GET" in (route.methods or set()): + if "GET" in route_methods: path_cell = f'{route.path}' else: anchor = route.path.replace("/", "-").strip("-")