Files
Cognitive_Agent/domains/_template/src/domain_plugin
2026-07-30 08:45:38 +08:00
..
2026-07-30 08:45:38 +08:00

Plugin Source

建议实现以下模块,具体接口以 cognitive_agent.sdk 为准:

  • plugin.py:创建并注册插件能力。
  • generator.py:IntentIR -> FunctionConfig。
  • validator.py:领域组合约束和上下文校验。
  • compiler.py:FunctionConfig + PlatformContext -> CommandPlan。
  • telemetry.py:CAN 回读到领域状态。

模块只返回数据或领域错误,不直接访问 LLM、数据库、HTTP 或 CAN socket。