GeezerVison is showing adk.dev — VertexAiExampleStore | ADK for TypeScript: API Reference - v2.5.0
Class VertexAiExampleStore
Provides examples from a Vertex AI Example Store.
Constructors
constructor
-
new VertexAiExampleStore( examplesStoreName: string, apiClient: ExampleStoreApiClient,): VertexAiExampleStore
Initializes the VertexAiExampleStore.
Parameters
- examplesStoreName: string
The resource name of the vertex example store, in
the format of
projects/{project}/locations/{location}/exampleStores/{example_store}.
- apiClient: ExampleStoreApiClient
A client that reaches the Vertex AI Example Store API.
adk-js does not bundle the vertexai dependency the Python SDK relies
on, so the caller supplies this client.
Returns VertexAiExampleStore
Properties
Readonly[BASE_EXAMPLE_PROVIDER_SIGNATURE_SYMBOL]
"[BASE_EXAMPLE_PROVIDER_SIGNATURE_SYMBOL]": true
A unique symbol to identify ADK example provider classes.
ReadonlyexamplesStoreName
examplesStoreName: string
The resource name of the vertex example store, in
the format of
projects/{project}/locations/{location}/exampleStores/{example_store}.
Methods
getExamples
-
getExamples(query: string): Promise<Example[]>
Retrieves relevant examples from the Vertex AI Example Store for the given
query.
Returns Promise<Example[]>
Constructors
Properties
Methods