@elizaos/prompts 2.0.0-alpha.43 → 2.0.0-alpha.430
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/python/prompts.py +828 -244
- package/dist/rust/prompts.rs +809 -245
- package/dist/typescript/index.d.ts +40 -0
- package/dist/typescript/index.ts +846 -242
- package/package.json +6 -7
- package/prompts/add_contact.txt +29 -0
- package/prompts/choose_option.txt +4 -7
- package/prompts/extract_secret_operation.txt +20 -0
- package/prompts/extract_secret_request.txt +16 -0
- package/prompts/extract_secrets.txt +17 -0
- package/prompts/image_description.txt +8 -15
- package/prompts/image_generation.txt +4 -7
- package/prompts/initial_summarization.txt +28 -0
- package/prompts/long_term_extraction.txt +128 -0
- package/prompts/message_classifier.txt +37 -0
- package/prompts/message_handler.txt +44 -70
- package/prompts/multi_step_decision.txt +6 -18
- package/prompts/multi_step_summary.txt +4 -10
- package/prompts/option_extraction.txt +4 -9
- package/prompts/post_action_decision.txt +35 -0
- package/prompts/post_creation.txt +14 -25
- package/prompts/reflection.txt +8 -11
- package/prompts/reflection_evaluator.txt +37 -32
- package/prompts/remove_contact.txt +20 -0
- package/prompts/reply.txt +5 -8
- package/prompts/schedule_follow_up.txt +28 -0
- package/prompts/search_contacts.txt +23 -0
- package/prompts/should_follow_room.txt +18 -0
- package/prompts/should_mute_room.txt +18 -0
- package/prompts/should_respond.txt +37 -37
- package/prompts/should_respond_with_context.txt +41 -0
- package/prompts/should_unfollow_room.txt +18 -0
- package/prompts/should_unmute_room.txt +18 -0
- package/prompts/think.txt +25 -0
- package/prompts/update_contact.txt +27 -0
- package/prompts/update_entity.txt +6 -13
- package/prompts/update_role.txt +29 -0
- package/prompts/update_settings.txt +5 -12
- package/prompts/update_summarization.txt +30 -0
- package/scripts/generate-action-docs.js +18 -1
- package/scripts/generate-plugin-action-spec.js +1 -0
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* This is intentionally dependency-free (no zod/yup) to keep builds lightweight.
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
+
import { execFileSync } from "node:child_process";
|
|
14
15
|
import fs from "node:fs";
|
|
15
16
|
import path from "node:path";
|
|
16
17
|
import { fileURLToPath } from "node:url";
|
|
@@ -525,6 +526,7 @@ export type ActionDocParameterSchema = {
|
|
|
525
526
|
export type ActionDocParameter = {
|
|
526
527
|
name: string;
|
|
527
528
|
description: string;
|
|
529
|
+
descriptionCompressed?: string;
|
|
528
530
|
required?: boolean;
|
|
529
531
|
schema: ActionDocParameterSchema;
|
|
530
532
|
examples?: readonly ActionDocParameterExampleValue[];
|
|
@@ -547,6 +549,7 @@ export type ActionDocExampleMessage = {
|
|
|
547
549
|
export type ActionDoc = {
|
|
548
550
|
name: string;
|
|
549
551
|
description: string;
|
|
552
|
+
descriptionCompressed?: string;
|
|
550
553
|
similes?: readonly string[];
|
|
551
554
|
parameters?: readonly ActionDocParameter[];
|
|
552
555
|
examples?: readonly (readonly ActionDocExampleMessage[])[];
|
|
@@ -556,6 +559,7 @@ export type ActionDoc = {
|
|
|
556
559
|
export type ProviderDoc = {
|
|
557
560
|
name: string;
|
|
558
561
|
description: string;
|
|
562
|
+
descriptionCompressed?: string;
|
|
559
563
|
position?: number;
|
|
560
564
|
dynamic?: boolean;
|
|
561
565
|
};
|
|
@@ -612,7 +616,17 @@ export const coreEvaluatorDocs: readonly EvaluatorDoc[] = coreEvaluatorsSpec.eva
|
|
|
612
616
|
export const allEvaluatorDocs: readonly EvaluatorDoc[] = allEvaluatorsSpec.evaluators;
|
|
613
617
|
`;
|
|
614
618
|
|
|
615
|
-
|
|
619
|
+
const actionDocsPath = path.join(outDir, "action-docs.ts");
|
|
620
|
+
fs.writeFileSync(actionDocsPath, content);
|
|
621
|
+
try {
|
|
622
|
+
execFileSync(
|
|
623
|
+
"bunx",
|
|
624
|
+
["@biomejs/biome", "check", "--write", actionDocsPath],
|
|
625
|
+
{ cwd: REPO_ROOT, stdio: "pipe" },
|
|
626
|
+
);
|
|
627
|
+
} catch {
|
|
628
|
+
// Biome may be unavailable in stripped-down environments.
|
|
629
|
+
}
|
|
616
630
|
}
|
|
617
631
|
|
|
618
632
|
function generatePython(actionsSpec, providersSpec, evaluatorsSpec) {
|
|
@@ -701,6 +715,7 @@ class ActionDocParameterSchema(TypedDict, total=False):
|
|
|
701
715
|
class ActionDocParameter(TypedDict, total=False):
|
|
702
716
|
name: str
|
|
703
717
|
description: str
|
|
718
|
+
descriptionCompressed: str
|
|
704
719
|
required: bool
|
|
705
720
|
schema: ActionDocParameterSchema
|
|
706
721
|
examples: list[ActionDocParameterExampleValue]
|
|
@@ -720,6 +735,7 @@ class ActionDocExampleMessage(TypedDict, total=False):
|
|
|
720
735
|
class ActionDoc(TypedDict, total=False):
|
|
721
736
|
name: str
|
|
722
737
|
description: str
|
|
738
|
+
descriptionCompressed: str
|
|
723
739
|
similes: list[str]
|
|
724
740
|
parameters: list[ActionDocParameter]
|
|
725
741
|
examples: list[list[ActionDocExampleMessage]]
|
|
@@ -729,6 +745,7 @@ class ActionDoc(TypedDict, total=False):
|
|
|
729
745
|
class ProviderDoc(TypedDict, total=False):
|
|
730
746
|
name: str
|
|
731
747
|
description: str
|
|
748
|
+
descriptionCompressed: str
|
|
732
749
|
position: int
|
|
733
750
|
dynamic: bool
|
|
734
751
|
|