Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/minor-pydantic-ai-engine.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .github/aw/engines.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"id": "kiro",
"import": "github/gh-aw/.github/workflows/shared/kiro.md"
},
{
"id": "pydantic-ai",
"import": "github/gh-aw/.github/workflows/shared/pydantic.md"
},
{
"id": "opencode",
"import": "github/gh-aw/.github/workflows/shared/opencode.md"
Expand Down
1 change: 1 addition & 0 deletions .github/aw/syntax-engine.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ See [syntax-agentic.md](syntax-agentic.md) for the full frontmatter field index.
- The experimental `deepseek-harness` engine is available through `imports: [shared/deepseek-harness.md]`; see [`smoke-deepseek-harness.md`](../workflows/smoke-deepseek-harness.md) for an example. It runs the developer-preview `dsh` headless profile with AWF provider routing and uses `provider/model` syntax.
- The experimental `cursor` engine is available through `imports: [shared/cursor.md]`; see [`smoke-cursor.md`](../workflows/smoke-cursor.md) for an example. Requires the `CURSOR_API_KEY` secret. Cursor reads project rules from `.cursor/rules/*.mdc` and respects the root-level `.cursorignore` and `AGENTS.md`; both are protected in the manifest. Use `model: cursor/auto` or a specific model such as `cursor/claude-3-7-sonnet`.
- The experimental `kiro` engine is available through `imports: [shared/kiro.md]`; see [`smoke-kiro.md`](../workflows/smoke-kiro.md) for an example. Requires the `KIRO_API_KEY` secret. Kiro reads steering documents from `.kiro/steering/` and hook definitions from `.kiro/hooks/`; these directories and `AGENTS.md` are protected in the manifest. Model must use `kiro/` prefix, e.g. `model: kiro/claude-sonnet-4-5`.
- The experimental `pydantic-ai` engine is available through `imports: [shared/pydantic.md]`; see [`smoke-pydantic.md`](../workflows/smoke-pydantic.md) for an example. It runs the Pydantic AI `pai` CLI with the `pydantic-ai-harness` coder agent and uses `provider/model` syntax.
- The experimental `crush`, `aider`, `goose`, and `custom` (GenAIScript) engines are also available through `imports: [shared/<engine>.md]`; see [`smoke-crush.md`](../workflows/smoke-crush.md), [`smoke-aider.md`](../workflows/smoke-aider.md), and [`smoke-goose.md`](../workflows/smoke-goose.md) for examples. Full list of import-based engines: see `.github/aw/engines.json`.
- Object format for extended configuration:

Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/agentic_commands.yml

Large diffs are not rendered by default.

381 changes: 381 additions & 0 deletions .github/workflows/shared/pydantic.md

Large diffs are not rendered by default.

2,348 changes: 2,348 additions & 0 deletions .github/workflows/smoke-pydantic.lock.yml

Large diffs are not rendered by default.

77 changes: 77 additions & 0 deletions .github/workflows/smoke-pydantic.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
---
private: true
emoji: "🐍"
description: Smoke test workflow that validates Pydantic AI engine functionality
on:
slash_command:
name: smoke-pydantic
strategy: centralized
events: [issues, issue_comment, pull_request, pull_request_comment]
workflow_dispatch:
pull_request:
types: [labeled]
names: ["water"]
reaction: "rocket"
status-comment: true
permissions:
contents: read
issues: read
pull-requests: read
name: Smoke Pydantic AI
model: copilot/claude-sonnet-4-5
engine:
id: pydantic-ai
strict: true
imports:
- shared/pydantic.md
- shared/smoke-test-brevity.md
- shared/reporting.md
network:
allowed: []
safe-outputs:
allowed-domains: [default-safe-outputs]
add-comment:
hide-older-comments: true
max: 2
create-issue:
expires: 2h
close-older-issues: true
close-older-key: "smoke-pydantic"
labels: [automation, testing]
add-labels:
allowed: [smoke-pydantic]
messages:
footer: "> 🐍 *[{workflow_name}]({run_url}) — Powered by Pydantic AI*{ai_credits_suffix}{history_link}"
run-started: "🐍 Pydantic AI initializing... [{workflow_name}]({run_url}) begins on this {event_type}..."
run-success: "🐍 [{workflow_name}]({run_url}) Pydantic AI delivered."
run-failure: "⚠️ [{workflow_name}]({run_url}) {status}. Pydantic AI encountered unexpected challenges..."
timeout-minutes: 10
features:
gh-aw-detection: false
sandbox:
agent:
id: awf
---

# Smoke Test: Pydantic AI Engine Validation

## Test Requirements

1. **Model Connectivity Testing**: Answer the question "What is 2 + 2?" in a single short line.
2. **MCP Tool Testing**: Confirm that the `safeoutputs` MCP tools are available to you.
3. **Coder Toolset Testing**: Use your `read_file` tool to read `README.md` from the repository root and quote its first line verbatim. Do not shell out and do not guess the content — this test only passes when the file tool returns it.

## Output

**ALWAYS create an issue** using the `create_issue` safe-output tool:
- Title: "Smoke Test: Pydantic AI - ${{ github.run_id }}"
- Body should include:
- Test results (✅ or ❌ for each test), including the quoted first line of `README.md`
- Overall status: PASS or FAIL
- Run URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}

