Skip to main content

FLARE kernel runtime package

Project description

flare-kernel

通用编排与执行内核。

边界文档:

  1. packages/flare-kernel/docs/KERNEL-BOUNDARY.md
  2. docs/contracts/core/agent.md
  3. packages/flare-kernel/docs/replay-snapshot-technical-spec.md

职责:

  1. Decision 路由与策略入口。
  2. Execution 流程推进与状态管理。
  3. Runtime(含重试、超时、追踪)。
  4. 加载 domain pack 并执行。

Day 2 最小骨架

目录:

  1. src/flare_kernel/router:接口路由
  2. src/flare_kernel/runtimetrace_id 与基础日志
  3. src/flare_kernel/contracts:请求/响应契约

最小接口:

  1. POST /kernel/run
  2. POST /kernel/stream
  3. GET /kernel/health
  4. POST /kernel/knowledge/ingest
  5. POST /kernel/knowledge/search

kernel 现已输出 mode/context 运行时占位事件与字段。

品牌注入(可选)

  1. kernel 支持从 domain-pack 读取品牌配置: branding/instance-branding.json
  2. 读取方式:
    • 优先通过环境变量 FLARE_DOMAIN_PACK_ROOT 显式指定
    • 本地仓库运行时可回退到仓库根目录下的 domain-packs/
  3. 注入位置:
    • POST /kernel/run 响应 result.instance_profile
    • POST /kernel/stream SSE 事件 instance_profile

说明:品牌注入通过外部 domain-pack 配置,core 不写死产品名、logo、标签。

本地启动(示例):

uvicorn flare_kernel.main:app --app-dir packages/flare-kernel/src --host 0.0.0.0 --port 8002

环境变量(真实链路):

  1. APIPRO_API_KEY(必填,真实 APIPro 调用)
  2. LLM_PROVIDER_BACKEND(当前本地模板为 apipro
  3. FLARE_POSTGRES_DSN
  4. FLARE_REDIS_URL
  5. FLARE_QDRANT_URL

健康检查会输出依赖状态:

  1. llm_ready
  2. postgres_ready
  3. redis_ready
  4. qdrant_ready

模式决策优先级(/kernel/run/kernel/stream):

  1. intent_override(外部业务侧注入)
  2. 消息意图识别(内置关键词)
  3. manual_mode
  4. current_mode
  5. fallback(intent/default

最小发布说明

  1. 当前包版本:0.1.0
  2. 发布元数据:packages/flare-kernel/pyproject.toml
  3. 本地构建:python -m build
  4. 本地安装:pip install packages/flare-kernel

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flare_kernel-1.0.2.tar.gz (864.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flare_kernel-1.0.2-py3-none-any.whl (873.9 kB view details)

Uploaded Python 3

File details

Details for the file flare_kernel-1.0.2.tar.gz.

File metadata

  • Download URL: flare_kernel-1.0.2.tar.gz
  • Upload date:
  • Size: 864.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for flare_kernel-1.0.2.tar.gz
Algorithm Hash digest
SHA256 b31f3962cb173b610ce856b01f269c31e5651e7f83d095481c666624dfc9ba5c
MD5 868c8be3b3715cb91454fc68d0fed1e3
BLAKE2b-256 289a031a23397ae490bf36b21fda85e543997d83f7d2161f43c74837c57229f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for flare_kernel-1.0.2.tar.gz:

Publisher: publish-pypi.yml on Dante-Vonarmia/F.L.A.R.E

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flare_kernel-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: flare_kernel-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 873.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for flare_kernel-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a1b6e80ed5a057f04b07b9a4c4850575a19951e2169de4a02bd37fd7a47b46b7
MD5 8e828be108b74ead98908f591c7bb765
BLAKE2b-256 ba6aa573500088b2210f7e129b1ed8e4dc8b2b4d5613a446b71eea806ccbd53f

See more details on using hashes here.

Provenance

The following attestation bundles were made for flare_kernel-1.0.2-py3-none-any.whl:

Publisher: publish-pypi.yml on Dante-Vonarmia/F.L.A.R.E

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page