Feat/pydantic shipping label agent - #174
Merged
gautammanak1 merged 4 commits intoJul 24, 2026
Merged
Conversation
…mple Test-mode-only shipping-label booking agent for ASI:One. Demonstrates Pydantic AI's requires_approval=True human-in-the-loop gating, deps_type dependency injection, and structured output inside the real ASI:One interactive-card flow. Two-tier Stripe test payments, Shippo test-mode rate shopping, hazmat self-certification, optional insurance, and SAMPLE-label purchase with PDF delivery via Agentverse External Storage. Co-authored-by: Cursor <cursoragent@cursor.com>
Drop the CHANGELOG.md/README.md edits so the diff touches nothing outside the new example's own folder. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
gautammanak1
approved these changes
Jul 24, 2026
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.
Summary
It's a chat agent that shops shipping rates across USPS, UPS, FedEx, and DHL, then buys the label once you approve the price, entirely through ASI:One Interactive Cards. Instead of opening each carrier's site separately and re-entering the same package details three times, you state the destination and package once, get a live rate comparison with a recommendation, and confirm.
Youtube Demo : https://youtu.be/ZR83LAA2lJI
A few things worth calling out:
Type of Change
Checklist
ruff check ..ruff format ..README.mdfor the example (plus anARCHITECTURE.mdwith a sequence diagram)..env.example.CHANGELOG.md.README.md. (Not a community contribution, this is a corepydantic-agent/framework example.)Notes for Reviewers
TestModel/FunctionModeland mocked Stripe/Shippo clients, no real network calls or credentials needed to verify locally.