Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
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
20 changes: 18 additions & 2 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion packages/compass-generative-ai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
"react": "^17.0.2",
"react-redux": "^8.1.3",
"redux": "^4.2.1",
"redux-thunk": "^2.4.2"
"redux-thunk": "^2.4.2",
"zod": "^3.25.76"
},
"devDependencies": {
"@mongodb-js/connection-info": "^0.17.1",
Expand Down
21 changes: 21 additions & 0 deletions packages/compass-generative-ai/src/atlas-ai-errors.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* Occurs when the input to the AtlasAiService is understood but invalid.
*/
class AtlasAiServiceInvalidInputError extends Error {
constructor(message: string) {
super(message);
this.name = 'AtlasAiServiceInvalidInputError';
}
}

/**
* Thrown when the API response cannot be parsed into the expected shape..
*/
class AtlasAiServiceApiResponseParseError extends Error {
constructor(message: string) {
super(message);
this.name = 'AtlasAiServiceApiResponseParseError';
}
}

export { AtlasAiServiceInvalidInputError, AtlasAiServiceApiResponseParseError };
Loading
Loading