Metadata-Version: 2.4
Name: polyllm-core
Version: 0.1.0
Summary: PolyLLM Python core: unified protocol, registry, and parameter policy.
Author: PolyLLM contributors
License-Expression: MIT
Project-URL: Homepage, https://polyllm.raingpt.top
Project-URL: Repository, https://github.com/you-want/PolyLLM
Project-URL: Issues, https://github.com/you-want/PolyLLM/issues
Keywords: llm,polyllm,plugins
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# PolyLLM Core for Python

PolyLLM Python 版核心包提供统一请求/响应协议、模型注册表、别名解析、参数策略和插件客户端。核心不内置任何厂商逻辑，所有供应商能力都由独立插件提供。

```python
from polyllm_core import create_llm
from polyllm_openai import OpenAIPlugin

llm = create_llm(
    plugins=[OpenAIPlugin()],
    providers={"openai": {"api_key": "..."}},
)

response = await llm.chat(
    "openai:gpt-4o-mini",
    messages=[{"role": "user", "content": "你好"}],
)
```
