Skip to main content
This page tracks deprecated features in LlamaIndex.TS and provides migration guidance.

Currently Deprecated

Agents (ReAct & Function Calling)

Deprecated in: v0.11.0
Status: Showing deprecation warnings
Removal Timeline: To be determined
Deprecated APIs:
  • llamaindex/agent
  • ReActAgent
  • OpenAIAgent
  • Legacy agent implementations in @llamaindex/core/agent
Replacement: Use the new @llamaindex/workflow package for building agentic workflows. Before:
After:
Why the change:
  • More flexible workflow orchestration
  • Better state management
  • Improved error handling
  • Support for complex multi-agent systems

ServiceContext

Deprecated in: v0.8.0
Removed in: v0.9.0
Status: Completely removed
Deprecated APIs:
  • ServiceContext
  • serviceContextFromDefaults()
  • All ServiceContext-related methods
Replacement: Use the Settings global configuration object. Before:
After:
Why the change:
  • 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.
Migration Path: Migrate to @llamaindex/workflow package:

Old Readers in Main Package

Status: Readers are being migrated to separate packages for better modularity.
Current Approach:
Recommended Approach:

Removed Features

Provider Re-exports (Removed in 0.9.0)

What was removed:
How to update:

gpt-tokenizer in Main Package (Removed in 0.9.16)

What changed: The gpt-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:
How to update:

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):
Current (standardized):

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.