Skip to content

feat(openapi): implement openapi toolset and integration tests (part 4)#387

Open
AmaadMartin wants to merge 2 commits into
google:feat/openapi_tool_part3from
AmaadMartin:feat/openapi_tool_part4
Open

feat(openapi): implement openapi toolset and integration tests (part 4)#387
AmaadMartin wants to merge 2 commits into
google:feat/openapi_tool_part3from
AmaadMartin:feat/openapi_tool_part4

Conversation

@AmaadMartin

Copy link
Copy Markdown
Collaborator

Link to Issue or Description of Change

Problem:
To achieve parity with Python and fully automate OpenAPI integration, developers need a top-level BaseToolset that instantiates all individual tool endpoints from a spec file.

Solution:
Implemented OpenAPIToolset and integration tests (Part 4 of 4):

  • openapi_toolset.ts: Accepts YAML/JSON specifications or raw documents, invokes the spec parser, and exposes generated RestApiTool instances.
  • Adds test fixtures (petstore.yaml, truanon.yaml) and full integration tests.

Testing Plan

Unit Tests:

  • I have added or updated unit tests for my change.
  • All unit tests pass locally.

Summary of passed results:

  • Achieved 95.14% overall test coverage across the complete OpenAPI toolset feature.
  • Actual Line Coverage by File:
    • openapi_toolset.ts: 93.58%

Integration Tests:

  • All integration tests pass locally.
  • Verified that OpenAPIToolset successfully parses real-world specs and executes operations with mocked network requests.

Checklist

  • I have performed a self-review of my own code.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.

@AmaadMartin AmaadMartin changed the base branch from main to feat/openapi_tool_part3 May 27, 2026 20:38
@AmaadMartin AmaadMartin force-pushed the feat/openapi_tool_part4 branch from 6930661 to 13a30b8 Compare June 9, 2026 01:33
@AmaadMartin AmaadMartin force-pushed the feat/openapi_tool_part3 branch from cab7c0f to b45cb71 Compare June 9, 2026 01:33
Amaad Martin added 2 commits June 8, 2026 18:34
This implements OpenAPIToolset and adds integration tests and fixtures.

TAG=agy
CONV=5d70d8ac-425c-4f8c-a969-97b17ecc66ce
…part 4)

- Exported OpenAPIToolset in common.ts.
- Refactored relative imports inside openapi_toolset_test.ts and openapi_toolset_integration_test.ts to import from @google/adk.

TAG=agy
CONV=5d70d8ac-425c-4f8c-a969-97b17ecc66ce
@AmaadMartin AmaadMartin force-pushed the feat/openapi_tool_part3 branch from b45cb71 to e67c93f Compare June 9, 2026 01:34
@AmaadMartin AmaadMartin force-pushed the feat/openapi_tool_part4 branch from 13a30b8 to 9bc3603 Compare June 9, 2026 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant