Skip to content

Commit 695ca0a

Browse files
authored
Merge pull request #670 from ai16z/turborepo
feat: add Turborepo
2 parents 9e638d6 + c9f27be commit 695ca0a

File tree

109 files changed

+3781
-3280
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+3781
-3280
lines changed

.github/workflows/ci.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ jobs:
3434
echo "NODE_ENV=test" >> packages/core/.env.test
3535
3636
- name: Run tests
37-
run: cd packages/core && pnpm test:coverage
37+
run: cd packages/core && pnpm test
3838

3939
- name: Build packages
4040
run: pnpm run build
4141

42-
- name: Upload coverage reports to Codecov
43-
uses: codecov/codecov-action@v5
44-
with:
45-
token: ${{ secrets.CODECOV_TOKEN }}
42+
# - name: Upload coverage reports to Codecov
43+
# uses: codecov/codecov-action@v5
44+
# with:
45+
# token: ${{ secrets.CODECOV_TOKEN }}

agent/package.json

+4-8
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@
44
"main": "src/index.ts",
55
"type": "module",
66
"scripts": {
7-
"start": "node --enable-source-maps --loader ts-node/esm src/index.ts",
8-
"dev": "tsc && nodemon --watch src --watch ../core/dist --ext ts,json --exec 'node --enable-source-maps --loader ts-node/esm' src/index.ts",
9-
"dev:debug": "tsc && nodemon --watch src --watch ../core/dist --ext ts,json --exec 'verbose=true node --enable-source-maps --loader ts-node/esm' src/index.ts",
10-
"check-types": "tsc --noEmit",
11-
"start:service:all": "pm2 start pnpm --name=\"all\" --restart-delay=3000 --max-restarts=10 -- run start:all",
12-
"stop:service:all": "pm2 stop all",
13-
"start:all": "node --loader ts-node/esm src/index.ts --characters=\"../characters/eliza.json\",\"../characters/degenspartan.json\",\"../characters/ruby.json\",\"../characters/pmairca.json\""
7+
"start": "node --loader ts-node/esm src/index.ts",
8+
"dev": "node --loader ts-node/esm src/index.ts",
9+
"check-types": "tsc --noEmit"
1410
},
1511
"nodemonConfig": {
1612
"watch": [
@@ -48,4 +44,4 @@
4844
"ts-node": "10.9.2",
4945
"tsup": "8.3.5"
5046
}
51-
}
47+
}

docs/api/classes/AgentRuntime.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ Searchable document fragments
520520

521521
#### Defined in
522522

523-
[packages/core/src/runtime.ts:370](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L370)
523+
[packages/core/src/runtime.ts:375](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L375)
524524

525525
***
526526

@@ -542,7 +542,7 @@ Searchable document fragments
542542

543543
#### Defined in
544544

545-
[packages/core/src/runtime.ts:434](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L434)
545+
[packages/core/src/runtime.ts:439](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L439)
546546

547547
***
548548

@@ -564,7 +564,7 @@ The number of recent messages to be kept in memory.
564564

565565
#### Defined in
566566

567-
[packages/core/src/runtime.ts:456](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L456)
567+
[packages/core/src/runtime.ts:461](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L461)
568568

569569
***
570570

@@ -590,7 +590,7 @@ The action to register.
590590

591591
#### Defined in
592592

593-
[packages/core/src/runtime.ts:464](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L464)
593+
[packages/core/src/runtime.ts:469](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L469)
594594

595595
***
596596

@@ -612,7 +612,7 @@ The evaluator to register.
612612

613613
#### Defined in
614614

615-
[packages/core/src/runtime.ts:473](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L473)
615+
[packages/core/src/runtime.ts:478](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L478)
616616

617617
***
618618

@@ -634,7 +634,7 @@ The context provider to register.
634634

635635
#### Defined in
636636

637-
[packages/core/src/runtime.ts:481](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L481)
637+
[packages/core/src/runtime.ts:486](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L486)
638638

639639
***
640640

@@ -666,7 +666,7 @@ The message to process.
666666

667667
#### Defined in
668668

669-
[packages/core/src/runtime.ts:490](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L490)
669+
[packages/core/src/runtime.ts:495](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L495)
670670

671671
***
672672

@@ -702,7 +702,7 @@ The results of the evaluation.
702702

703703
#### Defined in
704704

705-
[packages/core/src/runtime.ts:567](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L567)
705+
[packages/core/src/runtime.ts:572](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L572)
706706

707707
***
708708

@@ -734,7 +734,7 @@ An error if the participant cannot be added.
734734

735735
#### Defined in
736736

