Skip to content

Commit

Permalink
Merge pull request #50 from JoinTheAlliance/0.0.29
Browse files Browse the repository at this point in the history
Add named exports
  • Loading branch information
lalalune authored Mar 5, 2024
2 parents 5614957 + 5e143e9 commit 027b39a
Show file tree
Hide file tree
Showing 16 changed files with 525 additions and 110 deletions.
27 changes: 23 additions & 4 deletions docs/docs/functions/addHeader.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,32 @@ custom_edit_url: null

**addHeader**(`header`, `body`): `string`

Adds a header to a body of text.

This function takes a header string and a body string and returns a new string with the header prepended to the body.
If the body string is empty, the header is returned as is.

#### Parameters

| Name | Type |
| :------ | :------ |
| `header` | `string` |
| `body` | `string` |
| Name | Type | Description |
| :------ | :------ | :------ |
| `header` | `string` | The header to add to the body. |
| `body` | `string` | The body to which to add the header. |

#### Returns

`string`

The body with the header prepended.

**`Example`**

```ts
// Given a header and a body
const header = "Header";
const body = "Body";

// Adding the header to the body will result in:
// "Header\nBody"
const text = addHeader(header, body);
```
5 changes: 0 additions & 5 deletions docs/docs/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,13 @@ custom_edit_url: null

## Variables

- [continue](variables/continue.md)
- [defaultActions](variables/defaultActions.md)
- [defaultEvaluators](variables/defaultEvaluators.md)
- [defaultProviders](variables/defaultProviders.md)
- [embeddingDimension](variables/embeddingDimension.md)
- [embeddingZeroVector](variables/embeddingZeroVector.md)
- [evaluationTemplate](variables/evaluationTemplate.md)
- [fact](variables/fact.md)
- [goal](variables/goal-1.md)
- [ignore](variables/ignore.md)
- [messageHandlerTemplate](variables/messageHandlerTemplate.md)
- [wait](variables/wait.md)

## Functions

Expand Down
9 changes: 0 additions & 9 deletions docs/docs/variables/continue.md

This file was deleted.

20 changes: 0 additions & 20 deletions docs/docs/variables/fact.md

This file was deleted.

20 changes: 0 additions & 20 deletions docs/docs/variables/goal-1.md

This file was deleted.

9 changes: 0 additions & 9 deletions docs/docs/variables/ignore.md

This file was deleted.

9 changes: 0 additions & 9 deletions docs/docs/variables/wait.md

This file was deleted.

206 changes: 204 additions & 2 deletions package-lock.json

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

Loading

0 comments on commit 027b39a

Please sign in to comment.