Common AI Hooks¶
The common-ai provider ships hooks that bridge an Airflow connection to a specific
LLM framework’s model objects. Each hook is a thin adapter: it reads credentials and
config from the connection, then returns native framework objects (a pydantic_ai
Agent / Model, a LangChain BaseChatModel or Embeddings, an MCP client,
…). Operators and @task decorators in this provider use these hooks internally.
Choosing a hook¶
Hook |
When to use |
|---|---|
Default for |
|
Direct LangChain access for tasks that compose |
|
Backs the LlamaIndex |