737-
[packages/core/src/runtime.ts:637](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L637)
737+
[packages/core/src/runtime.ts:642](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L642)
738738

739739
***
740740

@@ -770,7 +770,7 @@ The user name to ensure the existence of.
770770

771771
#### Defined in
772772

773-
[packages/core/src/runtime.ts:653](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L653)
773+
[packages/core/src/runtime.ts:658](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L658)
774774

775775
***
776776

@@ -794,7 +794,7 @@ The user name to ensure the existence of.
794794

795795
#### Defined in
796796

797-
[packages/core/src/runtime.ts:673](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L673)
797+
[packages/core/src/runtime.ts:678](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L678)
798798

799799
***
800800

@@ -824,7 +824,7 @@ The user name to ensure the existence of.
824824

825825
#### Defined in
826826

827-
[packages/core/src/runtime.ts:690](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L690)
827+
[packages/core/src/runtime.ts:695](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L695)
828828

829829
***
830830

@@ -855,7 +855,7 @@ An error if the room cannot be created.
855855

856856
#### Defined in
857857

858-
[packages/core/src/runtime.ts:726](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L726)
858+
[packages/core/src/runtime.ts:731](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L731)
859859

860860
***
861861

@@ -885,7 +885,7 @@ The state of the agent.
885885

886886
#### Defined in
887887

888-
[packages/core/src/runtime.ts:739](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L739)
888+
[packages/core/src/runtime.ts:744](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L744)
889889

890890
***
891891

@@ -907,4 +907,4 @@ The state of the agent.
907907

908908
#### Defined in
909909

910-
[packages/core/src/runtime.ts:1185](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L1185)
910+
[packages/core/src/runtime.ts:1190](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L1190)

docs/api/enumerations/LoggingLevel.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
1111
#### Defined in
1212

13-
[packages/core/src/types.ts:1115](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L1115)
13+
[packages/core/src/types.ts:1132](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L1132)
1414

1515
***
1616

@@ -20,7 +20,7 @@
2020
2121
#### Defined in
2222

23-
[packages/core/src/types.ts:1116](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L1116)
23+
[packages/core/src/types.ts:1133](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L1133)
2424

2525
***
2626

@@ -30,4 +30,4 @@
3030
3131
#### Defined in
3232

33-
[packages/core/src/types.ts:1117](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L1117)
33+
[packages/core/src/types.ts:1134](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L1134)

docs/api/enumerations/ServiceType.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
1111
#### Defined in
1212

13-
[packages/core/src/types.ts:1104](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L1104)
13+
[packages/core/src/types.ts:1121](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L1121)
1414

1515
***
1616

@@ -20,7 +20,7 @@
2020
2121
#### Defined in
2222

23-
[packages/core/src/types.ts:1105](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L1105)
23+
[packages/core/src/types.ts:1122](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L1122)
2424

2525
***
2626

@@ -30,7 +30,7 @@
3030
3131
#### Defined in
3232

33-
[packages/core/src/types.ts:1106](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L1106)
33+
[packages/core/src/types.ts:1123](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L1123)
3434

3535
***
3636

@@ -40,7 +40,7 @@
4040
4141
#### Defined in
4242

43-
[packages/core/src/types.ts:1107](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L1107)
43+
[packages/core/src/types.ts:1124](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L1124)
4444

4545
***
4646

@@ -50,7 +50,7 @@
5050
5151
#### Defined in
5252

53-
[packages/core/src/types.ts:1108](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L1108)
53+
[packages/core/src/types.ts:1125](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L1125)
5454

5555
***
5656

@@ -60,7 +60,7 @@
6060
6161
#### Defined in
6262

63-
[packages/core/src/types.ts:1109](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L1109)
63+
[packages/core/src/types.ts:1126](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L1126)
6464

6565
***
6666

@@ -70,7 +70,7 @@
7070
7171
#### Defined in
7272

73-
[packages/core/src/types.ts:1110](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L1110)
73+
[packages/core/src/types.ts:1127](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L1127)
7474

7575
***
7676

@@ -80,4 +80,4 @@
8080
8181
#### Defined in
8282

