@elizaos/core 2.0.0-alpha.111 → 2.0.0-alpha.113
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/autonomy/execution-facade.d.ts.map +1 -1
- package/dist/browser/index.browser.js +333 -283
- package/dist/browser/index.browser.js.map +5 -5
- package/dist/edge/index.edge.js +227 -19
- package/dist/edge/index.edge.js.map +5 -5
- package/dist/node/index.node.js +227 -19
- package/dist/node/index.node.js.map +5 -5
- package/dist/prompts.d.ts +3 -2
- package/dist/prompts.d.ts.map +1 -1
- package/dist/services/message.d.ts +1 -0
- package/dist/services/message.d.ts.map +1 -1
- package/dist/types/message-service.d.ts +7 -0
- package/dist/types/message-service.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/prompts.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export declare const shouldRespondTemplate = "task: Decide whether {{agentName}} should respond, ignore, or stop.\n\ncontext:\n{{providers}}\n\nrules[6]:\n- direct mention of {{agentName}} -> RESPOND\n- different assistant name -> IGNORE\n- continuing an active thread with {{agentName}} -> RESPOND\n- request to stop or be quiet -> STOP\n- talking to someone else -> IGNORE\n- if unsure, prefer IGNORE over hallucinating relevance\n\ndecision_note:\n- talking TO {{agentName}} means name mention, reply chain, or direct continuation\n- talking ABOUT {{agentName}} is not enough\n\n<output>\nXML only. Return exactly one <response> block. No prose before or after it. No <think>.\n\nExample:\n<response>\n <name>{{agentName}}</name>\n <reasoning>Direct mention and clear follow-up.</reasoning>\n <action>RESPOND | IGNORE | STOP</action>\n</response>\n</output>";
|
|
2
|
-
export declare const messageHandlerTemplate = "task: Generate dialog and actions for {{agentName}}.\n\ncontext:\n{{providers}}\n\nrules[8]:\n- think briefly, then respond\n- actions execute in listed order\n- if replying, REPLY goes first\n- use IGNORE only by
|
|
2
|
+
export declare const messageHandlerTemplate = "task: Generate dialog and actions for {{agentName}}.\n\ncontext:\n{{providers}}\n\nrules[8]:\n- think briefly, then respond\n- actions execute in listed order\n- if replying, REPLY goes first\n- use IGNORE or STOP only by themselves\n- include providers only when needed\n- use provider_hints from context when present instead of restating the same rules\n- if an action needs inputs, include a <params> block with the required fields\n- if a required param is unknown, ask for clarification in <text>\n\ncontrol_actions:\n- STOP means the task is done and the agent should end the run without executing more actions\n- STOP is a terminal control action even if it is not listed in available actions\n\nfields[5]{name,meaning}:\n- thought | short plan\n- actions | ordered XML <action> elements\n- providers | comma-separated provider names, or empty\n- text | next message for {{agentName}}\n- simple | true or false\n\nformatting:\n- wrap multi-line code in fenced code blocks\n- use inline backticks for short code identifiers\n\n<output>\nXML only. Return exactly one <response> block. No prose before or after it. No <think>.\n\nExample:\n<response>\n <thought>Reply briefly. No extra providers needed.</thought>\n <actions>\n <action>\n <name>REPLY</name>\n </action>\n </actions>\n <providers></providers>\n <text>Your message here</text>\n <simple>true</simple>\n</response>\n</output>";
|
|
3
3
|
export declare const postCreationTemplate = "# Task: Create a post in the voice and style and perspective of {{agentName}} @{{xUserName}}.\n\nExample task outputs:\n1. A post about the importance of AI in our lives\n<response>\n <thought>I am thinking about writing a post about the importance of AI in our lives</thought>\n <post>AI is changing the world and it is important to understand how it works</post>\n <imagePrompt>A futuristic cityscape with flying cars and people using AI to do things</imagePrompt>\n</response>\n\n2. A post about dogs\n<response>\n <thought>I am thinking about writing a post about dogs</thought>\n <post>Dogs are man's best friend and they are loyal and loving</post>\n <imagePrompt>A dog playing with a ball in a park</imagePrompt>\n</response>\n\n3. A post about finding a new job\n<response>\n <thought>Getting a job is hard, I bet there's a good post in that</thought>\n <post>Just keep going!</post>\n <imagePrompt>A person looking at a computer screen with a job search website</imagePrompt>\n</response>\n\n{{providers}}\n\nWrite a post that is {{adjective}} about {{topic}} (without mentioning {{topic}} directly), from the perspective of {{agentName}}. Do not add commentary or acknowledge this request, just write the post.\nYour response should be 1, 2, or 3 sentences (choose the length at random).\nYour response should not contain any questions. Brief, concise statements only. The total character count MUST be less than 280. No emojis. Use \\n\\n (double spaces) between statements if there are multiple statements in your response.\n\nYour output should be formatted in XML like this:\n<response>\n <thought>Your thought here</thought>\n <post>Your post text here</post>\n <imagePrompt>Optional image prompt here</imagePrompt>\n</response>\n\nThe \"post\" field should be the post you want to send. Do not including any thinking or internal reflection in the \"post\" field.\nThe \"imagePrompt\" field is optional and should be a prompt for an image that is relevant to the post. It should be a single sentence that captures the essence of the post. ONLY USE THIS FIELD if it makes sense that the post would benefit from an image.\nThe \"thought\" field should be a short description of what the agent is thinking about before responding, including a brief justification for the response. Includate an explanation how the post is relevant to the topic but unique and different than other posts.\n\nDo NOT include any thinking, reasoning, or <think> sections in your response.\nGo directly to the XML response format without any preamble or explanation.\n\nIMPORTANT: Your response must ONLY contain the <response></response> XML block above. Do not include any text, thinking, or reasoning before or after this XML block. Start your response immediately with <response> and end with </response>.";
|
|
4
4
|
export declare const booleanFooter = "Respond with only a YES or a NO.";
|
|
5
5
|
export declare const imageDescriptionTemplate = "<task>Analyze the provided image and generate a comprehensive description with multiple levels of detail.</task>\n\n<instructions>\nCarefully examine the image and provide:\n1. A concise, descriptive title that captures the main subject or scene\n2. A brief summary description (1-2 sentences) highlighting the key elements\n3. An extensive, detailed description that covers all visible elements, composition, lighting, colors, mood, and any other relevant details\n\nBe objective and descriptive. Focus on what you can actually see in the image rather than making assumptions about context or meaning.\n</instructions>\n\n<output>\nDo NOT include any thinking, reasoning, or <think> sections in your response.\nGo directly to the XML response format without any preamble or explanation.\n\nRespond using XML format like this:\n<response>\n <title>A concise, descriptive title for the image</title>\n <description>A brief 1-2 sentence summary of the key elements in the image</description>\n <text>An extensive, detailed description covering all visible elements, composition, lighting, colors, mood, setting, objects, people, activities, and any other relevant details you can observe in the image</text>\n</response>\n\nIMPORTANT: Your response must ONLY contain the <response></response> XML block above. Do not include any text, thinking, or reasoning before or after this XML block. Start your response immediately with <response> and end with </response>.\n</output>";
|
|
6
6
|
export declare const multiStepDecisionTemplate = "<task>\nDetermine the next step the assistant should take in this conversation to help the user reach their goal.\n</task>\n\n{{recentMessages}}\n\n# Multi-Step Workflow\n\nIn each step, decide:\n\n1. **Which providers (if any)** should be called to gather necessary data.\n2. **Which action (if any)** should be executed after providers return.\n3. Decide whether the task is complete. If so, set `isFinish: true`. Do not select the `REPLY` action; replies are handled separately after task completion.\n\nYou can select **multiple providers** and at most **one action** per step.\n\nIf the task is fully resolved and no further steps are needed, mark the step as `isFinish: true`.\n\n---\n\n{{actionsWithDescriptions}}\n\n{{providersWithDescriptions}}\n\nThese are the actions or data provider calls that have already been used in this run. Use this to avoid redundancy and guide your next move.\n\n{{actionResults}}\n\n<keys>\n\"thought\" Clearly explain your reasoning for the selected providers and/or action, and how this step contributes to resolving the user's request.\n\"action\" Name of the action to execute after providers return (can be empty if no action is needed).\n\"providers\" List of provider names to call in this step (can be empty if none are needed).\n\"isFinish\" Set to true only if the task is fully complete.\n</keys>\n\n\u26A0\uFE0F IMPORTANT: Do **not** mark the task as `isFinish: true` immediately after calling an action. Wait for the action to complete before deciding the task is finished.\n\n<output>\n<response>\n <thought>Your thought here</thought>\n <action>ACTION</action>\n <providers>PROVIDER1,PROVIDER2</providers>\n <isFinish>true | false</isFinish>\n</response>\n</output>";
|
|
7
7
|
export declare const multiStepSummaryTemplate = "<task>\nSummarize what the assistant has done so far and provide a final response to the user based on the completed steps.\n</task>\n\n# Context Information\n{{bio}}\n\n---\n\n{{system}}\n\n---\n\n{{messageDirections}}\n\n# Conversation Summary\nBelow is the user's original request and conversation so far:\n{{recentMessages}}\n\n# Execution Trace\nHere are the actions taken by the assistant to fulfill the request:\n{{actionResults}}\n\n# Assistant's Last Reasoning Step\n{{recentMessage}}\n\n# Instructions\n\n - Review the execution trace and last reasoning step carefully\n\n - Your final output MUST be in this XML format:\n<output>\n<response>\n <thought>Your thought here</thought>\n <text>Your final message to the user</text>\n</response>\n</output>\n";
|
|
8
|
+
export declare const postActionDecisionTemplate = "<task>\nContinue helping the user after reviewing the latest action results.\n</task>\n\ncontext:\n{{providers}}\n\nrecent conversation:\n{{recentMessages}}\n\nrecent action results:\n{{actionResults}}\n\nrules[9]:\n- think briefly, then continue the task from the latest action results\n- actions execute in listed order\n- if replying, REPLY goes first\n- use IGNORE or STOP only by themselves\n- include providers only when needed\n- use provider_hints from context when present instead of restating the same rules\n- if an action needs inputs, include a <params> block with the required fields\n- if a required param is unknown, ask for clarification in <text>\n- if the task is complete, either reply to the user or use STOP to end the run\n- STOP is a terminal control action even if it is not listed in available actions\n\n<output>\nXML only. Return exactly one <response> block. No prose before or after it. No <think>.\n\n<response>\n <thought>Your thought here</thought>\n <actions>\n <action>\n <name>ACTION</name>\n </action>\n </actions>\n <providers></providers>\n <text>Your message here</text>\n <simple>true</simple>\n</response>\n</output>";
|
|
8
9
|
export declare const replyTemplate = "# Task: Generate dialog for the character {{agentName}}.\n\n{{providers}}\n\n# Instructions: Write the next message for {{agentName}}.\n\"thought\" should be a short description of what the agent is thinking about and planning.\n\"text\" should be the next message for {{agentName}} which they will send to the conversation.\n\nIMPORTANT CODE BLOCK FORMATTING RULES:\n- If {{agentName}} includes code examples, snippets, or multi-line code in the response, ALWAYS wrap the code with ``` fenced code blocks (specify the language if known, e.g., ```python).\n- ONLY use fenced code blocks for actual code. Do NOT wrap non-code text, instructions, or single words in fenced code blocks.\n- If including inline code (short single words or function names), use single backticks (`) as appropriate.\n- This ensures the user sees clearly formatted and copyable code when relevant.\n\nDo NOT include any thinking, reasoning, or <think> sections in your response.\nGo directly to the XML response format without any preamble or explanation.\n\nRespond using XML format like this:\n<response>\n <thought>Your thought here</thought>\n <text>Your message here</text>\n</response>\n\nIMPORTANT: Your response must ONLY contain the <response></response> XML block above. Do not include any text, thinking, or reasoning before or after this XML block. Start your response immediately with <response> and end with </response>.";
|
|
9
10
|
export declare const chooseOptionTemplate = "# Task: Choose an option from the available choices.\n\n{{providers}}\n\n# Available Options:\n{{options}}\n\n# Instructions: \nAnalyze the options and select the most appropriate one based on the current context.\nProvide your reasoning and the selected option ID.\n\nRespond using XML format like this:\n<response>\n <thought>Your reasoning for the selection</thought>\n <selected_id>The ID of the selected option</selected_id>\n</response>\n\nIMPORTANT: Your response must ONLY contain the <response></response> XML block above.";
|
|
10
11
|
export declare const imageGenerationTemplate = "# Task: Generate an image prompt for {{agentName}}.\n\n{{providers}}\n\n# Instructions:\nBased on the conversation, create a detailed prompt for image generation.\nThe prompt should be specific, descriptive, and suitable for AI image generation.\n\n# Recent conversation:\n{{recentMessages}}\n\nRespond using XML format like this:\n<response>\n <thought>Your reasoning for the image prompt</thought>\n <prompt>Detailed image generation prompt</prompt>\n</response>\n\nIMPORTANT: Your response must ONLY contain the <response></response> XML block above.";
|
|
@@ -13,7 +14,7 @@ export declare const updateSettingsTemplate = "# Task: Update settings based on
|
|
|
13
14
|
export declare const updateEntityTemplate = "# Task: Update entity information.\n\n{{providers}}\n\n# Current Entity Information:\n{{entityInfo}}\n\n# Instructions:\nBased on the request, determine what information about the entity should be updated.\nOnly update fields that the user has explicitly requested to change.\n\nRespond using XML format like this:\n<response>\n <thought>Your reasoning for the entity update</thought>\n <entity_id>The entity ID to update</entity_id>\n <updates>\n <field>\n <name>field_name</name>\n <value>new_value</value>\n </field>\n </updates>\n</response>\n\nIMPORTANT: Your response must ONLY contain the <response></response> XML block above.";
|
|
14
15
|
export declare const optionExtractionTemplate = "# Task: Extract selected task and option from user message\n\n# Available Tasks:\n{{tasks}}\n\n# Recent Messages:\n{{recentMessages}}\n\n# Instructions:\n1. Review the user's message and identify which task and option they are selecting\n2. Match against the available tasks and their options, including ABORT\n3. Return the task ID (shortened UUID) and selected option name exactly as listed above\n4. If no clear selection is made, return null for both fields\n\n\nReturn in XML format:\n<response>\n <taskId>string_or_null</taskId>\n <selectedOption>OPTION_NAME_or_null</selectedOption>\n</response>\n\nIMPORTANT: Your response must ONLY contain the <response></response> XML block above. Do not include any text, thinking, or reasoning before or after this XML block. Start your response immediately with <response> and end with </response>.";
|
|
15
16
|
export declare const SHOULD_RESPOND_TEMPLATE = "task: Decide whether {{agentName}} should respond, ignore, or stop.\n\ncontext:\n{{providers}}\n\nrules[6]:\n- direct mention of {{agentName}} -> RESPOND\n- different assistant name -> IGNORE\n- continuing an active thread with {{agentName}} -> RESPOND\n- request to stop or be quiet -> STOP\n- talking to someone else -> IGNORE\n- if unsure, prefer IGNORE over hallucinating relevance\n\ndecision_note:\n- talking TO {{agentName}} means name mention, reply chain, or direct continuation\n- talking ABOUT {{agentName}} is not enough\n\n<output>\nXML only. Return exactly one <response> block. No prose before or after it. No <think>.\n\nExample:\n<response>\n <name>{{agentName}}</name>\n <reasoning>Direct mention and clear follow-up.</reasoning>\n <action>RESPOND | IGNORE | STOP</action>\n</response>\n</output>";
|
|
16
|
-
export declare const MESSAGE_HANDLER_TEMPLATE = "task: Generate dialog and actions for {{agentName}}.\n\ncontext:\n{{providers}}\n\nrules[8]:\n- think briefly, then respond\n- actions execute in listed order\n- if replying, REPLY goes first\n- use IGNORE only by
|
|
17
|
+
export declare const MESSAGE_HANDLER_TEMPLATE = "task: Generate dialog and actions for {{agentName}}.\n\ncontext:\n{{providers}}\n\nrules[8]:\n- think briefly, then respond\n- actions execute in listed order\n- if replying, REPLY goes first\n- use IGNORE or STOP only by themselves\n- include providers only when needed\n- use provider_hints from context when present instead of restating the same rules\n- if an action needs inputs, include a <params> block with the required fields\n- if a required param is unknown, ask for clarification in <text>\n\ncontrol_actions:\n- STOP means the task is done and the agent should end the run without executing more actions\n- STOP is a terminal control action even if it is not listed in available actions\n\nfields[5]{name,meaning}:\n- thought | short plan\n- actions | ordered XML <action> elements\n- providers | comma-separated provider names, or empty\n- text | next message for {{agentName}}\n- simple | true or false\n\nformatting:\n- wrap multi-line code in fenced code blocks\n- use inline backticks for short code identifiers\n\n<output>\nXML only. Return exactly one <response> block. No prose before or after it. No <think>.\n\nExample:\n<response>\n <thought>Reply briefly. No extra providers needed.</thought>\n <actions>\n <action>\n <name>REPLY</name>\n </action>\n </actions>\n <providers></providers>\n <text>Your message here</text>\n <simple>true</simple>\n</response>\n</output>";
|
|
17
18
|
export declare const POST_CREATION_TEMPLATE = "# Task: Create a post in the voice and style and perspective of {{agentName}} @{{xUserName}}.\n\nExample task outputs:\n1. A post about the importance of AI in our lives\n<response>\n <thought>I am thinking about writing a post about the importance of AI in our lives</thought>\n <post>AI is changing the world and it is important to understand how it works</post>\n <imagePrompt>A futuristic cityscape with flying cars and people using AI to do things</imagePrompt>\n</response>\n\n2. A post about dogs\n<response>\n <thought>I am thinking about writing a post about dogs</thought>\n <post>Dogs are man's best friend and they are loyal and loving</post>\n <imagePrompt>A dog playing with a ball in a park</imagePrompt>\n</response>\n\n3. A post about finding a new job\n<response>\n <thought>Getting a job is hard, I bet there's a good post in that</thought>\n <post>Just keep going!</post>\n <imagePrompt>A person looking at a computer screen with a job search website</imagePrompt>\n</response>\n\n{{providers}}\n\nWrite a post that is {{adjective}} about {{topic}} (without mentioning {{topic}} directly), from the perspective of {{agentName}}. Do not add commentary or acknowledge this request, just write the post.\nYour response should be 1, 2, or 3 sentences (choose the length at random).\nYour response should not contain any questions. Brief, concise statements only. The total character count MUST be less than 280. No emojis. Use \\n\\n (double spaces) between statements if there are multiple statements in your response.\n\nYour output should be formatted in XML like this:\n<response>\n <thought>Your thought here</thought>\n <post>Your post text here</post>\n <imagePrompt>Optional image prompt here</imagePrompt>\n</response>\n\nThe \"post\" field should be the post you want to send. Do not including any thinking or internal reflection in the \"post\" field.\nThe \"imagePrompt\" field is optional and should be a prompt for an image that is relevant to the post. It should be a single sentence that captures the essence of the post. ONLY USE THIS FIELD if it makes sense that the post would benefit from an image.\nThe \"thought\" field should be a short description of what the agent is thinking about before responding, including a brief justification for the response. Includate an explanation how the post is relevant to the topic but unique and different than other posts.\n\nDo NOT include any thinking, reasoning, or <think> sections in your response.\nGo directly to the XML response format without any preamble or explanation.\n\nIMPORTANT: Your response must ONLY contain the <response></response> XML block above. Do not include any text, thinking, or reasoning before or after this XML block. Start your response immediately with <response> and end with </response>.";
|
|
18
19
|
export declare const BOOLEAN_FOOTER = "Respond with only a YES or a NO.";
|
|
19
20
|
export declare const IMAGE_DESCRIPTION_TEMPLATE = "<task>Analyze the provided image and generate a comprehensive description with multiple levels of detail.</task>\n\n<instructions>\nCarefully examine the image and provide:\n1. A concise, descriptive title that captures the main subject or scene\n2. A brief summary description (1-2 sentences) highlighting the key elements\n3. An extensive, detailed description that covers all visible elements, composition, lighting, colors, mood, and any other relevant details\n\nBe objective and descriptive. Focus on what you can actually see in the image rather than making assumptions about context or meaning.\n</instructions>\n\n<output>\nDo NOT include any thinking, reasoning, or <think> sections in your response.\nGo directly to the XML response format without any preamble or explanation.\n\nRespond using XML format like this:\n<response>\n <title>A concise, descriptive title for the image</title>\n <description>A brief 1-2 sentence summary of the key elements in the image</description>\n <text>An extensive, detailed description covering all visible elements, composition, lighting, colors, mood, setting, objects, people, activities, and any other relevant details you can observe in the image</text>\n</response>\n\nIMPORTANT: Your response must ONLY contain the <response></response> XML block above. Do not include any text, thinking, or reasoning before or after this XML block. Start your response immediately with <response> and end with </response>.\n</output>";
|
package/dist/prompts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,szBA0BxB,CAAC;AAEX,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,szBA0BxB,CAAC;AAEX,eAAO,MAAM,sBAAsB,u4CA6CzB,CAAC;AAEX,eAAO,MAAM,oBAAoB,gwFA4C+M,CAAC;AAEjP,eAAO,MAAM,aAAa,qCAAqC,CAAC;AAEhE,eAAO,MAAM,wBAAwB,w8CAuB3B,CAAC;AAEX,eAAO,MAAM,yBAAyB,isDA4C5B,CAAC;AAEX,eAAO,MAAM,wBAAwB,kwBAqCpC,CAAC;AAEF,eAAO,MAAM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AAGzE,eAAO,MAAM,wBAAwB,ioCAgCiD,CAAC;AAGvF,eAAO,MAAM,iBAAiB,24BA8BwD,CAAC;AAGvF,eAAO,MAAM,uBAAuB,wuBAgB4B,CAAC;AAEjE,eAAO,MAAM,uBAAuB,41BAyBkC,CAAC;AAEvE,eAAO,MAAM,qBAAqB,shBAemC,CAAC;AAEtE,eAAO,MAAM,0BAA0B,4rBAoB6B,CAAC;AAGrE,eAAO,MAAM,0BAA0B,ioCAA2B,CAAC;AACnE,eAAO,MAAM,kBAAkB,24BAAoB,CAAC;AACpD,eAAO,MAAM,yBAAyB,wuBAA0B,CAAC;AACjE,eAAO,MAAM,yBAAyB,41BAA0B,CAAC;AACjE,eAAO,MAAM,uBAAuB,shBAAwB,CAAC;AAC7D,eAAO,MAAM,4BAA4B,4rBAA6B,CAAC;AAGvE,eAAO,MAAM,+BAA+B,seAUkC,CAAC;AAE/E,eAAO,MAAM,kCAAkC,2gBAYkB,CAAC;AAElE,eAAO,MAAM,yBAAyB,ulBAWmC,CAAC;AAE1E,eAAO,MAAM,4BAA4B,6nBAaoB,CAAC;AAG9D,eAAO,MAAM,kCAAkC,seACf,CAAC;AACjC,eAAO,MAAM,qCAAqC,2gBACf,CAAC;AACpC,eAAO,MAAM,4BAA4B,ulBAA4B,CAAC;AACtE,eAAO,MAAM,+BAA+B,6nBAA+B,CAAC"}
|
|
@@ -53,6 +53,7 @@ export declare class DefaultMessageService implements IMessageService {
|
|
|
53
53
|
* Processes attachments by generating descriptions for supported media types.
|
|
54
54
|
*/
|
|
55
55
|
processAttachments(runtime: IAgentRuntime, attachments: Media[]): Promise<Media[]>;
|
|
56
|
+
private runPostActionContinuation;
|
|
56
57
|
/**
|
|
57
58
|
* Single-shot strategy: one LLM call to generate response
|
|
58
59
|
* Uses dynamicPromptExecFromState for validation-aware structured output
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src/services/message.ts"],"names":[],"mappings":"
|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B;;OAEG;IACG,kBAAkB,CACvB,OAAO,EAAE,aAAa,EACtB,WAAW,EAAE,KAAK,EAAE,GAClB,OAAO,CAAC,KAAK,EAAE,CAAC;YA6RL,yBAAyB;IAoJvC;;;OAGG;YACW,iBAAiB;IAkb/B;;OAEG;YACW,gBAAgB;IA2c9B;;OAEG;YACW,YAAY;IAqB1B;;;;;;;OAOG;IACG,aAAa,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAyB3E;;;;;;;;OAQG;IACG,YAAY,CACjB,OAAO,EAAE,aAAa,EACtB,MAAM,EAAE,IAAI,EACZ,SAAS,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC;CA4ChB"}
|
|
@@ -15,6 +15,13 @@ export interface MessageProcessingOptions extends Omit<ProtoMessageProcessingOpt
|
|
|
15
15
|
maxMultiStepIterations?: number;
|
|
16
16
|
shouldRespondModel?: ShouldRespondModelType;
|
|
17
17
|
onStreamChunk?: (chunk: string, messageId?: string) => Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* When true, run a follow-up reasoning pass after actions complete so the
|
|
20
|
+
* agent can decide whether to share results, run another action, or stop.
|
|
21
|
+
* Defaults to enabled unless runtime.getSetting("CONTINUE_AFTER_ACTIONS")
|
|
22
|
+
* explicitly disables it.
|
|
23
|
+
*/
|
|
24
|
+
continueAfterActions?: boolean;
|
|
18
25
|
/** Signal to abort message processing */
|
|
19
26
|
abortSignal?: AbortSignal;
|
|
20
27
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-service.d.ts","sourceRoot":"","sources":["../../src/types/message-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,K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ChC,aAAa,EAAE,OAAO,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,sBAAsB,GAC/B,2BAA2B,GAC3B,OAAO,GACP,OAAO,CAAC;AACX,MAAM,MAAM,qBAAqB,GAC9B,0BAA0B,GAC1B,QAAQ,GACR,SAAS,GACT,MAAM,GACN,SAAS,CAAC;AAEb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,WAAW,eAAe;IAC/B;;;;;;;;;OASG;IACH,aAAa,CACZ,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,MAAM,EACf,QAAQ,CAAC,EAAE,eAAe,EAC1B,OAAO,CAAC,EAAE,wBAAwB,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAEpC;;;;;;;;;OASG;IACH,aAAa,CACZ,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,IAAI,EACX,cAAc,CAAC,EAAE,cAAc,GAC7B,gBAAgB,CAAC;IAEpB;;;;;;;OAOG;IACH,kBAAkB,CAAC,CAClB,OAAO,EAAE,aAAa,EACtB,WAAW,EAAE,KAAK,EAAE,GAClB,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;IAEpB;;;;;;;OAOG;IACH,aAAa,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtE;;;;;;;;OAQG;IACH,YAAY,CACX,OAAO,EAAE,aAAa,EACtB,MAAM,EAAE,IAAI,EACZ,SAAS,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC,CAAC;CACjB"}
|
|
1
|
+
{"version":3,"file":"message-service.d.ts","sourceRoot":"","sources":["../../src/types/message-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAA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|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/core",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.113",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"author": "elizaOS",
|
|
68
68
|
"license": "MIT",
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@elizaos/schemas": "2.0.0-alpha.
|
|
70
|
+
"@elizaos/schemas": "2.0.0-alpha.113",
|
|
71
71
|
"@playwright/test": "^1.52.0",
|
|
72
72
|
"@types/bun": "^1.3.5",
|
|
73
73
|
"@types/fast-redact": "^3.0.4",
|
|
@@ -107,5 +107,5 @@
|
|
|
107
107
|
"publishConfig": {
|
|
108
108
|
"access": "public"
|
|
109
109
|
},
|
|
110
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "f25d3c0a39bca7c2e39d5c5f7a56cb24f7e65917"
|
|
111
111
|
}
|