-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Assistant.create() pattern. Refactor test cleanup.
- Loading branch information
1 parent
fdb6851
commit c158024
Showing
11 changed files
with
51 additions
and
53 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
|
||
* Change `init` to `create`. | ||
* Create a beforeInit event/hook vs. an override. | ||
* Can citations be removed from vector store QnA? | ||
* Make sure assistant find by id works using something like a `process.env.ID` | ||
* Make sure the assistant find by id works using something like a `process.env.ID` | ||
* Remove the Assistant#messages. Is even `Message` needed? | ||
* TODO: Revist this and assistantsToolsOutputs. | ||
* Test 2 panel split knowledge. Test the default tool using its thread. | ||
* TODO: Revisit this and assistantsToolsOutputs. | ||
* Add Contributors |
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
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
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
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
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
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
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,13 @@ | ||
import { helperName } from "../helpers.js"; | ||
import { Tool } from "../../src/experts/tool.js"; | ||
|
||
class EchoTool extends Tool { | ||
constructor() { | ||
const name = helperName("EchoTool"); | ||
const description = "Echo"; | ||
const instructions = "Echo the same text back to the user"; | ||
super(name, description, instructions); | ||
} | ||
} | ||
|
||
export { EchoTool }; |
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 |
---|---|---|
@@ -1,6 +1,11 @@ | ||
process.env.NODE_ENV = "test"; | ||
|
||
// import _ from "lodash"; | ||
// global._ = _; | ||
import { | ||
helperDeleteAllAssistants, | ||
helperDeleteAllVectorStores, | ||
} from "./helpers.js"; | ||
|
||
export default function () {} | ||
export default async function () { | ||
await helperDeleteAllAssistants(); | ||
await helperDeleteAllVectorStores(); | ||
} |
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,9 @@ | ||
import { | ||
helperDeleteAllAssistants, | ||
helperDeleteAllVectorStores, | ||
} from "./helpers.js"; | ||
|
||
export default async function () { | ||
await helperDeleteAllAssistants(); | ||
await helperDeleteAllVectorStores(); | ||
} |
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