forked from HAL9000/cleveragents-core
ef7e999df1
Relates to #5801 The spec defined AIProviderInterface as a model factory with create_chat_model() and create_embedding_model() methods. The implementation uses a higher-level plan-execution interface with generate_changes() and stream_changes(). The implementation's approach is more appropriate — it directly handles plan execution rather than exposing raw LangChain model creation. The ProviderRegistry manages provider selection and configuration at a higher level. Updated AIProviderInterface to match the actual implementation: - provider_name -> name (property) - capabilities -> model_id (property) - create_chat_model() -> generate_changes() (plan execution) - create_embedding_model() -> stream_changes() (streaming plan execution) Also updated the description: auto-discovery of langchain-* packages is not implemented; instead, providers are discovered based on configured API keys.