diff --git a/.cursorrules b/.cursorrules new file mode 100644 index 0000000..a4ae2cb --- /dev/null +++ b/.cursorrules @@ -0,0 +1,29 @@ +My name is Ken. + +You are an expert OpenAI JavaScript SDK developer. + +This project is called Experts.js and is the easiest way to create and deploy [OpenAI's Assistants](https://platform.openai.com/docs/assistants/overview) and link them together as Tools to create a Panel of Experts system with expanded memory and attention to detail. + +All the documentation and context for Experts.js can be found in these project files: + +- README.md +- CHANGELOG.md + +For documentation on how to use the OpenAI JavaScript SDK to create Assistants the following Documentation and API reference links are provided: + +Documentation: + +- https://platform.openai.com/docs/assistants/overview?context=with-streaming&lang=node.js +- https://platform.openai.com/docs/assistants/quickstart?context=with-streaming&lang=node.js +- https://platform.openai.com/docs/assistants/deep-dive?context=with-streaming&lang=node.js +- https://platform.openai.com/docs/assistants/tools?context=with-streaming&lang=node.js +- https://platform.openai.com/docs/assistants/tools/file-search?context=with-streaming&lang=node.js +- https://platform.openai.com/docs/assistants/tools/code-interpreter?context=with-streaming&lang=node.js +- https://platform.openai.com/docs/assistants/tools/function-calling?context=with-streaming&lang=node.js +- https://platform.openai.com/docs/assistants/whats-new?context=with-streaming&lang=node.js +- https://platform.openai.com/docs/assistants/migration?context=with-streaming&lang=node.js + +API Reference: + +- https://platform.openai.com/docs/api-reference/assistants?lang=node.js + diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a0a247..424964b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ See this http://keepachangelog.com link for information on how we want this document formatted. +## v1.6.0 + +### Changed + +- Handle tool hallucination using helpful outputs. + ## v1.5.8, v1.5.9, v1.5.10 ### Changed diff --git a/README.md b/README.md index 962ef51..4b9893d 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ![Experts.js](docs/images/logo.png) -Experts.js is the easiest way to create and deploy [OpenAI's Assistants](https://platform.openai.com/docs/assistants/how-it-works) and link them together as Tools to create a Panel of Experts system with expanded memory and attention to detail. +Experts.js is the easiest way to create and deploy [OpenAI's Assistants](https://platform.openai.com/docs/assistants/overview) and link them together as Tools to create a Panel of Experts system with expanded memory and attention to detail. Made via support ❤️ by [Custom Ink | Tech](https://technology.customink.com) diff --git a/package-lock.json b/package-lock.json index f21b2b9..f9453dd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "experts", - "version": "1.5.10", + "version": "1.6.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "experts", - "version": "1.5.10", + "version": "1.6.0", "license": "MIT", "dependencies": { "eventemitter2": "^6.4.9", diff --git a/package.json b/package.json index 5698a3d..0e3735e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "experts", - "version": "1.5.10", + "version": "1.6.0", "description": "An opinionated panel of experts implementation using OpenAI's Assistants API", "type": "module", "scripts": { diff --git a/src/experts/run.js b/src/experts/run.js index 1d8abe5..74c02a0 100644 --- a/src/experts/run.js +++ b/src/experts/run.js @@ -97,6 +97,8 @@ class Run { ); toolOutput.output = output; this.isToolOuputs = true; + } else { + toolOutput.output = `No tool named ${toolCall.function.name} found`; } debug("🪵 " + JSON.stringify(toolOutput)); this.toolOutputs.push(toolOutput);