76d991c447
Auto Update PR / update-prs (push) Has been cancelled
CI / format-check (push) Has been cancelled
CI / test (3.10) (push) Has been cancelled
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / live-api-tests (push) Has been cancelled
CI / plugin-integration-test (push) Has been cancelled
CI / ollama-integration-test (push) Has been cancelled
CI / test-fork-pr (push) Has been cancelled
Backward Compatibility Layer
This directory contains backward compatibility shims for deprecated imports.
Deprecation Timeline
All code in this directory will be removed in LangExtract v2.0.0.
Migration Guide
The following imports are deprecated and should be updated:
Inference Module
from langextract.inference import BaseLanguageModel→from langextract.core.base_model import BaseLanguageModelfrom langextract.inference import ScoredOutput→from langextract.core.types import ScoredOutputfrom langextract.inference import InferenceOutputError→from langextract.core.exceptions import InferenceOutputErrorfrom langextract.inference import GeminiLanguageModel→from langextract.providers.gemini import GeminiLanguageModelfrom langextract.inference import OpenAILanguageModel→from langextract.providers.openai import OpenAILanguageModelfrom langextract.inference import OllamaLanguageModel→from langextract.providers.ollama import OllamaLanguageModel
Schema Module
from langextract.schema import BaseSchema→from langextract.core.schema import BaseSchemafrom langextract.schema import Constraint→from langextract.core.schema import Constraintfrom langextract.schema import ConstraintType→from langextract.core.schema import ConstraintTypefrom langextract.schema import EXTRACTIONS_KEY→from langextract.core.schema import EXTRACTIONS_KEYfrom langextract.schema import GeminiSchema→from langextract.providers.schemas.gemini import GeminiSchema
Exceptions Module
- All exceptions:
from langextract.exceptions import *→from langextract.core.exceptions import *
Registry Module
from langextract.registry import *→from langextract.plugins import *from langextract.providers.registry import *→from langextract.providers.router import *
For Contributors
Do not add new code to this directory. All new development should use the canonical imports from core/ and providers/.