**Only if this workflow was triggered by a pull_request event**: Use the `add_comment` safe-output tool to add a **very brief** comment (max 5-10 lines) to the triggering pull request (omit the `item_number` parameter to auto-target the triggering PR) containing:
- ✅ or ❌ for each test result
- Overall status: PASS or FAIL

If all tests pass and this workflow was triggered by a pull_request event, use the `add_labels` safe-output tool to add the label `smoke-pydantic` to the pull request (omit the `item_number` parameter to auto-target the triggering PR).
3 changes: 2 additions & 1 deletion docs/src/content/docs/reference/engines.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Copilot CLI is the default, so `engine:` can be omitted when using Copilot. Copi

## Unsupported engine samples

The OpenCode, Aider, Crush, Cursor, DeepSeek Harness, and Kiro integrations in this repository are **samples only**. They are not officially supported by gh-aw and have no compatibility or maintenance commitment.
The OpenCode, Aider, Crush, Cursor, DeepSeek Harness, Kiro, and Pydantic AI integrations in this repository are **samples only**. They are not officially supported by gh-aw and have no compatibility or maintenance commitment.

| Sample engine | Sample definition |
|---------------|-------------------|
Expand All @@ -33,6 +33,7 @@ The OpenCode, Aider, Crush, Cursor, DeepSeek Harness, and Kiro integrations in t
| [Cursor](https://cursor.com/docs/cli) | `.github/workflows/shared/cursor.md` |
| [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) | `.github/workflows/shared/deepseek-harness.md` |
| [Kiro](https://kiro.dev/) | `.github/workflows/shared/kiro.md` |
| [Pydantic AI](https://ai.pydantic.dev/) | `.github/workflows/shared/pydantic.md` |

Engine owners should publish and maintain their own Markdown integration definition. Users should import the definition from that owner-maintained source, pinned to a tag or commit SHA. The in-repository files are examples for authors, not supported engine integrations.

Expand Down
6 changes: 6 additions & 0 deletions pkg/workflow/engine_definition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ func TestEngineCatalog_Resolve_KnownImportTip(t *testing.T) {
{"id": "aider", "import": "github/gh-aw/.github/workflows/shared/aider.md"},
{"id": "goose", "import": "github/gh-aw/.github/workflows/shared/goose.md"},
{"id": "kiro", "import": "github/gh-aw/.github/workflows/shared/kiro.md"},
{"id": "pydantic-ai", "import": "github/gh-aw/.github/workflows/shared/pydantic.md"},
{"id": "custom", "import": "github/gh-aw/.github/workflows/shared/genaiscript.md"}
]
}`), nil)
Expand Down Expand Up @@ -214,6 +215,11 @@ func TestEngineCatalog_Resolve_KnownImportTip(t *testing.T) {
engineID: "kiro",
wantImportPath: "github/gh-aw/.github/workflows/shared/kiro.md@" + knownEngineImportTestRef,
},
{
name: "pydantic-ai tip",
engineID: "pydantic-ai",
wantImportPath: "github/gh-aw/.github/workflows/shared/pydantic.md@" + knownEngineImportTestRef,
},
{
name: "custom tip",
engineID: "custom",
Expand Down