| |
| |
| |
|
|
| """ |
| Minimal tool-declaration stub for the Kimi tokenizer PoC. |
| The real Kimi model uses this module for tool/function-call schema support. |
| """ |
|
|
| |
| TOOL_CALL_START = "<|tool_call_begin|>" |
| TOOL_CALL_END = "<|tool_call_end|>" |
| TOOL_CALL_ARG_BEGIN = "<|tool_call_argument_begin|>" |
|
|
|
|
| def build_tool_declaration(name: str, description: str = "", params: dict = None) -> dict: |
| """Stub — returns a minimal tool declaration dict.""" |
| return { |
| "name": name, |
| "description": description, |
| "parameters": params or {}, |
| } |
|
|
|
|
| print("[PoC] tool_declaration_ts.py stub loaded") |
|
|