CPM-jev / example.py
link921's picture
v0.2-research-preview: full merged MiniCPM5-2B JEV decision model
b17a85f verified
Raw History Blame Contribute Delete
287 Bytes
import json
from inference import DecisionModel
model = DecisionModel(".")
result = model.decide(
state="The previous tool call failed twice.",
question="What should the agent do next?",
options=["retry", "switch_tool", "ask_user"],
)
print(json.dumps(result, indent=2))