-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Brian Joseph Petro
committed
Dec 8, 2024
1 parent
5079ee7
commit 409f4b6
Showing
7 changed files
with
73 additions
and
5 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"name": "smart-templates", | ||
"author": "Brian Joseph Petro (🌴 Brian)", | ||
"license": "MIT", | ||
"version": "1.0.2", | ||
"type": "module", | ||
"description": "Smart templates for generating content with AI.", | ||
"main": "smart_templates.js", | ||
"keywords": [ | ||
"templates", | ||
"ai" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "brianpetro/jsbrains" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/brianpetro/jsbrains/issues" | ||
}, | ||
"homepage": "https://jsbrains.org", | ||
"dependencies": { | ||
"smart-chat-model": "file:../smart-chat-model", | ||
"smart-sources": "file:../smart-sources" | ||
}, | ||
"devDependencies": { | ||
"ava": "^6.1.3", | ||
"dotenv": "^16.4.5" | ||
}, | ||
"scripts": { | ||
"test": "npx ava --verbose" | ||
}, | ||
"ava": { | ||
"files": [ | ||
"smart_templates.test.js", | ||
"**/*.test.js" | ||
] | ||
} | ||
} |
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"opts": {}, | ||
"tool": { | ||
"lookup": { | ||
"type": "function", | ||
"function": { | ||
"name": "lookup", | ||
"description": "Performs a semantic search of the user's data. Use this function to respond to queries like 'Based on my notes...' or any other request that requires surfacing relevant content.", | ||
"parameters": { | ||
"type": "object", | ||
"properties": { | ||
"hypotheticals": { | ||
"type": "object", | ||
"description": "Short hypothetical notes predicted to be semantically similar to the notes necessary to fulfill the user's request. Provide at least three hypotheticals per request. The hypothetical notes may contain paragraphs, lists, or checklists in markdown format. Each hypothetical note should begin with breadcrumbs indicating the anticipated folder(s), file name, and relevant headings separated by ' > ' (no slashes). Example: PARENT FOLDER NAME > CHILD FOLDER NAME > FILE NAME > HEADING 1 > HEADING 2 > HEADING 3: HYPOTHETICAL NOTE CONTENTS.", | ||
"properties": { | ||
"1": { | ||
"type": "string" | ||
}, | ||
"2": { | ||
"type": "string" | ||
}, | ||
"3": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": ["1", "2", "3"] | ||
} | ||
}, | ||
"required": ["hypotheticals"] | ||
} | ||
} | ||
} | ||
}, | ||
"output": {} | ||
} |
This file was deleted.
Oops, something went wrong.