feat(openapi): implement spec operation parser and auth handler (part 2)#385
Open
AmaadMartin wants to merge 5 commits into
Open
feat(openapi): implement spec operation parser and auth handler (part 2)#385AmaadMartin wants to merge 5 commits into
AmaadMartin wants to merge 5 commits into
Conversation
added 2 commits
May 27, 2026 13:23
This implements auth helper methods, service account exchanger, and auto auth credential exchanger for OpenAPI tools. TAG=agy CONV=5d70d8ac-425c-4f8c-a969-97b17ecc66ce
This implements OpenAPI spec operation parsing and tool auth handling. TAG=agy CONV=5d70d8ac-425c-4f8c-a969-97b17ecc66ce
added 2 commits
May 27, 2026 13:54
TAG=agy CONV=5d70d8ac-425c-4f8c-a969-97b17ecc66ce
TAG=agy CONV=5d70d8ac-425c-4f8c-a969-97b17ecc66ce
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Link to Issue or Description of Change
Problem:
Generating LLM-callable tools from OpenAPI specifications requires robust parsing of spec parameters and managing authentication requirements within session state.
Solution:
Implemented OpenAPI spec operation parsing and tool auth handling (Part 2 of 4):
operation_parser.ts: Logic to extract and parse API parameters, request body schemas, and response types from OpenAPI path operations.openapi_spec_parser.ts: Base OpenAPI spec parsing logic includingsanitizeSchemaTypesto ensure compatibility with Gemini function calling schemas.tool_auth_handler.ts: Context credential caching and preparation handler for tool contexts.Testing Plan
Unit Tests:
Summary of passed results:
openapi_spec_parser/tool_auth_handler.ts: 100%openapi_spec_parser/openapi_spec_parser.ts: 94.81%openapi_spec_parser/operation_parser.ts: 93.60%Checklist