-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
1,881 additions
and
4,771 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,7 @@ node_modules/ | |
|
||
# outfolder for examples | ||
out | ||
examples/output | ||
|
||
# distribution files | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"upgrade": true, | ||
"reject": ["@types/node"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# Agent API | ||
|
||
| Option | Type | Description | | ||
| --------------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ||
| `model` | ModelAdapter | The model instance used by the agent. | | ||
| `options` | AgentOptions | Configuration options for the agent. | | ||
| `options.before` | Function | An optional asynchronous function executed before the task is processed. Receives the task and should return an object containing the updated task. | | ||
| `options.after` | Function | An optional asynchronous function executed after the task is processed. Receives the task and should return an object containing the updated task. | | ||
| `options.finally` | Function | An optional asynchronous function executed when the process is done. Receives the messageId and the processed message, and should return the messageId. | | ||
| `options.sideEffects` | Array | An optional array of side effect functions to be executed during the task processing. | | ||
| `options.store` | StoreAdapter | The store that should be used to save and retrieve messages. | | ||
| `options.verbosity` | Number | An optional verbosity level (0, 1, or 2) that determines the amount of information displayed during the task processing. Higher values result in more information being displayed. Default is 0. | | ||
| Option | Type | Description | | ||
| --------------------- |----------------| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ||
| `model` | `ModelAdapter` | The model instance used by the agent. | | ||
| `options` | `AgentOptions` | Configuration options for the agent. | | ||
| `options.before` | `Function` | An optional asynchronous function executed before the task is processed. Receives the task and should return an object containing the updated task. | | ||
| `options.after` | `Function` | An optional asynchronous function executed after the task is processed. Receives the task and should return an object containing the updated task. | | ||
| `options.finally` | `Function` | An optional asynchronous function executed when the process is done. Receives the messageId and the processed message, and should return the messageId. | | ||
| `options.sideEffects` | `SideEffect[]` | An optional array of side effect functions to be executed during the task processing. | | ||
| `options.store` | `StoreAdapter` | The store that should be used to save and retrieve messages. | | ||
| `options.verbosity` | `number` | An optional verbosity level (0, 1, or 2) that determines the amount of information displayed during the task processing. Higher values result in more information being displayed. Default is 0. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,10 @@ | ||
# GPTModelAdapter API | ||
|
||
| Name | Type | Description | | ||
| ----------------- | ------------------------- | ------------------------------------------------------------------------------------------------------------------ | | ||
| model | GPTModel | The model name. Compatible GPT models: "gpt-3.5-turbo" or "gpt-4". | | ||
| temperature | ReasonableTemperature | The temperature value controlling the randomness of the model's output. Range: 0 to 0.9 with increments of 0.1. | | ||
| maxTokens | number | The maximum number of tokens in the output response. | | ||
| historySize | ModelHistorySize\[Model\] | The number of chat messages to maintain in history. GPT-3 history size: 1 or 2; GPT-4 history size: 1, 2, 3, or 4. | | ||
| systemInstruction | string | An initial system instruction to guide the model's behavior. | | ||
|
||
For GPT3 specific options: | ||
|
||
| Name | Type | Description | | ||
| ----------- | --------------- | ---------------------------------------- | | ||
| model | "gpt-3.5-turbo" | GPT-3 model name. | | ||
| historySize | GPT3HistorySize | GPT-3 valid history size values: 1 or 2. | | ||
|
||
For GPT4 specific options: | ||
|
||
| Name | Type | Description | | ||
| ----------- | --------------- | ----------------------------------------------- | | ||
| model | "gpt-4" | GPT-4 model name. | | ||
| historySize | GPT4HistorySize | GPT-4 valid history size values: 1, 2, 3, or 4. | | ||
| Name | Type | Description | | ||
|-------------------|-------------------|------------------------------------------------------------------------| | ||
| `model` | `string` | The model name | | ||
| `temperature` | `number` | The temperature value controlling the randomness of the model's output | | ||
| `maxTokens` | `number` | The maximum number of tokens in the output response. | | ||
| `historySize` | `number` | The number of chat messages to maintain in history. | | ||
| `format` | `"json"\| "string"` | The number of chat messages to maintain in history. | | ||
| `systemInstruction` | `string` | An initial system instruction to guide the model's behavior. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.