The operation to parse. A string is parsed as JSON, and a plain object is used as given.
OptionalpreservePropertyNames?: booleanKeeps the original parameter and function names instead of converting them to snake_case.
OptionalshouldParse?: booleanWhether to parse the operation during
construction. Defaults to true.
Gets the name of the security scheme this operation declares.
Only operation-level security is considered. Document-level security is
not visible from here, so a caller that needs the fallback uses
OpenApiSpecParser instead.
The first declared scheme name, or '' when the operation
declares none.
Gets the description of the tool, derived from the operation's description or summary.
A string representing the description.
Generates a JSON schema representing the arguments of the tool function call.
A JSON Schema object.
Gets the list of parsed parameters extracted from the OpenAPI operation.
An array of parsed parameters.
Generates a Python-style docstring describing the operation, every parameter and the return value.
The type names inside it are Python's, because the artifact is a docstring in adk-python's format and the same text reaches the model in both SDKs.
The generated docstring.
Gets the Python-style type hint of the return value.
A type name such as str, or Any when the operation declares
no typed 2xx response.
Gets the parsed return value of the operation.
The return value, or undefined when the parser was constructed
with shouldParse: false and nothing was loaded.
StaticloadBuilds a parser from parameters that were already parsed, without walking the operation again.
The operation the parameters came from.
The parsed parameters.
OptionalreturnValue: ApiParameterThe parsed return value, if any.
A parser holding the given parameters.
Parses an OpenAPI OperationObject and extracts its parameters, request body, and return value.
It maps OpenAPI parameters and request bodies into a flat list of
ApiParameterobjects that are compatible with Gemini's tool function declarations.