nguyenthanhthuan commited on
Commit
15e88dd
·
verified ·
1 Parent(s): ad8765d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -18
README.md CHANGED
@@ -138,26 +138,11 @@ tools = [SendEmail, WeatherInfo, SearchWeb, CreateCalendarEvent]
138
  llm_tools = llm.bind_tools(tools)
139
 
140
  # Example usage
141
- query = "Can you send an email to john@example.com about tomorrow's meeting?"
142
  print(llm_tools.invoke(query).content)
143
  # Output:
144
- #{
145
- # "type": "function",
146
- # "function": {
147
- # "name": "SendEmail",
148
- # "arguments": {
149
- # "to": ["[email protected]"],
150
- # "subject": "",
151
- # "body": "",
152
- # "cc": "",
153
- # "attachments": "",
154
- # "body": {
155
- # "message": "Hello John, I wanted to let you know that we have a meeting scheduled for tomorrow. Please mark your calendar."
156
- # }
157
- # }
158
- # }
159
- # }
160
-
161
  ```
162
 
163
  ## Core Features
 
138
  llm_tools = llm.bind_tools(tools)
139
 
140
  # Example usage
141
+ query = "Set a reminder to call John at 3 PM tomorrow. Also, translate 'Hello, how are you?' to Spanish."
142
  print(llm_tools.invoke(query).content)
143
  # Output:
144
+ # {"type":"function","function":{"name":"SetReminder","arguments":{"message":"Call John at 3 PM tomorrow"},"arguments":{"time":"","priority":"normal"}}}
145
+ # {"type":"function","function":{"name":"TranslateText","arguments":{"text":"Hello, how are you?", "source_lang":"en", "target_lang":"es"}}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
146
  ```
147
 
148
  ## Core Features