8 };
9}) {
10 return fetchJSON(`https://api.twitter.com/2/tweets`, {
11 method: "POST",
12 headers: {
1export function myApi(name) {
2 return "hi " + name;
3}
12 .map((item) =>
13 postToMastodon(
14 "https://mastodon.social/api/v1",
15 process.env.mastodonAccessToken,
16 `${item.title.charAt(0) === "↗" ? "🔗" : "✍️"} ${
7 | "Bullet"
8 | "Computer"
9 | "Rapid"
10 | "Top Rated"
11 | "Blitz"
1export function myApi(name) {
2 return "hi " + name;
3}
4
5export const pipeSampleLLMTool = (async () => {
6 const { SerpAPI } = await import("npm:langchain/tools");
7 const { PromptTemplate } = await import("npm:langchain/prompts");
8 const { StringOutputParser } = await import(
9 "npm:langchain/schema/output_parser"
10 );
11 const search = new SerpAPI(process.env.SERP);
12 const prompt = PromptTemplate.fromTemplate(
13 `Turn the following user input into a search query for a search engine:
1import { fetchJSON } from "https://esm.town/v/swyx/fetchJSON";
2
3export let testcase1 = fetchJSON('https://api.val.town/eval/@stevekrouse.messages')
4
5// export state = () => {
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);
2
3export const artICGetRandom = (limit: number = 1) =>
4 fetchJSON("https://api.artic.edu/api/v1/search", {
5 method: "POST",
6 headers: {
1export const axiosEx = (async () => {
2 const { default: axios } = await import("https://esm.sh/axios");
3 let r = await axios.get("https://api.github.com/users/stevekrouse/following");
4 return JSON.stringify(r);
5})();