Skip to content

feat: add fastapi generative ui example - #124

Merged
mplemay merged 6 commits into
mainfrom
add-fastapi-generative-ui-example
Aug 6, 2026
Merged

feat: add fastapi generative ui example#124
mplemay merged 6 commits into
mainfrom
add-fastapi-generative-ui-example

Conversation

@mplemay

@mplemay mplemay commented Aug 5, 2026

Copy link
Copy Markdown
Owner
  • Summary: Add a Pydantic AI FastAPI generative UI example with Vite frontend, typed Python package scaffolding, documentation, and lockfile updates.
  • Summary: Register the example in the AI agents and examples documentation indexes.
  • Testing: Add example coverage for validating the Pydantic AI UI project setup and behavior.

@cursor

cursor Bot commented Aug 5, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8298c2e102

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread examples/ui/pydantic-ai/src/pydantic_ai_ui/__main__.py Outdated
@mplemay
mplemay enabled auto-merge (squash) August 5, 2026 16:03
mplemay and others added 3 commits August 5, 2026 19:07
After the pydantic-ai rename, the FastAPI example still imported
BelgieCapability and instructed the model to call render() via run_code.
Switch to BelgieSandbox(enable_rendering=True) and render_widget so the
example imports and CI pass again.

Co-authored-by: Matt LeMay <mplemay@users.noreply.github.com>
CI lint failed because ruff required a trailing comma on BelgieSandbox
and uv/belgie lock hooks rewrote example lockfiles after the anyio
pydantic-ai extra landed on main.

Co-authored-by: Matt LeMay <mplemay@users.noreply.github.com>
@mplemay
mplemay merged commit 7bd162e into main Aug 6, 2026
15 checks passed
@mplemay
mplemay deleted the add-fastapi-generative-ui-example branch August 6, 2026 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants