Skip to content

Commit

Permalink
clean conections
Browse files Browse the repository at this point in the history
  • Loading branch information
rderbier committed Nov 22, 2024
1 parent ea69aa7 commit c273d87
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
22 changes: 10 additions & 12 deletions function-calling/api-as/assembly/warehouse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,6 @@ class Product {
price: string = "";
}

/**
* Our fake warehouse DB is a map of product name to product information.
*/
const productInfo: Map<string,Product> = new Map<string,Product>();
productInfo.set("Shoe", {qty: 10, price: "100"});
productInfo.set("Hat", {qty: 20, price: "200"});
productInfo.set("Trouser", {qty: 30, price: "300"});
productInfo.set("Shirt", {qty: 40, price: "400"});



/**
* Get the list of available products.
*/
Expand All @@ -44,4 +33,13 @@ export function get_product_info(string_args: string): string {
export class GetProductArguments {
product_name: string="";
attribute: string="";
}
}

/**
* Our fake warehouse DB is a map of product name to product information.
*/
const productInfo: Map<string,Product> = new Map<string,Product>();
productInfo.set("Shoe", {qty: 10, price: "100"});
productInfo.set("Hat", {qty: 20, price: "200"});
productInfo.set("Trouser", {qty: 30, price: "300"});
productInfo.set("Shirt", {qty: 40, price: "400"});
4 changes: 0 additions & 4 deletions function-calling/api-as/modus.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
}
},
"connections": {
"play": {
"type": "http",
"baseUrl": "https://play.dgraph.io/"
},
"openai": {
"type": "http",
"baseUrl": "https://api.openai.com/",
Expand Down

0 comments on commit c273d87

Please sign in to comment.