allow roleplayer use tool calling
This commit is contained in:
parent
b704114f3b
commit
c99ccdcc34
@ -332,7 +332,7 @@ def build_system_prompt(
|
|||||||
personality_block = _build_personality_block(cfg)
|
personality_block = _build_personality_block(cfg)
|
||||||
|
|
||||||
# ── 3. Tools block (hanya untuk skill yang butuh tools) ─────────────────────
|
# ── 3. Tools block (hanya untuk skill yang butuh tools) ─────────────────────
|
||||||
needs_tools = any(s in ("programmer", "analyst") for s in skills_list)
|
needs_tools = any(s in ("programmer", "analyst", "roleplayer") for s in skills_list)
|
||||||
tools_block = ""
|
tools_block = ""
|
||||||
if needs_tools and tools_definition is not None:
|
if needs_tools and tools_definition is not None:
|
||||||
tools_block = _build_tools_block(tools_definition)
|
tools_block = _build_tools_block(tools_definition)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user