Class PineconePlugin.Builder
java.lang.Object
com.google.genkit.plugins.pinecone.PineconePlugin.Builder
- Enclosing class:
PineconePlugin
Builder for PineconePlugin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddIndex(PineconeIndexConfig indexConfig) Adds an index configuration.Sets the Pinecone API key (required unless externalClient is provided).build()Builds the PineconePlugin.client(io.pinecone.clients.Pinecone client) Sets an external Pinecone client to use instead of creating one.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiKey
Sets the Pinecone API key (required unless externalClient is provided). -
addIndex
Adds an index configuration. -
client
Sets an external Pinecone client to use instead of creating one. -
build
Builds the PineconePlugin.- Throws:
IllegalStateException- if required configuration is missing
-