83-
[packages/core/src/types.ts:1111](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L1111)
83+
[packages/core/src/types.ts:1128](https://github.com/ai16z/eliza/blob/main/packages/core/src/types.ts#L1128)

docs/api/functions/configureSettings.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ Object containing environment variables
1818

1919
## Defined in
2020

21-
[packages/core/src/settings.ts:53](https://github.com/ai16z/eliza/blob/main/packages/core/src/settings.ts#L53)
21+
[packages/core/src/settings.ts:69](https://github.com/ai16z/eliza/blob/main/packages/core/src/settings.ts#L69)

docs/api/functions/embed.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
> **embed**(`runtime`, `input`): `Promise`\<`number`[]\>
66
7-
Generate embeddings for input text using configured model provider
7+
Gets embeddings from a remote API endpoint. Falls back to local BGE/384
88

99
## Parameters
1010

1111
**runtime**: [`IAgentRuntime`](../interfaces/IAgentRuntime.md)
1212

13-
The agent runtime containing model configuration
13+
The agent runtime context
1414

1515
**input**: `string`
1616

@@ -20,8 +20,12 @@ The text to generate embeddings for
2020

2121
`Promise`\<`number`[]\>
2222

23-
Array of embedding numbers
23+
Array of embedding values
24+
25+
## Throws
26+
27+
If the API request fails
2428

2529
## Defined in
2630

27-
[packages/core/src/embedding.ts:103](https://github.com/ai16z/eliza/blob/main/packages/core/src/embedding.ts#L103)
31+
[packages/core/src/embedding.ts:138](https://github.com/ai16z/eliza/blob/main/packages/core/src/embedding.ts#L138)

docs/api/functions/findNearestEnvFile.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ Path to the nearest .env file or null if not found
2121

2222
## Defined in
2323

24-
[packages/core/src/settings.ts:27](https://github.com/ai16z/eliza/blob/main/packages/core/src/settings.ts#L27)
24+
[packages/core/src/settings.ts:43](https://github.com/ai16z/eliza/blob/main/packages/core/src/settings.ts#L43)

docs/api/functions/generateCaption.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@
2626
2727
## Defined in
2828

29-
[packages/core/src/generation.ts:952](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L952)
29+
[packages/core/src/generation.ts:956](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L956)

docs/api/functions/generateImage.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@
4848
4949
## Defined in
5050

51-
[packages/core/src/generation.ts:770](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L770)
51+
[packages/core/src/generation.ts:771](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L771)

docs/api/functions/generateMessageResponse.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ The completed message.
2828

2929
## Defined in
3030

31-
[packages/core/src/generation.ts:730](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L730)
31+
[packages/core/src/generation.ts:731](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L731)

docs/api/functions/generateObject.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020

2121
## Defined in
2222

23-
[packages/core/src/generation.ts:646](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L646)
23+
[packages/core/src/generation.ts:647](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L647)

docs/api/functions/generateObjectArray.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020

2121
## Defined in
2222

23-
[packages/core/src/generation.ts:682](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L682)
23+
[packages/core/src/generation.ts:683](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L683)

docs/api/functions/generateObjectV2.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ Configuration options for generating objects.
2424

2525
## Defined in
2626

27-
[packages/core/src/generation.ts:1009](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L1009)
27+
[packages/core/src/generation.ts:1046](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L1046)

docs/api/functions/generateShouldRespond.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ Promise resolving to "RESPOND", "IGNORE", "STOP" or null
2828

2929
## Defined in
3030

31-
[packages/core/src/generation.ts:472](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L472)
31+
[packages/core/src/generation.ts:473](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L473)

docs/api/functions/generateText.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ The completed message.
3232

3333
## Defined in
3434

35-
[packages/core/src/generation.ts:50](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L50)
35+
[packages/core/src/generation.ts:51](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L51)

docs/api/functions/generateTextArray.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ Promise resolving to an array of strings parsed from the model's response
2828

2929
## Defined in
3030

31-
[packages/core/src/generation.ts:610](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L610)
31+
[packages/core/src/generation.ts:611](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L611)

docs/api/functions/generateTrueOrFalse.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ Promise resolving to a boolean value parsed from the model's response
2828

2929
## Defined in
3030

31-
[packages/core/src/generation.ts:555](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L555)
31+
[packages/core/src/generation.ts:556](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L556)
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[@ai16z/eliza v0.1.4-alpha.3](../index.md) / generateWebSearch
2+
3+
# Function: generateWebSearch()
4+
5+
> **generateWebSearch**(`query`, `runtime`): `Promise`\<[`SearchResponse`](../type-aliases/SearchResponse.md)\>
6+
7+
## Parameters
8+
9+
**query**: `string`
10+
11+
**runtime**: [`IAgentRuntime`](../interfaces/IAgentRuntime.md)
12+
13+
## Returns
14+
15+
`Promise`\<[`SearchResponse`](../type-aliases/SearchResponse.md)\>
16+
17+
## Defined in
18+
19+
[packages/core/src/generation.ts:980](https://github.com/ai16z/eliza/blob/main/packages/core/src/generation.ts#L980)

0 commit comments

Comments
 (0)