Skip to content

Commit b264a6f

Browse files
kdziedzic70Krzysztof Dziedzic
andauthored
ci: fix agent card routes in itk agent (a2aproject#1102)
# Description Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [ ] Follow the [`CONTRIBUTING` Guide](https://github.com/a2aproject/a2a-python/blob/main/CONTRIBUTING.md). - [ ] Make your Pull Request title in the <https://www.conventionalcommits.org/> specification. - Important Prefixes for [release-please](https://github.com/googleapis/release-please): - `fix:` which represents bug fixes, and correlates to a [SemVer](https://semver.org/) patch. - `feat:` represents a new feature, and correlates to a SemVer minor. - `feat!:`, or `fix!:`, `refactor!:`, etc., which represent a breaking change (indicated by the `!`) and will result in a SemVer major. - [ ] Ensure the tests and linter pass (Run `bash scripts/format.sh` from the repository root to format) - [ ] Appropriate docs were updated (if necessary) Fixes #<issue_number_goes_here> 🦕 Co-authored-by: Krzysztof Dziedzic <dziedzick@google.com>
1 parent c74332d commit b264a6f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎itk/main.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,9 +544,10 @@ async def main_async(http_port: int, grpc_port: int) -> None:
544544
app = FastAPI()
545545
app.mount(
546546
'/jsonrpc',
547-
FastAPI(routes=jsonrpc_routes + agent_card_routes),
547+
FastAPI(routes=jsonrpc_routes),
548548
)
549-
app.mount('/rest', FastAPI(routes=rest_routes + agent_card_routes))
549+
app.mount('/rest', FastAPI(routes=rest_routes))
550+
app.routes.extend(agent_card_routes)
550551

551552
server = grpc.aio.server()
552553

0 commit comments

Comments
 (0)