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 @@

Hierarchy

+
  • Defined in src/GenerateException.ts:38
  • @@ -89,7 +89,7 @@

    Returns

    +
  • Defined in src/GenerateException.ts:45
  • Properties

    @@ -105,7 +105,7 @@
    +
  • Defined in src/GenerateException.ts:46
  • message: string
    +
  • Defined in src/GenerateException.ts:47
  • name: string
    +
  • Defined in src/GenerateMeta.ts:7
  • @@ -69,7 +69,7 @@
    Optional
    +
  • Defined in src/GenerateMeta.ts:9
  • error?: GenerateException<GenerateExceptionType>
    @@ -77,7 +77,7 @@
    +
  • Defined in src/GenerateMeta.ts:16
  • +
  • Defined in src/generator.ts:24
  • +
  • Defined in src/GenerateException.ts:46
  • expectedType: HasKey extends true
        ? SpecTypeNamesDict<MatchingOutput<S>>[Extract<keyof SpecTypeNamesDict<MatchingOutput<S>>, string>]
        : SpecTypeNamesSingle<MatchingOutput<S>>
    @@ -146,7 +146,7 @@
    +
  • Defined in src/GenerateException.ts:75
  • key: K
    @@ -154,7 +154,7 @@
    +
  • Defined in src/GenerateException.ts:74
  • message: string
    +
  • Defined in src/GenerateException.ts:47
  • name: string
    +
  • Defined in src/GenerateException.ts:73
  • stack?: string
    +
  • Defined in src/generate.ts:28
  • +
  • Defined in src/examples/simple.ts:33
  • +
  • Defined in src/examples/simple.ts:44
  • +
  • Defined in src/specs/castToSpecs.ts:22
  • +
  • Defined in src/generate.ts:42
  • +
  • Defined in src/examples/simple.ts:10
  • +
  • Defined in src/specs/utils.ts:14
  • +
  • Defined in src/specs/MatchingOutput.ts:56
  • +
  • Defined in src/specs/MatchingSpecs.ts:61
  • +
  • Defined in src/examples/simple.ts:22
  • +
  • Defined in src/composeChatPrompt.ts:14
  • +
  • Defined in src/composeChatPrompt.ts:24
  • +
  • Defined in src/specs/SpecTypes.ts:92
  • +
  • Defined in src/examples/simple.ts:61
  • +
  • Defined in src/specs/Specs.ts:89
  • +
  • Defined in src/specs/Specs.ts:81
  • +
  • Defined in src/specs/Specs.ts:97
  • +
  • Defined in src/specs/Specs.ts:105
  • +
  • Defined in src/examples/translate.ts:25
  • +
  • Defined in src/specs/utils.ts:43
  • +
  • Defined in src/specs/utils.ts:32
  • +
  • Defined in src/specs/utils.ts:23
  • +
  • Defined in src/composeChatPrompt.ts:45
  • diff --git a/docs/types/EPSTemplate.html b/docs/types/EPSTemplate.html index 3d2ad0e..e0709bd 100644 --- a/docs/types/EPSTemplate.html +++ b/docs/types/EPSTemplate.html @@ -25,7 +25,7 @@

    Type alias EPSTemplate

    +
  • Defined in src/specs/Specs.ts:18
  • +
  • Defined in src/GenerateOptions.ts:42
  • +
  • Defined in src/GenerateException.ts:9
  • +
  • Defined in src/GenerateOptions.ts:61
  • +
  • Defined in src/GenerateOptions.ts:11
  • +
  • Defined in src/specs/Inputs.ts:6
  • +
  • Defined in src/examples/translate.ts:15
  • +
  • Defined in src/specs/MatchingOutput.ts:29
  • +
  • Defined in src/specs/MatchingSpecs.ts:26
  • +
  • Defined in src/chatMessage.ts:11
  • +
  • Defined in src/specs/Specs.ts:132
  • +
  • Defined in src/specs/SpecTypes.ts:18
  • +
  • Defined in src/specs/SpecTypes.ts:60
  • +
  • Defined in src/specs/SpecTypes.ts:7
  • +
  • Defined in src/specs/Specs.ts:51
  • +
  • Defined in src/specs/Specs.ts:10
  • +
  • Defined in src/chatMessage.ts:27
  • +
  • Defined in src/chatMessage.ts:6
  • +
  • Defined in src/generate.ts:22
  • +
  • Defined in src/examples/translate.ts:8
  • +
  • Defined in src/specs/Specs.ts:119
  • +
  • Defined in src/specs/Specs.ts:40