Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
yuiseki committed Dec 31, 2024
1 parent 03ee13a commit edda419
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/langchain/tools/osm/overpass/tokyo_ramen/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export class OverpassTokyoRamenCount extends Tool {
description = `useful for when you need to count number of ramen shops by a name of area. Input: a name of area in Tokyo in Japanese.`;

async _call(input: string) {
// console.debug("Tool: OverpassTokyoRamenCount, input:", input);
try {
const overpassQuery = `[out:json][timeout:30000];
area["name"="東京都"]->.outer;
Expand All @@ -27,7 +26,7 @@ out geom;`;
const json = await res.json();

if (json.elements.length === 0) {
return "failed to fetch. change query";
return "Failed to fetch. change query";
}

let answer = json.elements.length;
Expand Down

0 comments on commit edda419

Please sign in to comment.