Skip to content

feat: add direct starlette support for GraphEvent#46

Merged
jamescalam merged 1 commit intomainfrom
james/starlette-compat
Sep 6, 2025
Merged

feat: add direct starlette support for GraphEvent#46
jamescalam merged 1 commit intomainfrom
james/starlette-compat

Conversation

@jamescalam
Copy link
Copy Markdown
Member

This pull request introduces a new FAQ for a common user error, adds a method for encoding GraphEvent objects as JSON for compatibility with FastAPI and Starlette, and bumps the package version to 0.0.10rc1.

Documentation improvements:

  • Added a new FAQ entry in docs/user-guide/faqs.md explaining the TypeError: object dict can't be used in 'await' expression, including the cause and solution for users defining nodes without async def.

Core library enhancements:

  • Added an encode method to the GraphEvent class in graphai/callback.py to serialize events as JSON, improving integration with FastAPI and Starlette.

Project metadata:

  • Updated the package version in pyproject.toml from 0.0.9 to 0.0.10rc1.

@jamescalam jamescalam merged commit 5e0dd10 into main Sep 6, 2025
7 checks passed
@jamescalam jamescalam deleted the james/starlette-compat branch September 6, 2025 04:20
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.

1 participant