How Do Agentic LLMs Decide to Call Tools? A Tool-Call Vector Shaped by Suppression
Paper • 2610.09624 • Published • 1
text stringlengths 0 744 |
|---|
<|start_of_role|>system<|end_of_role|>Knowledge Cutoff Date: April 2024. |
Today's Date: May 05, 2026. |
You are Granite, developed by IBM. You are a helpful assistant with access to the following tools. When a tool is required to answer the user's query, respond only with <|tool_call|> followed by a JSON list of tools used. If a tool does not exist in the provided list of tools, notify the user that you do not have the a... |
<|start_of_role|>available_tools<|end_of_role|>[ |
{ |
"type": "function", |
"function": { |
"name": "write_file", |
"description": "Write file.", |
"parameters": { |
"type": "object", |
"properties": { |
"file_path": { |
"type": "string" |
}, |
"content": { |
"type": "string" |
} |
}, |
"required": [ |
"file_path", |
"content" |
] |
} |
} |
} |
]<|end_of_text|> |
<|start_of_role|>user<|end_of_role|>Add the function body in solve.py based on the function definition and docstring below: |
def decodeString(s: str) -> str: |
""" |
Decode a string encoded as k[substring] where bracketed substrings repeat k times, supporting nesting, and return the fully expanded string. |
>>> decodeString('3[a]2[bc]') |
'aaabcbc' |
""" |
pass<|end_of_text|> |
<|start_of_role|>assistant<|end_of_role|> |
<|start_of_role|>system<|end_of_role|>Knowledge Cutoff Date: April 2024. |
Today's Date: May 05, 2026. |
You are Granite, developed by IBM. You are a helpful assistant with access to the following tools. When a tool is required to answer the user's query, respond only with <|tool_call|> followed by a JSON list of tools used. If a tool does not exist in the provided list of tools, notify the user that you do not have the a... |
<|start_of_role|>available_tools<|end_of_role|>[ |
{ |
"type": "function", |
"function": { |
"name": "write_file", |
"description": "Write file.", |
"parameters": { |
"type": "object", |
"properties": { |
"file_path": { |
"type": "string" |
}, |
"content": { |
"type": "string" |
} |
}, |
"required": [ |
"file_path", |
"content" |
] |
} |
} |
} |
]<|end_of_text|> |
<|start_of_role|>user<|end_of_role|>Add the function body in solve.py based on the function definition and docstring below: |
def sol_equa(n): |
""" |
Return all non-negative integer solutions (x, y) to x^2 - 4*y^2 = n in decreasing order of x. |
>>> sol_equa(5) |
[[3, 1]] |
""" |
pass<|end_of_text|> |
<|start_of_role|>assistant<|end_of_role|> |
<|start_of_role|>system<|end_of_role|>Knowledge Cutoff Date: April 2024. |
Today's Date: May 05, 2026. |
You are Granite, developed by IBM. You are a helpful assistant with access to the following tools. When a tool is required to answer the user's query, respond only with <|tool_call|> followed by a JSON list of tools used. If a tool does not exist in the provided list of tools, notify the user that you do not have the a... |
<|start_of_role|>available_tools<|end_of_role|>[ |
{ |
"type": "function", |
"function": { |
"name": "write_file", |
"description": "Write file.", |
"parameters": { |
"type": "object", |
"properties": { |
"file_path": { |
"type": "string" |
}, |
"content": { |
"type": "string" |
} |
}, |
"required": [ |
"file_path", |
"content" |
] |
} |
} |
} |
]<|end_of_text|> |
<|start_of_role|>user<|end_of_role|>Add the function body in solve.py based on the function definition and docstring below: |
Datasets for the paper. Experiment code: MI4ToolCalling.
The main paired dataset contains 500 pairs per model: 300 training and 200 held-out.
Model keys: qwen3_4b, qwen3_8b, qwen3_14b, qwen35_4b, qwen35_9b, mistral_3p2_24b, granite_3p3_8b.
<model-key>/
├── pair/ # Main paired prompts
├── multi_domain/ # Cross-domain inputs, where provided
├── controls/ # Appendix input cohorts, where provided
├── verb_free/ # Implicit requests
└── tau2_bench/ # Native call/text decision points
qwen3_8b/controlled/ # Additional code-domain localization inputs
Cross-domain inputs cover retrieval, SQL execution and email dispatch. Qwen3-4B and Qwen3-14B use the cross-domain inputs under qwen3_8b/.
Control manifests identify the exact appendix cohorts; their prompt paths are relative to the dataset repository root.
Download the file bundle into a fresh, empty dataset directory:
hf download XijieGong/MI4ToolCalling --type dataset --local-dir datasets
python datasets/validate.py
Apache License 2.0. Source benchmark content retains its original license.