diff --git a/README.md b/README.md index 57fb1bc..17fc662 100644 --- a/README.md +++ b/README.md @@ -290,6 +290,8 @@ For convenience, the package exports several handy functions demonstrating how y - [`swotAnalysis`](https://losideadores.github.io/almostmagic2/functions/swotAnalysis.html) generates a SWOT analysis for a given idea, as an object with `strengths`, `weaknesses`, `opportunities`, and `threats` properties, each representing an array of strings. - [`translate`](https://losideadores.github.io/almostmagic2/functions/translate.html) translates a given text from one language (doesn’t need specifying) to several other languages, as an object with keys corresponding to the requested target language codes and values corresponding to the translated text. +You can find the source code for each of these functions by following the links above and clicking the "Defined in" link in the bottom of the page. + ## API reference For complete documentation of every function, type, etc. exported by `almostmagic`, see the [API reference](https://losideadores.github.io/almostmagic2/modules.html). \ No newline at end of file diff --git a/docs/classes/GenerateException.html b/docs/classes/GenerateException.html index f4f45c5..ceb066f 100644 --- a/docs/classes/GenerateException.html +++ b/docs/classes/GenerateException.html @@ -33,7 +33,7 @@
Readonly
Optional
Optional
errorOptional
generate for more information.
Overrides GenerateException.constructor
Optional
causeReadonly
Inherited from GenerateException.code
Optional
Inherited from GenerateException.meta
Optional
stackawait
await
if an error occurred and options.throwOnFailure
is true.
await
await
await
await
const
swotAnalysis
generates a SWOT analysis for a given idea, as an object with strengths
, weaknesses
, opportunities
, and threats
properties, each representing an array of strings.translate
translates a given text from one language (doesn’t need specifying) to several other languages, as an object with keys corresponding to the requested target language codes and values corresponding to the translated text.You can find the source code for each of these functions by following the links above and clicking the "Defined in" link in the bottom of the page.
For complete documentation of every function, type, etc. exported by almostmagic
, see the API reference.
Optional
const
const
const
Created object with keys for each role (@see chatRoles) and values for each role's method, equivalent to chatMessage(role, content)
Const
Const
Const
console
Readonly
Readonly string[]: readonly [null, null, "Array"]Readonly
Readonly string[]: readonly ["array of strings", "array of strings", "(array of strings)"]