Commit Graph

7 Commits

  • Python: [Breaking] Simplified Content types to a single class with classmethod constructors. (#3252)
    * ported Content to a new model
    
    * fixed linting
    
    * fixes
    
    * fixed data format handling
    
    * fix for 3.10 mypy
    
    * fix
    
    * fix int test
  • Python: Add dependencies param to ag-ui FastAPI endpoint (#3191)
    * Add dependencies param to ag-ui FastAPI endpoint
    
    * Address Copilot feedback
  • Python: [BREAKING]: removed display_name, renamed context_providers, middleware and AggregateContextProvider (#3139)
    * removed display_name, renamed context_providers, middleware and AggregateContextProvider
    
    * fixes
    
    * fixed test
    
    * testfix
    
    * removed mistakenly put back test
    
    * updated new test
    
    * rename middlewares to middleware
    
    * middleware fixes
  • Python: Add Pydantic request model and OpenAPI tags support to AG-UI FastAPI endpoint (#2522)
    * feat(ag-ui): Add Pydantic request model and OpenAPI tags support
    
    - Add AGUIRequest Pydantic model in _types.py with field descriptions
    - Update add_agent_framework_fastapi_endpoint() to accept tags parameter
    - Use AGUIRequest model for automatic validation and OpenAPI schema generation
    - Export AGUIRequest and DEFAULT_TAGS in __init__.py
    - Update test_endpoint.py to expect 422 for invalid requests
    - Add tests for OpenAPI schema, default tags, custom tags, and validation
    
    Benefits:
    - Better API documentation with complete request schema in Swagger UI
    - Automatic request validation with Pydantic
    - Organized endpoints under 'AG-UI' tag instead of 'default'
    - Improved developer experience and type safety
    
    Fixes #<issue-number>
    
    * test(ag-ui): Add test for internal error handling to achieve 100% coverage
    
    - Add test_endpoint_internal_error_handling() to cover exception handling code
    - Mock copy.deepcopy to simulate internal error during default_state processing
    - Add type: ignore for FastAPI tags parameter (known pyright compatibility issue)
    - Achieves 100% test coverage for _endpoint.py (previously missing lines 103-105)
  • Python: Refactor ag-ui to clean up some patterns (#2363)
    * Refactor ag-ui to clean up some patterns
    
    * Mypy fixes
    
    * Fix imports, typing, tests, logging.
    
    * Fix test import error
    
    * Fix imports again
    
    * Fix thread handling
  • Python: clean up exception (#2319)
    * Potential fix for code scanning alert no. 18: Information exposure through an exception
    
    Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
    
    * Fix test
    
    ---------
    
    Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Python: AG-UI protocol support (#1826)
    * Add AG-UI integration
    
    * Fix tests. PR feedback
    
    * Cleanup
    
    * PR Feedback
    
    * Improve README and getting started experience
    
    * Fix links