@elizaos/plugin-xai 2.0.0-alpha.6 → 2.0.3-beta.5
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/LICENSE +21 -0
- package/README.md +43 -21
- package/auto-enable.ts +17 -0
- package/package.json +44 -102
- package/registry-entry.json +75 -0
- package/dist/actions/post.d.ts +0 -3
- package/dist/actions/post.d.ts.map +0 -1
- package/dist/base.d.ts +0 -55
- package/dist/base.d.ts.map +0 -1
- package/dist/browser/index.browser.js +0 -4
- package/dist/browser/index.browser.js.map +0 -11
- package/dist/browser/index.d.ts +0 -2
- package/dist/cjs/index.d.ts +0 -2
- package/dist/cjs/index.node.cjs +0 -11197
- package/dist/cjs/index.node.js.map +0 -116
- package/dist/client/api-types.d.ts +0 -28
- package/dist/client/api-types.d.ts.map +0 -1
- package/dist/client/auth-providers/broker.d.ts +0 -19
- package/dist/client/auth-providers/broker.d.ts.map +0 -1
- package/dist/client/auth-providers/env.d.ts +0 -20
- package/dist/client/auth-providers/env.d.ts.map +0 -1
- package/dist/client/auth-providers/factory.d.ts +0 -5
- package/dist/client/auth-providers/factory.d.ts.map +0 -1
- package/dist/client/auth-providers/interactive.d.ts +0 -7
- package/dist/client/auth-providers/interactive.d.ts.map +0 -1
- package/dist/client/auth-providers/oauth2-pkce.d.ts +0 -24
- package/dist/client/auth-providers/oauth2-pkce.d.ts.map +0 -1
- package/dist/client/auth-providers/pkce.d.ts +0 -5
- package/dist/client/auth-providers/pkce.d.ts.map +0 -1
- package/dist/client/auth-providers/token-store.d.ts +0 -31
- package/dist/client/auth-providers/token-store.d.ts.map +0 -1
- package/dist/client/auth-providers/types.d.ts +0 -35
- package/dist/client/auth-providers/types.d.ts.map +0 -1
- package/dist/client/auth.d.ts +0 -38
- package/dist/client/auth.d.ts.map +0 -1
- package/dist/client/client.d.ts +0 -462
- package/dist/client/client.d.ts.map +0 -1
- package/dist/client/errors.d.ts +0 -72
- package/dist/client/errors.d.ts.map +0 -1
- package/dist/client/index.d.ts +0 -21
- package/dist/client/index.d.ts.map +0 -1
- package/dist/client/posts.d.ts +0 -325
- package/dist/client/posts.d.ts.map +0 -1
- package/dist/client/profile.d.ts +0 -140
- package/dist/client/profile.d.ts.map +0 -1
- package/dist/client/relationships.d.ts +0 -47
- package/dist/client/relationships.d.ts.map +0 -1
- package/dist/client/search.d.ts +0 -48
- package/dist/client/search.d.ts.map +0 -1
- package/dist/client/types.d.ts +0 -24
- package/dist/client/types.d.ts.map +0 -1
- package/dist/constants.d.ts +0 -5
- package/dist/constants.d.ts.map +0 -1
- package/dist/discovery.d.ts +0 -37
- package/dist/discovery.d.ts.map +0 -1
- package/dist/environment.d.ts +0 -40
- package/dist/environment.d.ts.map +0 -1
- package/dist/generated/prompts/typescript/prompts.d.ts +0 -22
- package/dist/generated/prompts/typescript/prompts.d.ts.map +0 -1
- package/dist/generated/specs/spec-helpers.d.ts +0 -49
- package/dist/generated/specs/spec-helpers.d.ts.map +0 -1
- package/dist/generated/specs/specs.d.ts +0 -65
- package/dist/generated/specs/specs.d.ts.map +0 -1
- package/dist/index.browser.d.ts +0 -6
- package/dist/index.browser.d.ts.map +0 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.d.ts.map +0 -1
- package/dist/index.node.d.ts +0 -3
- package/dist/index.node.d.ts.map +0 -1
- package/dist/interactions.d.ts +0 -129
- package/dist/interactions.d.ts.map +0 -1
- package/dist/models/grok.d.ts +0 -7
- package/dist/models/grok.d.ts.map +0 -1
- package/dist/node/index.d.ts +0 -2
- package/dist/node/index.node.js +0 -11212
- package/dist/node/index.node.js.map +0 -116
- package/dist/post.d.ts +0 -43
- package/dist/post.d.ts.map +0 -1
- package/dist/services/x.service.d.ts +0 -23
- package/dist/services/x.service.d.ts.map +0 -1
- package/dist/templates.d.ts +0 -6
- package/dist/templates.d.ts.map +0 -1
- package/dist/timeline.d.ts +0 -46
- package/dist/timeline.d.ts.map +0 -1
- package/dist/types.d.ts +0 -150
- package/dist/types.d.ts.map +0 -1
- package/dist/utils/error-handler.d.ts +0 -20
- package/dist/utils/error-handler.d.ts.map +0 -1
- package/dist/utils/memory.d.ts +0 -21
- package/dist/utils/memory.d.ts.map +0 -1
- package/dist/utils/settings.d.ts +0 -3
- package/dist/utils/settings.d.ts.map +0 -1
- package/dist/utils/time.d.ts +0 -2
- package/dist/utils/time.d.ts.map +0 -1
- package/dist/utils.d.ts +0 -36
- package/dist/utils.d.ts.map +0 -1
package/dist/discovery.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { type IAgentRuntime } from "@elizaos/core";
|
|
2
|
-
import type { ClientBase } from "./base";
|
|
3
|
-
export declare class XDiscoveryClient {
|
|
4
|
-
private xClient;
|
|
5
|
-
private runtime;
|
|
6
|
-
private config;
|
|
7
|
-
private isRunning;
|
|
8
|
-
private isDryRun;
|
|
9
|
-
constructor(client: ClientBase, runtime: IAgentRuntime, state: Record<string, unknown>);
|
|
10
|
-
/**
|
|
11
|
-
* Sanitizes a topic for use in X search queries
|
|
12
|
-
* - Removes common stop words that might be interpreted as operators
|
|
13
|
-
* - Handles special characters
|
|
14
|
-
* - Simplifies complex phrases
|
|
15
|
-
*/
|
|
16
|
-
private sanitizeTopic;
|
|
17
|
-
private buildDiscoveryConfig;
|
|
18
|
-
private extractTopicsFromBio;
|
|
19
|
-
start(): Promise<void>;
|
|
20
|
-
stop(): Promise<void>;
|
|
21
|
-
private runDiscoveryCycle;
|
|
22
|
-
private discoverContent;
|
|
23
|
-
private discoverFromTopics;
|
|
24
|
-
private discoverFromThreads;
|
|
25
|
-
private discoverFromPopularAccounts;
|
|
26
|
-
private scorePost;
|
|
27
|
-
private scoreAccount;
|
|
28
|
-
private processAccounts;
|
|
29
|
-
private processPosts;
|
|
30
|
-
private checkIfFollowing;
|
|
31
|
-
private generateReply;
|
|
32
|
-
private generateQuote;
|
|
33
|
-
private saveEngagementMemory;
|
|
34
|
-
private saveFollowMemory;
|
|
35
|
-
private delay;
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=discovery.d.ts.map
|
package/dist/discovery.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../discovery.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,EAInB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAuCzC,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,OAAO,CAAgB;IAC/B,OAAO,CAAC,MAAM,CAAkB;IAChC,OAAO,CAAC,SAAS,CAAkB;IACnC,OAAO,CAAC,QAAQ,CAAU;gBAEd,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAoBtF;;;;;OAKG;IACH,OAAO,CAAC,aAAa;IAerB,OAAO,CAAC,oBAAoB;IAqD5B,OAAO,CAAC,oBAAoB;IAiBtB,KAAK;IA+BL,IAAI;YAKI,iBAAiB;YAmBjB,eAAe;YAyDf,kBAAkB;YAgHlB,mBAAmB;YAyDnB,2BAA2B;IAiEzC,OAAO,CAAC,SAAS;IAgEjB,OAAO,CAAC,YAAY;YAuBN,eAAe;YAqEf,YAAY;YAqGZ,gBAAgB;YAehB,aAAa;YAsCb,aAAa;YAsCb,oBAAoB;YAyCpB,gBAAgB;IAwC9B,OAAO,CAAC,KAAK;CAGd"}
|
package/dist/environment.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { IAgentRuntime } from "@elizaos/core";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
export declare const xEnvSchema: z.ZodObject<{
|
|
4
|
-
X_AUTH_MODE: z.ZodDefault<z.ZodEnum<{
|
|
5
|
-
env: "env";
|
|
6
|
-
oauth: "oauth";
|
|
7
|
-
bearer: "bearer";
|
|
8
|
-
}>>;
|
|
9
|
-
X_API_KEY: z.ZodDefault<z.ZodString>;
|
|
10
|
-
X_API_SECRET: z.ZodDefault<z.ZodString>;
|
|
11
|
-
X_ACCESS_TOKEN: z.ZodDefault<z.ZodString>;
|
|
12
|
-
X_ACCESS_TOKEN_SECRET: z.ZodDefault<z.ZodString>;
|
|
13
|
-
X_BEARER_TOKEN: z.ZodDefault<z.ZodString>;
|
|
14
|
-
X_CLIENT_ID: z.ZodDefault<z.ZodString>;
|
|
15
|
-
X_REDIRECT_URI: z.ZodDefault<z.ZodString>;
|
|
16
|
-
X_DRY_RUN: z.ZodDefault<z.ZodString>;
|
|
17
|
-
X_TARGET_USERS: z.ZodDefault<z.ZodString>;
|
|
18
|
-
X_ENABLE_POST: z.ZodDefault<z.ZodString>;
|
|
19
|
-
X_ENABLE_REPLIES: z.ZodDefault<z.ZodString>;
|
|
20
|
-
X_ENABLE_ACTIONS: z.ZodDefault<z.ZodString>;
|
|
21
|
-
X_ENABLE_DISCOVERY: z.ZodDefault<z.ZodString>;
|
|
22
|
-
X_POST_INTERVAL_MIN: z.ZodDefault<z.ZodString>;
|
|
23
|
-
X_POST_INTERVAL_MAX: z.ZodDefault<z.ZodString>;
|
|
24
|
-
X_ENGAGEMENT_INTERVAL_MIN: z.ZodDefault<z.ZodString>;
|
|
25
|
-
X_ENGAGEMENT_INTERVAL_MAX: z.ZodDefault<z.ZodString>;
|
|
26
|
-
X_DISCOVERY_INTERVAL_MIN: z.ZodDefault<z.ZodString>;
|
|
27
|
-
X_DISCOVERY_INTERVAL_MAX: z.ZodDefault<z.ZodString>;
|
|
28
|
-
X_MAX_ENGAGEMENTS_PER_RUN: z.ZodDefault<z.ZodString>;
|
|
29
|
-
X_MAX_POST_LENGTH: z.ZodDefault<z.ZodString>;
|
|
30
|
-
X_RETRY_LIMIT: z.ZodDefault<z.ZodString>;
|
|
31
|
-
}, z.core.$strip>;
|
|
32
|
-
export type TwitterConfig = z.infer<typeof xEnvSchema>;
|
|
33
|
-
export declare function shouldTargetUser(username: string, targetConfig: string): boolean;
|
|
34
|
-
export declare function getTargetUsers(targetConfig: string): string[];
|
|
35
|
-
export declare function validateXConfig(runtime: IAgentRuntime): Promise<TwitterConfig>;
|
|
36
|
-
export declare function getRandomInterval(runtime: IAgentRuntime, type: "post" | "engagement" | "discovery"): number;
|
|
37
|
-
export declare function loadConfig(): TwitterConfig;
|
|
38
|
-
export declare function validateConfig(config: unknown): TwitterConfig;
|
|
39
|
-
export declare function loadConfigFromFile(): Partial<TwitterConfig>;
|
|
40
|
-
//# sourceMappingURL=environment.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../environment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwBrB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAUvD,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAMhF;AAED,wBAAgB,cAAc,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,EAAE,CAE7D;AAED,wBAAsB,eAAe,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAmDpF;AAOD,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,aAAa,EACtB,IAAI,EAAE,MAAM,GAAG,YAAY,GAAG,WAAW,GACxC,MAAM,CA2BR;AAED,wBAAgB,UAAU,IAAI,aAAa,CA2B1C;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,aAAa,CAE7D;AAED,wBAAgB,kBAAkB,IAAI,OAAO,CAAC,aAAa,CAAC,CAE3D"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Auto-generated prompt templates
|
|
3
|
-
* DO NOT EDIT - Generated from ../../../../prompts/*.txt
|
|
4
|
-
*
|
|
5
|
-
* These prompts use Handlebars-style template syntax:
|
|
6
|
-
* - {{variableName}} for simple substitution
|
|
7
|
-
* - {{#each items}}...{{/each}} for iteration
|
|
8
|
-
* - {{#if condition}}...{{/if}} for conditionals
|
|
9
|
-
*/
|
|
10
|
-
export declare const generatePostTemplate = "You are {{agentName}}.\n{{bio}}\n\nGenerate a post based on: {{request}}\n\nStyle:\n- Be specific, opinionated, authentic\n- No generic content or platitudes\n- Share insights, hot takes, unique perspectives\n- Conversational and punchy\n- Under 280 characters\n- Skip hashtags unless essential\n\nTopics: {{topics}}\n\nPost:";
|
|
11
|
-
export declare const GENERATE_POST_TEMPLATE = "You are {{agentName}}.\n{{bio}}\n\nGenerate a post based on: {{request}}\n\nStyle:\n- Be specific, opinionated, authentic\n- No generic content or platitudes\n- Share insights, hot takes, unique perspectives\n- Conversational and punchy\n- Under 280 characters\n- Skip hashtags unless essential\n\nTopics: {{topics}}\n\nPost:";
|
|
12
|
-
export declare const messageHandlerTemplate = "{{agentName}} is replying to you:\n{{senderName}}: {{userMessage}}\n\n# Task: Generate a reply for {{agentName}}.\n{{providers}}\n\n# Instructions: Write a thoughtful response to {{senderName}} that is appropriate and relevant to their message. Do not including any thinking, self-reflection or internal dialog in your response.";
|
|
13
|
-
export declare const MESSAGE_HANDLER_TEMPLATE = "{{agentName}} is replying to you:\n{{senderName}}: {{userMessage}}\n\n# Task: Generate a reply for {{agentName}}.\n{{providers}}\n\n# Instructions: Write a thoughtful response to {{senderName}} that is appropriate and relevant to their message. Do not including any thinking, self-reflection or internal dialog in your response.";
|
|
14
|
-
export declare const quoteTweetTemplate = "# Task: Write a quote post in the voice, style, and perspective of {{agentName}} @{{xUserName}}.\n\n{{bio}}\n{{postDirections}}\n\n<response>\n <thought>Your thought here, explaining why the quote post is meaningful or how it connects to what {{agentName}} cares about</thought>\n <post>The quote post content here, under 280 characters, without emojis, no questions</post>\n</response>\n\nYour quote post should be:\n- A reaction, agreement, disagreement, or expansion of the original post\n- Personal and unique to {{agentName}}'s style and point of view\n- 1 to 3 sentences long, chosen at random\n- No questions, no emojis, concise\n- Use \"\\n\\n\" (double spaces) between multiple sentences\n- Max 280 characters including line breaks\n\nYour output must ONLY contain the XML block.";
|
|
15
|
-
export declare const QUOTE_TWEET_TEMPLATE = "# Task: Write a quote post in the voice, style, and perspective of {{agentName}} @{{xUserName}}.\n\n{{bio}}\n{{postDirections}}\n\n<response>\n <thought>Your thought here, explaining why the quote post is meaningful or how it connects to what {{agentName}} cares about</thought>\n <post>The quote post content here, under 280 characters, without emojis, no questions</post>\n</response>\n\nYour quote post should be:\n- A reaction, agreement, disagreement, or expansion of the original post\n- Personal and unique to {{agentName}}'s style and point of view\n- 1 to 3 sentences long, chosen at random\n- No questions, no emojis, concise\n- Use \"\\n\\n\" (double spaces) between multiple sentences\n- Max 280 characters including line breaks\n\nYour output must ONLY contain the XML block.";
|
|
16
|
-
export declare const replyTweetTemplate = "# Task: Write a reply post in the voice, style, and perspective of {{agentName}} @{{xUserName}}.\n\n{{bio}}\n{{postDirections}}\n\n<response>\n <thought>Your thought here, explaining why this reply is meaningful or how it connects to what {{agentName}} cares about</thought>\n <post>The reply post content here, under 280 characters, without emojis, no questions</post>\n</response>\n\nYour reply should be:\n- A direct response, agreement, disagreement, or personal take on the original post\n- Reflective of {{agentName}}'s unique voice and values\n- 1 to 2 sentences long, chosen at random\n- No questions, no emojis, concise\n- Use \"\\n\\n\" (double spaces) between multiple sentences if needed\n- Max 280 characters including line breaks\n\nYour output must ONLY contain the XML block.";
|
|
17
|
-
export declare const REPLY_TWEET_TEMPLATE = "# Task: Write a reply post in the voice, style, and perspective of {{agentName}} @{{xUserName}}.\n\n{{bio}}\n{{postDirections}}\n\n<response>\n <thought>Your thought here, explaining why this reply is meaningful or how it connects to what {{agentName}} cares about</thought>\n <post>The reply post content here, under 280 characters, without emojis, no questions</post>\n</response>\n\nYour reply should be:\n- A direct response, agreement, disagreement, or personal take on the original post\n- Reflective of {{agentName}}'s unique voice and values\n- 1 to 2 sentences long, chosen at random\n- No questions, no emojis, concise\n- Use \"\\n\\n\" (double spaces) between multiple sentences if needed\n- Max 280 characters including line breaks\n\nYour output must ONLY contain the XML block.";
|
|
18
|
-
export declare const xActionTemplate = "# INSTRUCTIONS: Determine actions for {{agentName}} (@{{xUserName}}) based on:\n{{bio}}\n{{postDirections}}\n\nGuidelines:\n- Engage with content that relates to character's interests and expertise\n- Direct mentions should be prioritized when relevant\n- Consider engaging with:\n - Content directly related to your topics\n - Interesting discussions you can contribute to\n - Questions you can help answer\n - Content from users you've interacted with before\n- Skip content that is:\n - Completely off-topic or spam\n - Inflammatory or highly controversial (unless it's your area)\n - Pure marketing/promotional with no value\n\nActions (respond only with tags):\n[LIKE] - Content is relevant and interesting (7/10 or higher)\n[REPOST] - Content is valuable and worth sharing (8/10 or higher)\n[QUOTE] - You can add meaningful commentary (7.5/10 or higher)\n[REPLY] - You can contribute helpful insights (7/10 or higher)";
|
|
19
|
-
export declare const X_ACTION_TEMPLATE = "# INSTRUCTIONS: Determine actions for {{agentName}} (@{{xUserName}}) based on:\n{{bio}}\n{{postDirections}}\n\nGuidelines:\n- Engage with content that relates to character's interests and expertise\n- Direct mentions should be prioritized when relevant\n- Consider engaging with:\n - Content directly related to your topics\n - Interesting discussions you can contribute to\n - Questions you can help answer\n - Content from users you've interacted with before\n- Skip content that is:\n - Completely off-topic or spam\n - Inflammatory or highly controversial (unless it's your area)\n - Pure marketing/promotional with no value\n\nActions (respond only with tags):\n[LIKE] - Content is relevant and interesting (7/10 or higher)\n[REPOST] - Content is valuable and worth sharing (8/10 or higher)\n[QUOTE] - You can add meaningful commentary (7.5/10 or higher)\n[REPLY] - You can contribute helpful insights (7/10 or higher)";
|
|
20
|
-
export declare const xMessageHandlerTemplate = "# Task: Generate dialog and actions for {{agentName}}.\n{{providers}}\nHere is the current post text again. Remember to include an action if the current post text includes a prompt that asks for one of the available actions mentioned above (does not need to be exact)\n{{currentPost}}\n{{imageDescriptions}}\n\n# Instructions: Write the next message for {{agentName}}. Include the appropriate action from the list: {{actionNames}}\nResponse format should be formatted in a valid JSON block like this:\n```json\n{ \"thought\": \"<string>\", \"name\": \"{{agentName}}\", \"text\": \"<string>\", \"action\": \"<string>\" }\n```\n\nThe \"action\" field should be one of the options in [Available Actions] and the \"text\" field should be the response you want to send. Do not including any thinking or internal reflection in the \"text\" field. \"thought\" should be a short description of what the agent is thinking about before responding, inlcuding a brief justification for the response.";
|
|
21
|
-
export declare const X_MESSAGE_HANDLER_TEMPLATE = "# Task: Generate dialog and actions for {{agentName}}.\n{{providers}}\nHere is the current post text again. Remember to include an action if the current post text includes a prompt that asks for one of the available actions mentioned above (does not need to be exact)\n{{currentPost}}\n{{imageDescriptions}}\n\n# Instructions: Write the next message for {{agentName}}. Include the appropriate action from the list: {{actionNames}}\nResponse format should be formatted in a valid JSON block like this:\n```json\n{ \"thought\": \"<string>\", \"name\": \"{{agentName}}\", \"text\": \"<string>\", \"action\": \"<string>\" }\n```\n\nThe \"action\" field should be one of the options in [Available Actions] and the \"text\" field should be the response you want to send. Do not including any thinking or internal reflection in the \"text\" field. \"thought\" should be a short description of what the agent is thinking about before responding, inlcuding a brief justification for the response.";
|
|
22
|
-
//# sourceMappingURL=prompts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../../generated/prompts/typescript/prompts.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,eAAO,MAAM,oBAAoB,0UAe3B,CAAC;AAEP,eAAO,MAAM,sBAAsB,0UAAuB,CAAC;AAE3D,eAAO,MAAM,sBAAsB,6UAMkK,CAAC;AAEtM,eAAO,MAAM,wBAAwB,6UAAyB,CAAC;AAE/D,eAAO,MAAM,kBAAkB,2xBAkBc,CAAC;AAE9C,eAAO,MAAM,oBAAoB,2xBAAqB,CAAC;AAEvD,eAAO,MAAM,kBAAkB,8xBAkBc,CAAC;AAE9C,eAAO,MAAM,oBAAoB,8xBAAqB,CAAC;AAEvD,eAAO,MAAM,eAAe,u6BAqBmC,CAAC;AAEhE,eAAO,MAAM,iBAAiB,u6BAAkB,CAAC;AAEjD,eAAO,MAAM,uBAAuB,g+BAY4T,CAAC;AAEjW,eAAO,MAAM,0BAA0B,g+BAA0B,CAAC"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Helper functions to lookup action/provider/evaluator specs by name.
|
|
3
|
-
* These allow language-specific implementations to import their text content
|
|
4
|
-
* (description, similes, examples) from the centralized specs.
|
|
5
|
-
*
|
|
6
|
-
* DO NOT EDIT the spec data - update prompts/actions.json, prompts/providers.json, prompts/evaluators.json and regenerate.
|
|
7
|
-
*/
|
|
8
|
-
import { type ActionDoc, type EvaluatorDoc, type ProviderDoc } from "./specs";
|
|
9
|
-
/**
|
|
10
|
-
* Get an action spec by name from the core specs.
|
|
11
|
-
* @param name - The action name
|
|
12
|
-
* @returns The action spec or undefined if not found
|
|
13
|
-
*/
|
|
14
|
-
export declare function getActionSpec(name: string): ActionDoc | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* Get an action spec by name, throwing if not found.
|
|
17
|
-
* @param name - The action name
|
|
18
|
-
* @returns The action spec
|
|
19
|
-
* @throws Error if the action is not found
|
|
20
|
-
*/
|
|
21
|
-
export declare function requireActionSpec(name: string): ActionDoc;
|
|
22
|
-
/**
|
|
23
|
-
* Get a provider spec by name from the core specs.
|
|
24
|
-
* @param name - The provider name
|
|
25
|
-
* @returns The provider spec or undefined if not found
|
|
26
|
-
*/
|
|
27
|
-
export declare function getProviderSpec(name: string): ProviderDoc | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* Get a provider spec by name, throwing if not found.
|
|
30
|
-
* @param name - The provider name
|
|
31
|
-
* @returns The provider spec
|
|
32
|
-
* @throws Error if the provider is not found
|
|
33
|
-
*/
|
|
34
|
-
export declare function requireProviderSpec(name: string): ProviderDoc;
|
|
35
|
-
/**
|
|
36
|
-
* Get an evaluator spec by name from the core specs.
|
|
37
|
-
* @param name - The evaluator name
|
|
38
|
-
* @returns The evaluator spec or undefined if not found
|
|
39
|
-
*/
|
|
40
|
-
export declare function getEvaluatorSpec(name: string): EvaluatorDoc | undefined;
|
|
41
|
-
/**
|
|
42
|
-
* Get an evaluator spec by name, throwing if not found.
|
|
43
|
-
* @param name - The evaluator name
|
|
44
|
-
* @returns The evaluator spec
|
|
45
|
-
* @throws Error if the evaluator is not found
|
|
46
|
-
*/
|
|
47
|
-
export declare function requireEvaluatorSpec(name: string): EvaluatorDoc;
|
|
48
|
-
export type { ActionDoc, ProviderDoc, EvaluatorDoc };
|
|
49
|
-
//# sourceMappingURL=spec-helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spec-helpers.d.ts","sourceRoot":"","sources":["../../../generated/specs/spec-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,KAAK,SAAS,EAOd,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,SAAS,CAAC;AAgBjB;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAEjE;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAMzD;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAErE;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAM7D;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAEvE;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAM/D;AAGD,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Auto-generated canonical action/provider/evaluator docs for plugin-xai.
|
|
3
|
-
* DO NOT EDIT - Generated from prompts/specs/**.
|
|
4
|
-
*/
|
|
5
|
-
export type ActionDoc = {
|
|
6
|
-
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
similes?: readonly string[];
|
|
9
|
-
parameters?: readonly unknown[];
|
|
10
|
-
examples?: readonly (readonly unknown[])[];
|
|
11
|
-
};
|
|
12
|
-
export type ProviderDoc = {
|
|
13
|
-
name: string;
|
|
14
|
-
description: string;
|
|
15
|
-
position?: number;
|
|
16
|
-
dynamic?: boolean;
|
|
17
|
-
};
|
|
18
|
-
export type EvaluatorDoc = {
|
|
19
|
-
name: string;
|
|
20
|
-
description: string;
|
|
21
|
-
similes?: readonly string[];
|
|
22
|
-
alwaysRun?: boolean;
|
|
23
|
-
examples?: readonly unknown[];
|
|
24
|
-
};
|
|
25
|
-
export declare const coreActionsSpec: {
|
|
26
|
-
readonly version: "1.0.0";
|
|
27
|
-
readonly actions: readonly [{
|
|
28
|
-
readonly name: "POST";
|
|
29
|
-
readonly description: "Post content on X (formerly Twitter)";
|
|
30
|
-
readonly similes: readonly ["POST_TO_X", "POST", "SEND_POST", "SHARE_ON_X"];
|
|
31
|
-
readonly parameters: readonly [];
|
|
32
|
-
}];
|
|
33
|
-
};
|
|
34
|
-
export declare const allActionsSpec: {
|
|
35
|
-
readonly version: "1.0.0";
|
|
36
|
-
readonly actions: readonly [{
|
|
37
|
-
readonly name: "POST";
|
|
38
|
-
readonly description: "Post content on X (formerly Twitter)";
|
|
39
|
-
readonly similes: readonly ["POST_TO_X", "POST", "SEND_POST", "SHARE_ON_X"];
|
|
40
|
-
readonly parameters: readonly [];
|
|
41
|
-
}];
|
|
42
|
-
};
|
|
43
|
-
export declare const coreProvidersSpec: {
|
|
44
|
-
readonly version: "1.0.0";
|
|
45
|
-
readonly providers: readonly [];
|
|
46
|
-
};
|
|
47
|
-
export declare const allProvidersSpec: {
|
|
48
|
-
readonly version: "1.0.0";
|
|
49
|
-
readonly providers: readonly [];
|
|
50
|
-
};
|
|
51
|
-
export declare const coreEvaluatorsSpec: {
|
|
52
|
-
readonly version: "1.0.0";
|
|
53
|
-
readonly evaluators: readonly [];
|
|
54
|
-
};
|
|
55
|
-
export declare const allEvaluatorsSpec: {
|
|
56
|
-
readonly version: "1.0.0";
|
|
57
|
-
readonly evaluators: readonly [];
|
|
58
|
-
};
|
|
59
|
-
export declare const coreActionDocs: readonly ActionDoc[];
|
|
60
|
-
export declare const allActionDocs: readonly ActionDoc[];
|
|
61
|
-
export declare const coreProviderDocs: readonly ProviderDoc[];
|
|
62
|
-
export declare const allProviderDocs: readonly ProviderDoc[];
|
|
63
|
-
export declare const coreEvaluatorDocs: readonly EvaluatorDoc[];
|
|
64
|
-
export declare const allEvaluatorDocs: readonly EvaluatorDoc[];
|
|
65
|
-
//# sourceMappingURL=specs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"specs.d.ts","sourceRoot":"","sources":["../../../generated/specs/specs.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,UAAU,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;IAChC,QAAQ,CAAC,EAAE,SAAS,CAAC,SAAS,OAAO,EAAE,CAAC,EAAE,CAAC;CAC5C,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;CAUlB,CAAC;AACX,eAAO,MAAM,cAAc;;;;;;;;CAUjB,CAAC;AACX,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC;AACX,eAAO,MAAM,gBAAgB;;;CAGnB,CAAC;AACX,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AACX,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC;AAEX,eAAO,MAAM,cAAc,EAAE,SAAS,SAAS,EAA4B,CAAC;AAC5E,eAAO,MAAM,aAAa,EAAE,SAAS,SAAS,EAA2B,CAAC;AAC1E,eAAO,MAAM,gBAAgB,EAAE,SAAS,WAAW,EAAgC,CAAC;AACpF,eAAO,MAAM,eAAe,EAAE,SAAS,WAAW,EAA+B,CAAC;AAClF,eAAO,MAAM,iBAAiB,EAAE,SAAS,YAAY,EAAkC,CAAC;AACxF,eAAO,MAAM,gBAAgB,EAAE,SAAS,YAAY,EAAiC,CAAC"}
|
package/dist/index.browser.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { Plugin } from "@elizaos/core";
|
|
2
|
-
export type { TwitterConfig } from "./environment";
|
|
3
|
-
export type { ActionResponse, IXClient, MediaData, Post } from "./types";
|
|
4
|
-
export declare const XAIPlugin: Plugin;
|
|
5
|
-
export default XAIPlugin;
|
|
6
|
-
//# sourceMappingURL=index.browser.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.browser.d.ts","sourceRoot":"","sources":["../index.browser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,MAAM,EAAE,MAAM,eAAe,CAAC;AAS3D,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,YAAY,EAAE,cAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAEzE,eAAO,MAAM,SAAS,EAAE,MAgBvB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/dist/index.d.ts
DELETED
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyC,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAWnF,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,eAAO,MAAM,SAAS,EAAE,MA2EvB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/dist/index.node.d.ts
DELETED
package/dist/index.node.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.node.d.ts","sourceRoot":"","sources":["../index.node.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/interactions.d.ts
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { type IAgentRuntime, type Memory } from "@elizaos/core";
|
|
2
|
-
import type { ClientBase } from "./base";
|
|
3
|
-
import type { Post as ClientPost } from "./client/posts";
|
|
4
|
-
/**
|
|
5
|
-
* Template for generating dialog and actions for a X message handler.
|
|
6
|
-
*
|
|
7
|
-
* @type {string}
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Templates for XAI plugin interactions.
|
|
11
|
-
* Auto-generated from prompts/*.txt
|
|
12
|
-
* DO NOT EDIT - Generated from ./generated/prompts/typescript/prompts.ts
|
|
13
|
-
*/
|
|
14
|
-
import { messageHandlerTemplate, xMessageHandlerTemplate } from "./generated/prompts/typescript/prompts.js";
|
|
15
|
-
import type { XInteractionMemory, XInteractionPayload } from "./types";
|
|
16
|
-
export { xMessageHandlerTemplate, messageHandlerTemplate };
|
|
17
|
-
/**
|
|
18
|
-
* The XInteractionClient class manages X interactions,
|
|
19
|
-
* including handling mentions, managing timelines, and engaging with other users.
|
|
20
|
-
* It extends the base X client functionality to provide mention handling,
|
|
21
|
-
* user interaction, and follow change detection capabilities.
|
|
22
|
-
*
|
|
23
|
-
* @extends ClientBase
|
|
24
|
-
*/
|
|
25
|
-
export declare class XInteractionClient {
|
|
26
|
-
client: ClientBase;
|
|
27
|
-
runtime: IAgentRuntime;
|
|
28
|
-
xUsername: string;
|
|
29
|
-
xUserId: string;
|
|
30
|
-
private isDryRun;
|
|
31
|
-
private state;
|
|
32
|
-
private isRunning;
|
|
33
|
-
/**
|
|
34
|
-
* Constructor to initialize the X interaction client with runtime and state management.
|
|
35
|
-
*
|
|
36
|
-
* @param {ClientBase} client - The client instance.
|
|
37
|
-
* @param {IAgentRuntime} runtime - The runtime instance for agent operations.
|
|
38
|
-
* @param {Record<string, unknown>} state - The state object containing configuration settings.
|
|
39
|
-
*/
|
|
40
|
-
constructor(client: ClientBase, runtime: IAgentRuntime, state: Record<string, unknown>);
|
|
41
|
-
/**
|
|
42
|
-
* Asynchronously starts the process of handling X interactions on a loop.
|
|
43
|
-
* Uses the X_ENGAGEMENT_INTERVAL setting.
|
|
44
|
-
*/
|
|
45
|
-
start(): Promise<void>;
|
|
46
|
-
/**
|
|
47
|
-
* Stops the X interaction client
|
|
48
|
-
*/
|
|
49
|
-
stop(): Promise<void>;
|
|
50
|
-
/**
|
|
51
|
-
* Asynchronously handles X interactions by checking for mentions and target user posts.
|
|
52
|
-
*/
|
|
53
|
-
handleXInteractions(): Promise<void>;
|
|
54
|
-
/**
|
|
55
|
-
* Handle mentions and replies
|
|
56
|
-
*/
|
|
57
|
-
private handleMentions;
|
|
58
|
-
/**
|
|
59
|
-
* Handle autonomous engagement with target users' posts
|
|
60
|
-
*/
|
|
61
|
-
private handleTargetUserPosts;
|
|
62
|
-
/**
|
|
63
|
-
* Process posts from target users for potential engagement
|
|
64
|
-
*/
|
|
65
|
-
private processTargetUserPosts;
|
|
66
|
-
/**
|
|
67
|
-
* Process timeline for engagement when wildcard is configured
|
|
68
|
-
*/
|
|
69
|
-
private processTimelineForEngagement;
|
|
70
|
-
/**
|
|
71
|
-
* Determine if the bot should engage with a specific post
|
|
72
|
-
*/
|
|
73
|
-
private shouldEngageWithPost;
|
|
74
|
-
/**
|
|
75
|
-
* Ensure post context exists (world, room, entity)
|
|
76
|
-
*/
|
|
77
|
-
private ensurePostContext;
|
|
78
|
-
/**
|
|
79
|
-
* Engage with a post by generating and sending a reply
|
|
80
|
-
*/
|
|
81
|
-
private engageWithPost;
|
|
82
|
-
/**
|
|
83
|
-
* Processes all incoming posts that mention the bot.
|
|
84
|
-
* For each new post:
|
|
85
|
-
* - Ensures world, room, and connection exist
|
|
86
|
-
* - Saves the post as memory
|
|
87
|
-
* - Emits thread-related events (THREAD_CREATED / THREAD_UPDATED)
|
|
88
|
-
* - Delegates post content to `handlePost` for reply generation
|
|
89
|
-
*/
|
|
90
|
-
processMentionPosts(mentionCandidates: ClientPost[]): Promise<void>;
|
|
91
|
-
/**
|
|
92
|
-
* Handles X interactions such as likes, reposts, and quotes.
|
|
93
|
-
* For each interaction:
|
|
94
|
-
* - Creates a memory object
|
|
95
|
-
* - Emits platform-specific events (LIKE_RECEIVED, REPOST_RECEIVED, QUOTE_RECEIVED)
|
|
96
|
-
* - Emits a generic REACTION_RECEIVED event with metadata
|
|
97
|
-
*/
|
|
98
|
-
handleInteraction(interaction: XInteractionPayload): Promise<void>;
|
|
99
|
-
/**
|
|
100
|
-
* Creates a memory object for a given X interaction.
|
|
101
|
-
*
|
|
102
|
-
* @param {string} type - The type of interaction (e.g., 'like', 'repost', 'quote').
|
|
103
|
-
* @param {string} id - The unique identifier for the interaction.
|
|
104
|
-
* @param {string} userId - The ID of the user who initiated the interaction.
|
|
105
|
-
* @param {string} conversationId - The ID of the conversation context.
|
|
106
|
-
* @returns {XInteractionMemory} The constructed memory object.
|
|
107
|
-
*/
|
|
108
|
-
createMemoryObject(type: string, id: string, userId: string, conversationId: string): XInteractionMemory;
|
|
109
|
-
/**
|
|
110
|
-
* Asynchronously handles a post by generating a response and sending it.
|
|
111
|
-
* This method processes the post content, determines if a response is needed,
|
|
112
|
-
* generates appropriate response text, and sends the post reply.
|
|
113
|
-
*
|
|
114
|
-
* @param {object} params - The parameters object containing the post, message, and thread.
|
|
115
|
-
* @param {Post} params.post - The post object to handle.
|
|
116
|
-
* @param {Memory} params.message - The memory object associated with the post.
|
|
117
|
-
* @param {Post[]} params.thread - The array of posts in the thread.
|
|
118
|
-
* @returns {object} - An object containing the text of the response and any relevant actions.
|
|
119
|
-
*/
|
|
120
|
-
handlePost({ post, message, thread, }: {
|
|
121
|
-
post: ClientPost;
|
|
122
|
-
message: Memory;
|
|
123
|
-
thread: ClientPost[];
|
|
124
|
-
}): Promise<{
|
|
125
|
-
text: string;
|
|
126
|
-
actions: string[];
|
|
127
|
-
}>;
|
|
128
|
-
}
|
|
129
|
-
//# sourceMappingURL=interactions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interactions.d.ts","sourceRoot":"","sources":["../interactions.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,aAAa,EAElB,KAAK,MAAM,EAKZ,MAAM,eAAe,CAAC;AAKvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEzC,OAAO,KAAK,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEzD;;;;GAIG;AACH;;;;GAIG;AACH,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,2CAA2C,CAAC;AACnD,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EAKpB,MAAM,SAAS,CAAC;AAMjB,OAAO,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,CAAC;AAE3D;;;;;;;GAOG;AACH,qBAAa,kBAAkB;IAC7B,MAAM,EAAE,UAAU,CAAC;IACnB,OAAO,EAAE,aAAa,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,QAAQ,CAAU;IAC1B,OAAO,CAAC,KAAK,CAA0B;IACvC,OAAO,CAAC,SAAS,CAAkB;IAEnC;;;;;;OAMG;gBACS,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAmBtF;;;OAGG;IACG,KAAK;IA2BX;;OAEG;IACG,IAAI;IAKV;;OAEG;IACG,mBAAmB;IAmCzB;;OAEG;YACW,cAAc;IAgC5B;;OAEG;YACW,qBAAqB;IAiDnC;;OAEG;YACW,sBAAsB;IAsDpC;;OAEG;YACW,4BAA4B;IA4B1C;;OAEG;YACW,oBAAoB;IA8DlC;;OAEG;YACW,iBAAiB;IAsD/B;;OAEG;YACW,cAAc;IAsC5B;;;;;;;OAOG;IACG,mBAAmB,CAAC,iBAAiB,EAAE,UAAU,EAAE;IAkNzD;;;;;;OAMG;IACG,iBAAiB,CAAC,WAAW,EAAE,mBAAmB;IAmGxD;;;;;;;;OAQG;IACH,kBAAkB,CAChB,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,MAAM,GACrB,kBAAkB;IAcrB;;;;;;;;;;OAUG;IACG,UAAU,CAAC,EACf,IAAI,EACJ,OAAO,EACP,MAAM,GACP,EAAE;QACD,IAAI,EAAE,UAAU,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,UAAU,EAAE,CAAC;KACtB;;;;CA6GF"}
|
package/dist/models/grok.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type GenerateTextParams, type IAgentRuntime, type TextEmbeddingParams, type TextStreamResult } from "@elizaos/core";
|
|
2
|
-
export declare function handleTextSmall(runtime: IAgentRuntime, params: GenerateTextParams): Promise<string | TextStreamResult>;
|
|
3
|
-
export declare function handleTextLarge(runtime: IAgentRuntime, params: GenerateTextParams): Promise<string | TextStreamResult>;
|
|
4
|
-
export declare function handleTextEmbedding(runtime: IAgentRuntime, params: TextEmbeddingParams | string | null): Promise<number[]>;
|
|
5
|
-
export declare function listModels(runtime: IAgentRuntime): Promise<Record<string, unknown>[]>;
|
|
6
|
-
export declare function isGrokConfigured(runtime: IAgentRuntime): boolean;
|
|
7
|
-
//# sourceMappingURL=grok.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grok.d.ts","sourceRoot":"","sources":["../../models/grok.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAElB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACtB,MAAM,eAAe,CAAC;AAqMvB,wBAAsB,eAAe,CACnC,OAAO,EAAE,aAAa,EACtB,MAAM,EAAE,kBAAkB,GACzB,OAAO,CAAC,MAAM,GAAG,gBAAgB,CAAC,CAIpC;AAED,wBAAsB,eAAe,CACnC,OAAO,EAAE,aAAa,EACtB,MAAM,EAAE,kBAAkB,GACzB,OAAO,CAAC,MAAM,GAAG,gBAAgB,CAAC,CAIpC;AAED,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,aAAa,EACtB,MAAM,EAAE,mBAAmB,GAAG,MAAM,GAAG,IAAI,GAC1C,OAAO,CAAC,MAAM,EAAE,CAAC,CAWnB;AAED,wBAAsB,UAAU,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,CAc3F;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAEhE"}
|
package/dist/node/index.d.ts
DELETED