1import { getExchangeRates } from "https://esm.town/v/mgruel/getExchangeRates";
2
3/** Calls https://www.exchangerate-api.com to retrieve the currency exchange rates
4 * for the provided base currency or "eur" if undefined
5 * @param {string} desired - The desired currency convert to
9 };
10};
11export const pageApi = async <T extends any = any>(
12 url: string,
13 { offset = 0, limit = 25 }: {
3
4export const pipeSampleLLMTool = (async () => {
5 const { SerpAPI } = await import("npm:langchain/tools");
6 const { PromptTemplate } = await import("npm:langchain/prompts");
7 const { StringOutputParser } = await import(
8 "npm:langchain/schema/output_parser"
9 );
10 const search = new SerpAPI(process.env.SERPAPI_KEY);
11 const prompt = PromptTemplate.fromTemplate(
12 `Turn the following user input into a search query for a search engine:
3// Public holidays in the US in 2023
4export let holidaysUS = fetchJSON(
5 "https://date.nager.at/api/v2/publicholidays/2023/US"
6);
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3// Explore the Star Wars universe, from StarWarsAPI
4export let starWars = fetchJSON(
5 "https://swapi.dev/api/people/1/"
6);
7 commands: Array<Object>
8) => {
9 let url = `https://discord.com/api/v10/applications/${app_id}/`;
10 if (guild_id) {
11 url += `guilds/${guild_id}/commands`;
11 token: process.env.vt_token,
12 error: true,
13 source: ["api", "interval"],
14 since: interval.lastRunAt,
15 });