Currently Deprecated
Agents (ReAct & Function Calling)
Deprecated APIs:llamaindex/agentReActAgentOpenAIAgent- Legacy agent implementations in
@llamaindex/core/agent
@llamaindex/workflow package for building agentic workflows.
Before:
- More flexible workflow orchestration
- Better state management
- Improved error handling
- Support for complex multi-agent systems
ServiceContext
Deprecated APIs:ServiceContextserviceContextFromDefaults()- All ServiceContext-related methods
Settings global configuration object.
Before:
- Simpler, more intuitive API
- Reduced boilerplate code
- Better alignment with modern patterns
Planned Deprecations
Legacy Workflows
Deprecation Notice: The old workflow system in the main package will be removed in a future version.
@llamaindex/workflow package:
Old Readers in Main Package
Status: Readers are being migrated to separate packages for better modularity.
Removed Features
Provider Re-exports (Removed in 0.9.0)
What was removed:gpt-tokenizer in Main Package (Removed in 0.9.16)
What changed: Thegpt-tokenizer dependency is now optional to reduce package size.
Impact:
If you need tokenization utilities, install separately:
Cloud Package Export (Removed in 0.12.0)
What was removed:API Naming Changes
These aren’t deprecations but important naming changes to be aware of:Embed Model
Old:embedModel (still works)Preferred:
embedModel (no change needed)
Chat vs Query
Before (some older examples):Best Practices for Handling Deprecations
1. Monitor Console Warnings
Deprecated features will show warnings in development:2. Check Your Dependencies
Regularly audit your imports:3. Update Incrementally
Don’t wait until removal:4. Read the Changelog
Before upgrading, review the CHANGELOG.md.5. Test After Migration
Always test your application after updating deprecated APIs:Getting Help with Deprecated Features
If you need help migrating from deprecated features:Discord Community
Ask questions in our Discord server
GitHub Discussions
Search for or start a discussion
Version Upgrades
See version-specific migration guides
Troubleshooting
Common migration issues and solutions
Deprecation Policy
LlamaIndex.TS follows semantic versioning:- Deprecation warnings: Added in minor versions (e.g., 0.11.0)
- Removal: Occurs in major versions (e.g., 1.0.0) or specified minor versions
- Notice period: At least one minor version before removal
We aim to provide clear migration paths and adequate notice for all deprecations.