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

Add named exports #50

Merged
merged 2 commits into from
Mar 5, 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
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
Loading