Python: Fix ag-ui examples packaging for PyPI publish - #1953
Merged
Conversation
Contributor
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR reorganizes the AG-UI examples into a proper Python package structure that can be distributed with the main agent-framework-ag-ui package. The package version is bumped to 1.0.0b251106.post1 to reflect this change.
- Moves example code from
examples/toagent_framework_ag_ui_examples/package - Updates the build configuration to include the examples package in the wheel distribution
- Adds proper package structure with
__init__.pyand__main__.pyfor module execution
Reviewed Changes
Copilot reviewed 1 out of 21 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
python/uv.lock |
Updates locked version to 1.0.0b251106.post1 |
python/packages/ag-ui/pyproject.toml |
Bumps version and changes package configuration from force-include to standard packages list |
python/packages/ag-ui/agent_framework_ag_ui_examples/server/main.py |
FastAPI server implementation with all AG-UI example endpoints |
python/packages/ag-ui/agent_framework_ag_ui_examples/server/api/backend_tool_rendering.py |
Backend tool rendering endpoint registration |
python/packages/ag-ui/agent_framework_ag_ui_examples/server/api/__init__.py |
API endpoints package initialization |
python/packages/ag-ui/agent_framework_ag_ui_examples/server/__init__.py |
Server package initialization |
python/packages/ag-ui/agent_framework_ag_ui_examples/agents/weather_agent.py |
Weather agent demonstrating backend tool rendering |
python/packages/ag-ui/agent_framework_ag_ui_examples/agents/ui_generator_agent.py |
UI generator agent for tool-based generative UI |
python/packages/ag-ui/agent_framework_ag_ui_examples/agents/task_steps_agent.py |
Task steps agent with streaming state updates and step execution simulation |
python/packages/ag-ui/agent_framework_ag_ui_examples/agents/task_planner_agent.py |
Task planner with human-in-the-loop approval workflow |
python/packages/ag-ui/agent_framework_ag_ui_examples/agents/simple_agent.py |
Basic chat agent example |
python/packages/ag-ui/agent_framework_ag_ui_examples/agents/research_assistant_agent.py |
Research assistant with async tools |
python/packages/ag-ui/agent_framework_ag_ui_examples/agents/recipe_agent.py |
Recipe agent with shared state management |
python/packages/ag-ui/agent_framework_ag_ui_examples/agents/human_in_the_loop_agent.py |
Human-in-the-loop agent with step customization |
python/packages/ag-ui/agent_framework_ag_ui_examples/agents/document_writer_agent.py |
Document writer with predictive state updates |
python/packages/ag-ui/agent_framework_ag_ui_examples/agents/__init__.py |
Exports all example agents |
python/packages/ag-ui/agent_framework_ag_ui_examples/__main__.py |
Module entry point for running the server |
python/packages/ag-ui/agent_framework_ag_ui_examples/__init__.py |
Package initialization |
python/packages/ag-ui/agent_framework_ag_ui_examples/README.md |
Comprehensive documentation for the AG-UI integration |
python/packages/ag-ui/agent_framework_ag_ui_examples/.vscode/settings.json |
VS Code Python path configuration |
python/packages/ag-ui/agent_framework_ag_ui_examples/.env.example |
Environment variable template |
dmytrostruk
approved these changes
Nov 6, 2025
arisng
pushed a commit
to arisng/agent-framework
that referenced
this pull request
Feb 2, 2026
* Fix ag-ui examples packaging for PyPI publish * Fix markdown links
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation and Context
With the latest attempts to expose the ag-ui examples via the PyPI package, things are still not working correctly - even though installing the package locally via uv worked. To finally fix things, this PR renames the
examplestoagent_framework_ag_ui_examplesso that it can properly be included with the package publishing.Mostly renaming in the PR, and a version bump. I built the wheel, and brought it into the AG-UI branch I am working on, and am able to properly use the examples.
Note: although there are renames, this isn't technically breaking because examples were never properly published/accessed.
Description
Fix ag-ui examples publishing.
Contribution Checklist