-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
…cumentation and parsers
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
system({ | ||
title: "File Diff Files", | ||
description: "Tool to compute a diff betweeen two files.", | ||
}) | ||
|
||
defTool( | ||
"fs_diff_files", | ||
"Computes a diff between two files.", | ||
{ | ||
type: "object", | ||
properties: { | ||
filename: { | ||
type: "string", | ||
description: | ||
"Path of the file to compare, relative to the workspace.", | ||
}, | ||
otherfilename: { | ||
type: "string", | ||
description: | ||
"Path of the other file to compare, relative to the workspace.", | ||
}, | ||
}, | ||
required: ["filename"], | ||
}, | ||
async (args) => { | ||
const { context, filename, otherfilename } = args | ||
context.log(`diff: ${filename} ${filename}`) | ||
const f = await workspace.readText(filename) | ||
const of = await workspace.readText(otherfilename) | ||
return parsers.diff(f, of) | ||
} | ||
) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
script({ | ||
model: "gpt-3.5-turbo", | ||
system: ["system", "system.files"], | ||
tests: {} | ||
tests: {}, | ||
}) | ||
|
||
$`Generate a poem and save it in a file "poem.txt".` | ||
$`Generate a poem and save it in a file "poem.txt".` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.