tpls commited on
Commit
569c07f
·
verified ·
1 Parent(s): 2738fcb

add tool_calib.txt

Browse files
Files changed (1) hide show
  1. tool_calib.txt +27 -0
tool_calib.txt ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ User: What is the weather in Paris? Assistant tool call: get_weather with arguments {"city": "Paris"}.
2
+ User: Add 17 and 25. Assistant calls calculate {"a": 17, "b": 25, "op": "add"} and returns 42.
3
+ User: Read the file /etc/hosts. The assistant invokes read_file {"path": "/etc/hosts"}.
4
+ User: Search the web for the latest Rust release. Tool: web_search {"query": "latest stable Rust release version"}.
5
+ User: Convert 100 USD to EUR. Tool call: convert_currency {"amount": 100, "from": "USD", "to": "EUR"}.
6
+ User: Run this Python code: print(2 + 2). Assistant calls run_python {"code": "print(2 + 2)"}.
7
+ User: List files in /var/log. Assistant: list_dir {"path": "/var/log"}.
8
+ User: Send an email to alice@example.com with subject Hello. send_email {"to": "alice@example.com", "subject": "Hello", "body": ""}.
9
+ The function get_weather(city: string) returns the current temperature and conditions for the given city.
10
+ def fibonacci(n: int) -> int:\n if n < 2:\n return n\n return fibonacci(n - 1) + fibonacci(n - 2)
11
+ import json\nresponse = {"tool_calls": [{"name": "get_time", "arguments": {"timezone": "UTC"}}]}\nprint(json.dumps(response))
12
+ {"type": "function", "function": {"name": "create_issue", "parameters": {"type": "object", "properties": {"title": {"type": "string"}, "body": {"type": "string"}}, "required": ["title"]}}}
13
+ async fn fetch(url: &str) -> Result<String, reqwest::Error> { reqwest::get(url).await?.text().await }
14
+ SELECT name, email FROM users WHERE created_at > NOW() - INTERVAL '7 days' ORDER BY created_at DESC;
15
+ The assistant should respond with a single tool_call when the user asks for an action that a provided function can perform, and answer directly otherwise.
16
+ User: Book a flight from Tbilisi to Paris on June 30. Tool: book_flight {"from": "TBS", "to": "CDG", "date": "2026-06-30"}.
17
+ User: What time is it in Tokyo? Assistant calls get_time {"timezone": "Asia/Tokyo"}.
18
+ User: Translate "hello" to French. translate {"text": "hello", "source": "en", "target": "fr"}.
19
+ class Calculator:\n def add(self, a: float, b: float) -> float:\n return a + b\n def divide(self, a: float, b: float) -> float:\n return a / b
20
+ User: Create a GitHub issue titled "Bug in parser". Tool: create_issue {"title": "Bug in parser", "body": "The tokenizer crashes on empty input."}
21
+ User: Write a haiku about the sea. (No tool needed.) The assistant answers in prose without calling any function.
22
+ const handler = async (req, res) => { const data = await db.query('SELECT * FROM logs'); res.json(data); };
23
+ User: Delete the file temp.txt. Tool call: delete_file {"path": "temp.txt"}.
24
+ User: Get the stock price of AAPL. get_stock_price {"symbol": "AAPL"}.
25
+ User: Set a reminder for 9am tomorrow to call the dentist. set_reminder {"time": "2026-06-24T09:00", "message": "call the dentist"}.
26
+ package main\n\nimport "fmt"\n\nfunc main() { fmt.Println("hello world") }
27
+ User: How many days until New Year? Assistant calls days_until {"date": "2027-01-01"} and computes the difference.