GenkitG
Genkitโ€ข10mo ago
managerial-maroon

Genkit Python import syntax

Genkit Python import syntax


Hi friends! I would love to get feedback from folks with Python experience.

Just like in JS, Genkit Python will have an open plugin ecosystem that the community can contribute to support a variety of different model providers, database providers, and other integrations.

Imagine you install the genkit-googleai package / plugin (separate from the core genkit package) to get access to Google models. When import syntax do you prefer?

Discuss in the thread!

Option 1:
from genkit import Genkit
from genkit_googleai import GoogleAI # comes from genkit-googleai package


Option 2:
from genkit.ai import Genkit
from genkit.plugins.googleai import GoogleAI # comes from genkit-googleai package
Was this page helpful?