caldana commited on
Commit
d390ee2
1 Parent(s): a06fcae

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +28 -0
README.md CHANGED
@@ -24,6 +24,22 @@ tools_info = [
24
  "required": ["reservation_number"]
25
  }
26
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  ]
28
  ```
29
 
@@ -48,6 +64,18 @@ messages = [
48
  ]
49
  ```
50
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  ## Model Loading
52
 
53
  Load the causal language model and tokenizer.
 
24
  "required": ["reservation_number"]
25
  }
26
  },
27
+ {
28
+ "name": "get_reservations",
29
+ "description": "get reservation numbers",
30
+ "parameters": {
31
+ "type": "object",
32
+ "properties": {
33
+ "user_id": {
34
+ "type": "integer",
35
+ "description": "User id"
36
+ }
37
+ },
38
+ "required": [
39
+ "user_id"
40
+ ]
41
+ }
42
+ },
43
  ]
44
  ```
45
 
 
64
  ]
65
  ```
66
 
67
+ Or the user requests to display its reservations, note the use of "tool" role.
68
+
69
+ ```python
70
+ messages=[
71
+ {"role":"system","content": system},
72
+ {"role": "user","content": "Help me to find my reservations, my user id is 110"},
73
+ {"role": "assistant","content":'<func_call> {"name": "get_reservations", "arguments": {"user_id": 110}}'},
74
+ {"role": "tool","content":'["AB001","CD002","GG100"]'}
75
+ ]
76
+ ```
77
+
78
+
79
  ## Model Loading
80
 
81
  Load the causal language model and tokenizer.