FLARE kernel runtime package
Project description
flare-kernel
通用编排与执行内核。
边界文档:
packages/flare-kernel/docs/KERNEL-BOUNDARY.mddocs/contracts/agent-contract-v1.md
职责:
- Decision 路由与策略入口。
- Execution 流程推进与状态管理。
- Runtime(含重试、超时、追踪)。
- 加载 domain pack 并执行。
Day 2 最小骨架
目录:
src/flare_kernel/router:接口路由src/flare_kernel/runtime:trace_id与基础日志src/flare_kernel/contracts:请求/响应契约
最小接口:
POST /kernel/runPOST /kernel/streamGET /kernel/healthPOST /kernel/knowledge/ingestPOST /kernel/knowledge/search
kernel 现已输出 mode/context 运行时占位事件与字段。
品牌注入(可选)
- kernel 支持从 domain-pack 读取品牌配置:
branding/instance-branding.json - 读取方式:
- 仅通过环境变量
FLARE_DOMAIN_PACK_ROOT显式指定
- 仅通过环境变量
- 注入位置:
POST /kernel/run响应result.instance_profilePOST /kernel/streamSSE 事件instance_profile
说明:品牌注入通过外部 domain-pack 配置,core 不写死产品名、logo、标签。
本地启动(示例):
uvicorn flare_kernel.main:app --app-dir packages/flare-kernel/src --host 0.0.0.0 --port 8002
环境变量(真实链路):
DASHSCOPE_API_KEY(必填,真实百炼调用)LLM_PROVIDER_BACKEND(默认dashscope)FLARE_POSTGRES_DSNFLARE_REDIS_URLFLARE_QDRANT_URL
健康检查会输出依赖状态:
llm_readypostgres_readyredis_readyqdrant_ready
模式决策优先级(/kernel/run 与 /kernel/stream):
intent_override(外部业务侧注入)- 消息意图识别(内置关键词)
manual_modecurrent_mode- fallback(
intent/default)
最小发布说明
- 当前包版本:
0.1.0 - 发布元数据:
packages/flare-kernel/pyproject.toml - 本地构建:
python -m build - 本地安装:
pip install packages/flare-kernel
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flare_kernel-0.2.3.tar.gz.
File metadata
- Download URL: flare_kernel-0.2.3.tar.gz
- Upload date:
- Size: 334.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48c2a363ee9db1721f37973add4c74cf21e0f677c935ffb3926ca27b779a0854
|
|
| MD5 |
65ecb9939165b0001bb0eb629eb419a6
|
|
| BLAKE2b-256 |
223e7d149a2a0bde708b1e3f326c9b2ac24f3f03299b37be81c6399f64fd5028
|
Provenance
The following attestation bundles were made for flare_kernel-0.2.3.tar.gz:
Publisher:
publish-pypi.yml on Dante-Vonarmia/F.L.A.R.E
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flare_kernel-0.2.3.tar.gz -
Subject digest:
48c2a363ee9db1721f37973add4c74cf21e0f677c935ffb3926ca27b779a0854 - Sigstore transparency entry: 1354849584
- Sigstore integration time:
-
Permalink:
Dante-Vonarmia/F.L.A.R.E@0582a3a4fcc3a7922130af1b24906cc89b3c6ee6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Dante-Vonarmia
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@0582a3a4fcc3a7922130af1b24906cc89b3c6ee6 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file flare_kernel-0.2.3-py3-none-any.whl.
File metadata
- Download URL: flare_kernel-0.2.3-py3-none-any.whl
- Upload date:
- Size: 377.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbb0fb90996efa94e0a7d6ff9583faa9edccf0014cbdec339ada1b6ffdc1df53
|
|
| MD5 |
478bdfe117bdc2165cee3a10b513c472
|
|
| BLAKE2b-256 |
41f6aef12029800e7cce52609bc91c4491a8ccc8f8c775a4c7d22d79489b66c3
|
Provenance
The following attestation bundles were made for flare_kernel-0.2.3-py3-none-any.whl:
Publisher:
publish-pypi.yml on Dante-Vonarmia/F.L.A.R.E
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flare_kernel-0.2.3-py3-none-any.whl -
Subject digest:
dbb0fb90996efa94e0a7d6ff9583faa9edccf0014cbdec339ada1b6ffdc1df53 - Sigstore transparency entry: 1354849637
- Sigstore integration time:
-
Permalink:
Dante-Vonarmia/F.L.A.R.E@0582a3a4fcc3a7922130af1b24906cc89b3c6ee6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Dante-Vonarmia
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@0582a3a4fcc3a7922130af1b24906cc89b3c6ee6 -
Trigger Event:
workflow_dispatch
-
Statement type: