Skip to content

Add quick start guide to common.ai provider docs#69552

Merged
Lee-W merged 5 commits into
apache:mainfrom
astronomer:common-ai-quickstart
Jul 13, 2026
Merged

Add quick start guide to common.ai provider docs#69552
Lee-W merged 5 commits into
apache:mainfrom
astronomer:common-ai-quickstart

Conversation

@Lee-W

@Lee-W Lee-W commented Jul 7, 2026

Copy link
Copy Markdown
Member

Why

The common.ai provider has reference docs (connections, hooks, operators) but no single entry point that guides a new user from installation to their first running LLM task. This adds that on-ramp so someone landing on the provider docs has an obvious first page to follow.

What

  • New providers/common/ai/docs/quickstart.rst — a three-step guide:
    1. Install
    2. Configure a Pydantic AI connection (pydanticai conn type, provider:model
      format, API key in the password field)
    3. Write a first @task.llm Dag and run it with airflow dags test
  • Covers structured output (output_type with a Pydantic BaseModel) briefly,
    deferring the full example to the existing howto/operator:llm guide.
  • Ends with a "Where to go next" section linking into operators, toolsets, the
    agent guide, and observability.

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Generated-by: [Claude] following the guidelines


  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@Lee-W
Lee-W force-pushed the common-ai-quickstart branch 2 times, most recently from 15fd4a0 to 9909c3d Compare July 8, 2026 04:38
@Lee-W
Lee-W marked this pull request as ready for review July 8, 2026 04:43
@Lee-W
Lee-W requested review from gopidesupavan and kaxil as code owners July 8, 2026 04:43
@Lee-W
Lee-W force-pushed the common-ai-quickstart branch 2 times, most recently from 400b379 to 5f2c126 Compare July 8, 2026 08:51
Comment thread providers/common/ai/docs/quickstart.rst Outdated
Comment thread providers/common/ai/docs/quickstart.rst Outdated
Comment thread providers/common/ai/docs/quickstart.rst Outdated
Comment thread providers/common/ai/docs/quickstart.rst Outdated
@Lee-W
Lee-W force-pushed the common-ai-quickstart branch from 5f2c126 to 35d68d4 Compare July 9, 2026 07:33
@Lee-W
Lee-W requested a review from kaxil July 9, 2026 08:12
@Lee-W

Lee-W commented Jul 9, 2026

Copy link
Copy Markdown
Member Author
image

@Lee-W

Lee-W commented Jul 9, 2026

Copy link
Copy Markdown
Member Author
image image

also adding a few screenshots for reference. thanks!

@Lee-W
Lee-W force-pushed the common-ai-quickstart branch 2 times, most recently from 50a241b to c62ca49 Compare July 10, 2026 11:12
Comment thread providers/common/ai/docs/index.rst
Lee-W added 5 commits July 13, 2026 08:43
New docs/quickstart.rst walks a new user from install through the
Pydantic AI connection to a first @task.llm Dag, linking into the
existing guides; wired as the first Guides toctree entry.
The install step omitted the model SDK extra, so following the guide
as written raised ImportError on the quickstart's own example. The
connection example also double-encoded the extra field as a JSON
string instead of the nested object Connection.from_json already
accepts. Also clarifies the opener and adds a prerequisites note.
The quickstart's runnable Dag was inline code-block, so it wasn't
covered by the example-dag import test and duplicated the
howto_decorator_llm block in example_llm.py. Move it to
example_quickstart.py (using airflow.sdk directly, since this
provider requires Airflow 3.0+) and reference it from the doc via
exampleinclude, so it stays in sync with what actually runs.
Only the model-SDK extras (openai/anthropic/google/bedrock) are
worth calling out in the quickstart's install step; point readers
to the provider's full extras table in index.rst instead of
duplicating it, since that table already stays in sync with
pyproject.toml at release time.
pydantic-ai supports more model providers than the four extras the docs
call out, each under its own extra name; point readers at the upstream
slim-install list so they can find the one matching their provider.
@Lee-W
Lee-W force-pushed the common-ai-quickstart branch from c62ca49 to 8cc3e90 Compare July 13, 2026 01:09
@Lee-W Lee-W self-assigned this Jul 13, 2026
@Lee-W
Lee-W requested a review from gopidesupavan July 13, 2026 08:00
@Lee-W
Lee-W merged commit c382278 into apache:main Jul 13, 2026
83 checks passed
@Lee-W
Lee-W deleted the common-ai-quickstart branch July 13, 2026 08:56
joshuabvarghese pushed a commit to joshuabvarghese/airflow that referenced this pull request Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants