Skip to content

Instantly share code, notes, and snippets.

@OhadRubin
Created December 1, 2023 10:35
Show Gist options
  • Save OhadRubin/dcb00d74f93eb7c6a2142d8f0188bc4f to your computer and use it in GitHub Desktop.
Save OhadRubin/dcb00d74f93eb7c6a2142d8f0188bc4f to your computer and use it in GitHub Desktop.
function_namespace.txt
namespace functions {
// Execute a block of Python code. This can be used to perform calculations, process data, or any other task that can be accomplished through Python code.
type python = (_: {
code: string,
}) => any;
// Create images from a text-only prompt. This tool is used to generate visual content based on detailed descriptions provided in text form.
type dalle = (_: {
size?: "1792x1024" | "1024x1024" | "1024x1792",
n?: number, // default: 1
prompt: string,
referenced_image_ids?: string[],
}) => any;
// This tool allows me to browse the internet in a text-based format. I can issue search queries, view search results, click on search results to view full page contents, click on links within these pages, and store useful information to refer back to later.
type browser = (_: {
search(query: string, recency_days?: number): Promise<{ id: string, title: string, snippet: string, url: string }[]>,
click(id: string): Promise<void>,
back(): Promise<void>,
scroll(amt: number): Promise<void>,
open_url(url: string): Promise<void>,
quote_lines(start: int, end: int): void,
}) => any;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment