providers/common/ai/docs/operators/index.rst
.. Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
.. http://www.apache.org/licenses/LICENSE-2.0
.. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
The common-ai provider ships several operators (and matching @task decorators). Use this table
to pick the one that fits your use case:
.. list-table:: :header-rows: 1 :widths: 40 30 30
~airflow.providers.common.ai.operators.llm.LLMOperator@task.llm~airflow.providers.common.ai.operators.llm_file_analysis.LLMFileAnalysisOperator@task.llm_file_analysis~airflow.providers.common.ai.operators.llm_branch.LLMBranchOperator@task.llm_branch~airflow.providers.common.ai.operators.llm_sql.LLMSQLQueryOperator@task.llm_sql~airflow.providers.common.ai.operators.agent.AgentOperator@task.agent~airflow.providers.common.ai.operators.document_loader.DocumentLoaderOperator~airflow.providers.common.ai.operators.llamaindex_embedding.LlamaIndexEmbeddingOperator~airflow.providers.common.ai.operators.llamaindex_retrieval.LlamaIndexRetrievalOperatorLLMOperator / @task.llm — stateless, single-turn calls. Use this for classification,
summarization, extraction, or any prompt that produces one response. Supports structured output
via an output_type Pydantic model.
LLMFileAnalysisOperator / @task.llm_file_analysis — stateless, single-turn file analysis.
Use this when the prompt should reason over file contents or multimodal attachments already chosen
by the DAG author. The operator resolves files via ObjectStoragePath and keeps the interaction
read-only.
AgentOperator / @task.agent — multi-turn tool-calling loop. The model decides which tools to
invoke and when to stop. Use this when the LLM needs to take actions (query databases, call APIs,
read files) to produce its answer. You configure available tools through toolsets.
AgentOperator works without toolsets — pydantic-ai supports tool-less agents for multi-turn
reasoning — but if you don't need tools, LLMOperator is simpler and more explicit.
DocumentLoaderOperator — framework-agnostic file parsing. Use this to convert files
(text, CSV, JSON, PDF, DOCX) into list[dict(text, metadata)] for downstream embedding.
No AI framework dependency.
.. toctree:: :maxdepth: 1 :glob:
*