Documentation
¶
Index ¶
- func App(ctx context.Context) (*firebase.App, error)
- func ContextProvider(ctx context.Context, policy AuthPolicy) (core.ContextProvider, error)
- func DefineFirestoreRetriever(g *genkit.Genkit, cfg RetrieverOptions) (ai.Retriever, error)
- func Init(ctx context.Context, g *genkit.Genkit, cfg *FirebasePluginConfig) error
- func Retrievers(ctx context.Context) ([]ai.Retriever, error)
- type AuthClient
- type AuthContext
- type AuthPolicy
- type FirebaseApp
- type FirebasePluginConfig
- type RetrieverOptions
- type VectorType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextProvider ¶ added in v0.3.0
func ContextProvider(ctx context.Context, policy AuthPolicy) (core.ContextProvider, error)
ContextProvider creates a Firebase context provider for Genkit actions.
func DefineFirestoreRetriever ¶ added in v0.3.0
Types ¶
type AuthClient ¶
AuthClient is a client for the Firebase Auth service.
type AuthContext ¶ added in v0.3.0
AuthContext is the context of an authenticated request.
type AuthPolicy ¶ added in v0.3.0
type AuthPolicy = func(context.Context, AuthContext, json.RawMessage) error
AuthPolicy is a function that validates an incoming request.
type FirebaseApp ¶
FirebaseApp is an interface to represent the Firebase App object
type FirebasePluginConfig ¶ added in v0.3.0
type FirebasePluginConfig struct { App *firebase.App // Pre-initialized Firebase app Retrievers []RetrieverOptions // Array of retriever options }
FirebasePluginConfig is the configuration for the Firebase plugin.
type RetrieverOptions ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.