Skip to content

Commit 576f316

Browse files
committed
fix build issues
1 parent e24906e commit 576f316

File tree

9 files changed

+36
-11
lines changed

9 files changed

+36
-11
lines changed

Diff for: docs/docs/functions/getProviders.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ Formats provider outputs into a string which can be injected into the context.
1212

1313
#### Parameters
1414

15-
| Name | Type |
16-
| :------ | :------ |
17-
| `runtime` | [`BgentRuntime`](../classes/BgentRuntime.md) |
18-
| `message` | [`Message`](../interfaces/Message.md) |
15+
| Name | Type | Description |
16+
| :------ | :------ | :------ |
17+
| `runtime` | [`BgentRuntime`](../classes/BgentRuntime.md) | The Bgent runtime object. |
18+
| `message` | [`Message`](../interfaces/Message.md) | The incoming message object. |
1919

2020
#### Returns
2121

Diff for: docs/docs/functions/updateGoal.md

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ custom_edit_url: null
1515
| `«destructured»` | `Object` |
1616
| › `goal` | [`Goal`](../interfaces/Goal.md) |
1717
| › `runtime` | [`BgentRuntime`](../classes/BgentRuntime.md) |
18-
| › `userIds` | \`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\`[] |
1918

2019
#### Returns
2120

Diff for: docs/docs/modules.md

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ custom_edit_url: null
4747
- [embeddingZeroVector](variables/embeddingZeroVector.md)
4848
- [evaluationTemplate](variables/evaluationTemplate.md)
4949
- [fact](variables/fact.md)
50+
- [goal](variables/goal-1.md)
5051
- [ignore](variables/ignore.md)
5152
- [wait](variables/wait.md)
5253

Diff for: docs/docs/variables/evaluationTemplate.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ sidebar_position: 0
66
custom_edit_url: null
77
---
88

9-
`Const` **evaluationTemplate**: ``"TASK: Based on the conversation and conditions, determine which evaluation functions are appropriate to call.\nExamples:\n{{evaluatorExamples}}\n\nINSTRUCTIONS: You are helping me to decide which appropriate functions to call based on the conversation between {{senderName}} and {{agentName}}.\n\nRecent conversation:\n{{recentMessages}}\n\nEvaluator Functions:\n{{evaluators}}\n\nEvaluator Conditions:\n{{evaluatorConditions}}\n\nTASK: Based on the most recent conversation, determine which evaluators functions are appropriate to call to call.\nInclude the name of evaluators that are relevant and should be called in the array\nAvailable evaluator names to include are {{evaluatorNames}}\nRespond with a JSON array containing a field for description in a JSON block formatted for markdown with this structure:\n```json\n[\n 'evaluatorName',\n 'evaluatorName'\n]\n```\n\nYour response must include the JSON block."``
9+
`Const` **evaluationTemplate**: ``"TASK: Based on the conversation and conditions, determine which evaluation functions are appropriate to call.\nExamples:\n{{evaluatorExamples}}\n\nINSTRUCTIONS: You are helping me to decide which appropriate functions to call based on the conversation between {{senderName}} and {{agentName}}.\n\n{{recentMessages}}\n\nEvaluator Functions:\n{{evaluators}}\n\nEvaluator Conditions:\n{{evaluatorConditions}}\n\nTASK: Based on the most recent conversation, determine which evaluators functions are appropriate to call to call.\nInclude the name of evaluators that are relevant and should be called in the array\nAvailable evaluator names to include are {{evaluatorNames}}\nRespond with a JSON array containing a field for description in a JSON block formatted for markdown with this structure:\n```json\n[\n 'evaluatorName',\n 'evaluatorName'\n]\n```\n\nYour response must include the JSON block."``
1010

1111
Template used for the evaluation completion.

Diff for: docs/docs/variables/goal-1.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
id: "goal-1"
3+
title: "Variable: goal"
4+
sidebar_label: "goal"
5+
sidebar_position: 0
6+
custom_edit_url: null
7+
---
8+
9+
**goal**: `Object`
10+
11+
#### Type declaration
12+
13+
| Name | Type |
14+
| :------ | :------ |
15+
| `condition` | `string` |
16+
| `description` | `string` |
17+
| `examples` | \{ `context`: `string` ; `messages`: \{ `content`: \{ `content`: `string` = "I've just finished chapter 20 of 'War and Peace'!" } ; `user`: `string` = "\{\{user1}}" }[] ; `outcome`: `string` }[] |
18+
| `handler` | (`runtime`: [`BgentRuntime`](../classes/BgentRuntime.md), `message`: [`Message`](../interfaces/Message.md)) => `Promise`\<[`Goal`](../interfaces/Goal.md)[]\> |
19+
| `name` | `string` |
20+
| `validate` | (`runtime`: [`BgentRuntime`](../classes/BgentRuntime.md), `message`: [`Message`](../interfaces/Message.md)) => `Promise`\<`boolean`\> |

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bgent",
3-
"version": "0.0.20",
3+
"version": "0.0.21",
44
"private": false,
55
"description": "bgent. because agent was taken.",
66
"type": "module",

Diff for: src/lib/actions/__tests__/ignore.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { type BgentRuntime } from "../../runtime";
1212
import { Content, type Message } from "../../types";
1313
import action from "../ignore";
1414
import { populateMemories } from "../../../test/populateMemories";
15+
import { zeroUuid } from "../../constants";
1516

1617
dotenv.config({ path: ".dev.vars" });
1718

Diff for: src/lib/evaluators/goal.ts

+6-3
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ export default {
132132
133133
Goals:
134134
- Name: Finish reading "War and Peace"
135+
id: 12345-67890-12345-67890
135136
Status: IN_PROGRESS
136137
Objectives:
137138
- Read up to chapter 20 by the end of the month
@@ -161,7 +162,7 @@ export default {
161162

162163
outcome: `[
163164
{
164-
"id": "<goal uuid for 'Finish reading War and Peace'>",
165+
"id": "12345-67890-12345-67890",
165166
"objectives": [
166167
{ "description": "Read up to chapter 20 by the end of the month", "completed": true },
167168
{ "description": "Discuss the first part in the next meeting", "completed": false }
@@ -177,6 +178,7 @@ export default {
177178
178179
Goals:
179180
- Name: Complete a marathon
181+
id: 23456-78901-23456-78901
180182
Status: IN_PROGRESS
181183
Objectives:
182184
- Increase running distance to 30 miles a week
@@ -202,7 +204,7 @@ export default {
202204

203205
outcome: `[
204206
{
205-
"id": "<goal uuid for 'Complete a marathon'>",
207+
"id": "23456-78901-23456-78901",
206208
"objectives": [
207209
{ "description": "Increase running distance to 30 miles a week", "completed": true },
208210
{ "description": "Complete a half-marathon as practice", "completed": false }
@@ -218,6 +220,7 @@ export default {
218220
219221
Goals:
220222
- Name: Finish the final year project
223+
id: 34567-89012-34567-89012
221224
Status: IN_PROGRESS
222225
Objectives:
223226
- Submit the first draft of the thesis
@@ -243,7 +246,7 @@ export default {
243246

244247
outcome: `[
245248
{
246-
"id": "<goal uuid for 'Finish the final year project'>",
249+
"id": "34567-89012-34567-89012",
247250
"objectives": [
248251
{ "description": "Submit the first draft of the thesis", "completed": true },
249252
{ "description": "Complete the project prototype", "completed": false }

Diff for: src/lib/providers.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ export const defaultProviders: Provider[] = [time];
66

77
/**
88
* Formats provider outputs into a string which can be injected into the context.
9-
* @param providers - An array of evaluator objects.
9+
* @param runtime The Bgent runtime object.
10+
* @param message The incoming message object.
1011
* @returns A string that concatenates the outputs of each provider.
1112
*/
1213
export async function getProviders(runtime: BgentRuntime, message: Message) {

0 commit comments

Comments
 (0)