You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description:"Connects to a database to retrieve overall sales volumes and sales information for a given day.",
74
-
parameter_definitions: {
75
-
day: {
76
-
description:"Retrieves sales data for this day, formatted as YYYY-MM-DD.",
77
-
type:"str",
78
-
required:true
79
-
}
80
-
}
81
-
}
75
+
{
76
+
name:"query_daily_sales_report",
77
+
description:"Connects to a database to retrieve overall sales volumes and sales information for a given day.",
78
+
parameter_definitions: {
79
+
day: {
80
+
description:"Retrieves sales data for this day, formatted as YYYY-MM-DD.",
81
+
type:"str",
82
+
required:true
83
+
}
84
+
}
85
+
}
82
86
]
83
87
84
88
message ="Can you provide a sales summary for 29th September 2023, and also give me some details about the products in the 'Electronics' category, for example their prices and stock levels?"
85
89
86
90
client.chat(
87
91
model: model,
88
-
message:message,
89
-
tools: tools,
92
+
messages: [{ role:"user", content:message }],
93
+
tools: tools
90
94
)
91
95
```
92
96
93
97
### Embed
94
98
95
99
```ruby
96
100
client.embed(
97
-
texts: ["hello!"]
101
+
model:"embed-english-v3.0",
102
+
texts: ["hello", "goodbye"],
103
+
input_type:"classification",
104
+
embedding_types: ["float"]
98
105
)
99
106
```
100
107
@@ -110,6 +117,7 @@ docs = [
110
117
]
111
118
112
119
client.rerank(
120
+
model:"rerank-english-v3.0",
113
121
query:"What is the capital of the United States?",
0 commit comments