GeezerVison is showing adk.dev — APIHubToolsetOptions | ADK for TypeScript: API Reference - v2.5.0
Interface APIHubToolsetOptions
Properties
OptionalaccessToken
accessToken?: string
An OAuth access token for API Hub, for example the output of
gcloud auth print-access-token. Ignored when apihubClient is set.
OptionalapihubClient
The client that fetches the spec. Defaults to an APIHubClient
built from accessToken and serviceAccountJson.
apihubResourceName
apihubResourceName: string
The API Hub resource to build tools from. It must name an API, and may
also name a version and a spec, for example
projects/my-project/locations/us-central1/apis/my-api. An API Hub
console URL is also accepted.
When it names a spec, that spec is used. Otherwise the first spec of the
named version, or of the first version of the named API, is used.
OptionalauthCredential
Auth credential applied to every tool the spec produces.
OptionalauthScheme
authScheme?: SecuritySchemeObject
Auth scheme applied to every tool the spec produces.
Optionaldescription
description?: string
The toolset description. When empty, it is set from the spec's
info.description.
OptionallazyLoadSpec
lazyLoadSpec?: boolean
When true, the spec is fetched on the first call to getTools
instead of when the toolset is constructed.
Optionalname
name?: string
The toolset name. When empty, it is set from the spec's info.title in
snake_case, or unnamed when the spec has no title.
OptionalserviceAccountJson
serviceAccountJson?: string
The content of a service account key file, as a JSON string, used to
authenticate to API Hub when accessToken is not set. Ignored when
apihubClient is set.
OptionaltoolFilter
Filter selecting which tools from the spec are exposed by getTools.
Accepts a list of tool names or a ToolPredicate function.