File size: 287 Bytes
257d034
 
 
 
 
b17a85f
257d034
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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))