Files
inquiry_robot/inquiry-agent/agent/llm/mode_extract_fields.py
T

36 lines
890 B
Python

"""
DeepSeek B:文本字段抽取 mode 壳。
本文件职责:声明 mode 元数据与空 invoke_shell;不写字段合同激活规则。
禁止:在本文件改主账六态。
"""
from __future__ import annotations
from typing import Any
from agent.llm.modes import LlmMode
MODE = LlmMode.EXTRACT_FIELDS
def mode_meta() -> dict[str, Any]:
"""返回本 mode 的框架元数据(无 prompt 正文业务)。"""
return {
"mode": MODE.value,
"provider": "deepseek",
"purpose": "text_field_extract",
"implemented": False,
}
def invoke_shell(*, payload: dict[str, Any]) -> dict[str, Any]:
"""空壳:不调模型,返回未实现。"""
return {
"ok": False,
"stub": True,
"mode": MODE.value,
"error": "extract_fields_shell_not_implemented",
"echo_keys": sorted(payload.keys()),
}