task_type: "tool" on the question and describe each tool in its option.
Response
Why task_type: "tool"
task_type tells Krun One what kind of decision it is making. With "tool", the model uses its tool-routing instructions and the abstention policy for tools, and the answer is marked advisory. Without it, the question is treated as an intent.
Always set task_type: "tool" when the options are tools or functions.
Writing tool options
- Use the tool’s real name as the option id, like
calendar_search. The returnedchoiceis then the name your agent calls. - Describe what the tool does, in one short sentence. Descriptions matter most when tools are similar, such as
search_contactsandsearch_calendar. - Offer only the tools available at this step. Fewer, relevant tools give more reliable choices.
Abstention is advisory for tools
Keep your own safeguards for tool calls:- validate the arguments before calling the tool,
- ask for confirmation before actions with side effects, like sending an email or making a payment,
- give your agent a path for “none of these tools”, for example answering directly with an LLM.