Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle tool hallucination using helpful outputs. Add cursor rules. #35

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .cursorrules
Original file line number Diff line number Diff line change
@@ -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

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 2 additions & 0 deletions src/experts/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down