Enabling async agent creation and using async agent invocation #48
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.
PR: Major Refactor – Native Async APIs, Dependency Upgrades, and Adapter Modernization
Overview
Implementation of Issue #45
The main driver for this change is to support native async/await throughout the API, greatly increasing flexibility, performance, and alignment with the latest patterns in the Langchain and FastAPI ecosystems.
Key Changes
1. Full Async Support for Agent Lifecycle and APIs
async
-first APIs for agent lifecycle (acreate_agent
,ainvoke
, etc.), FastAPI routers, and key integration points.2. Dependency and Model Adapter Modernization
langchain
,openai
,langchain-openai/antrhopic
,fastapi
etc.3. Consistent Prompt Handling and Factory APIs
messages_modifier
toprompt
)4. Streaming and Real-Time Features
5. Dependency Pinning & Poetry Lock Refresh
pyproject.toml
andpoetry.lock
were reviewed and updated to ensure maximum compatibility with async frameworks and modern LLM model packages.6. Example Factories, Test Suites, and Documentation Updates
Motivation
Migration/Breaking Changes
await
and async FastAPI endpoints when customizing.Compatibility
Thank you for considering this major upgrade—this PR sets up the project and its users for scalable, concurrent, and forward-looking LLM API deployments!