@elizaos/api-client 1.4.2 → 1.4.3-alpha.0
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/api-client/src/client.d.ts +25 -0
- package/dist/api-client/src/client.d.ts.map +1 -0
- package/dist/api-client/src/index.d.ts +20 -0
- package/dist/api-client/src/index.d.ts.map +1 -0
- package/dist/api-client/src/lib/base-client.d.ts +31 -0
- package/dist/api-client/src/lib/base-client.d.ts.map +1 -0
- package/dist/api-client/src/services/agents.d.ts +107 -0
- package/dist/api-client/src/services/agents.d.ts.map +1 -0
- package/dist/api-client/src/services/audio.d.ts +48 -0
- package/dist/api-client/src/services/audio.d.ts.map +1 -0
- package/dist/api-client/src/services/media.d.ts +14 -0
- package/dist/api-client/src/services/media.d.ts.map +1 -0
- package/dist/api-client/src/services/memory.d.ts +107 -0
- package/dist/api-client/src/services/memory.d.ts.map +1 -0
- package/dist/api-client/src/services/messaging.d.ts +164 -0
- package/dist/api-client/src/services/messaging.d.ts.map +1 -0
- package/dist/api-client/src/services/server.d.ts +47 -0
- package/dist/api-client/src/services/server.d.ts.map +1 -0
- package/dist/api-client/src/services/sessions.d.ts +52 -0
- package/dist/api-client/src/services/sessions.d.ts.map +1 -0
- package/dist/api-client/src/services/system.d.ts +56 -0
- package/dist/api-client/src/services/system.d.ts.map +1 -0
- package/dist/api-client/src/types/agents.d.ts +67 -0
- package/dist/api-client/src/types/agents.d.ts.map +1 -0
- package/dist/api-client/src/types/audio.d.ts +42 -0
- package/dist/api-client/src/types/audio.d.ts.map +1 -0
- package/dist/api-client/src/types/base.d.ts +30 -0
- package/dist/api-client/src/types/base.d.ts.map +1 -0
- package/dist/api-client/src/types/media.d.ts +21 -0
- package/dist/api-client/src/types/media.d.ts.map +1 -0
- package/dist/api-client/src/types/memory.d.ts +43 -0
- package/dist/api-client/src/types/memory.d.ts.map +1 -0
- package/dist/api-client/src/types/messaging.d.ts +186 -0
- package/dist/api-client/src/types/messaging.d.ts.map +1 -0
- package/dist/api-client/src/types/server.d.ts +44 -0
- package/dist/api-client/src/types/server.d.ts.map +1 -0
- package/dist/api-client/src/types/sessions.d.ts +134 -0
- package/dist/api-client/src/types/sessions.d.ts.map +1 -0
- package/dist/api-client/src/types/system.d.ts +16 -0
- package/dist/api-client/src/types/system.d.ts.map +1 -0
- package/dist/core/src/actions.d.ts +23 -0
- package/dist/core/src/actions.d.ts.map +1 -0
- package/dist/core/src/database.d.ts +481 -0
- package/dist/core/src/database.d.ts.map +1 -0
- package/dist/core/src/entities.d.ts +49 -0
- package/dist/core/src/entities.d.ts.map +1 -0
- package/dist/core/src/index.d.ts +27 -0
- package/dist/core/src/index.d.ts.map +1 -0
- package/dist/core/src/logger.d.ts +47 -0
- package/dist/core/src/logger.d.ts.map +1 -0
- package/dist/core/src/prompts.d.ts +8 -0
- package/dist/core/src/prompts.d.ts.map +1 -0
- package/dist/core/src/roles.d.ts +30 -0
- package/dist/core/src/roles.d.ts.map +1 -0
- package/dist/core/src/runtime.d.ts +328 -0
- package/dist/core/src/runtime.d.ts.map +1 -0
- package/dist/core/src/schemas/character.d.ts +228 -0
- package/dist/core/src/schemas/character.d.ts.map +1 -0
- package/dist/core/src/search.d.ts +317 -0
- package/dist/core/src/search.d.ts.map +1 -0
- package/dist/core/src/sentry/instrument.d.ts +12 -0
- package/dist/core/src/sentry/instrument.d.ts.map +1 -0
- package/dist/core/src/services.d.ts +49 -0
- package/dist/core/src/services.d.ts.map +1 -0
- package/dist/core/src/settings.d.ts +87 -0
- package/dist/core/src/settings.d.ts.map +1 -0
- package/dist/core/src/types/agent.d.ts +98 -0
- package/dist/core/src/types/agent.d.ts.map +1 -0
- package/dist/core/src/types/browser.d.ts +127 -0
- package/dist/core/src/types/browser.d.ts.map +1 -0
- package/dist/core/src/types/components.d.ts +135 -0
- package/dist/core/src/types/components.d.ts.map +1 -0
- package/dist/core/src/types/database.d.ts +278 -0
- package/dist/core/src/types/database.d.ts.map +1 -0
- package/dist/core/src/types/email.d.ts +143 -0
- package/dist/core/src/types/email.d.ts.map +1 -0
- package/dist/core/src/types/environment.d.ts +109 -0
- package/dist/core/src/types/environment.d.ts.map +1 -0
- package/dist/core/src/types/events.d.ts +207 -0
- package/dist/core/src/types/events.d.ts.map +1 -0
- package/dist/core/src/types/index.d.ts +30 -0
- package/dist/core/src/types/index.d.ts.map +1 -0
- package/dist/core/src/types/knowledge.d.ts +60 -0
- package/dist/core/src/types/knowledge.d.ts.map +1 -0
- package/dist/core/src/types/lp.d.ts +115 -0
- package/dist/core/src/types/lp.d.ts.map +1 -0
- package/dist/core/src/types/memory.d.ts +165 -0
- package/dist/core/src/types/memory.d.ts.map +1 -0
- package/dist/core/src/types/message.d.ts +202 -0
- package/dist/core/src/types/message.d.ts.map +1 -0
- package/dist/core/src/types/messaging.d.ts +45 -0
- package/dist/core/src/types/messaging.d.ts.map +1 -0
- package/dist/core/src/types/model.d.ts +319 -0
- package/dist/core/src/types/model.d.ts.map +1 -0
- package/dist/core/src/types/pdf.d.ts +68 -0
- package/dist/core/src/types/pdf.d.ts.map +1 -0
- package/dist/core/src/types/plugin.d.ts +64 -0
- package/dist/core/src/types/plugin.d.ts.map +1 -0
- package/dist/core/src/types/post.d.ts +242 -0
- package/dist/core/src/types/post.d.ts.map +1 -0
- package/dist/core/src/types/primitives.d.ts +72 -0
- package/dist/core/src/types/primitives.d.ts.map +1 -0
- package/dist/core/src/types/runtime.d.ts +106 -0
- package/dist/core/src/types/runtime.d.ts.map +1 -0
- package/dist/core/src/types/service.d.ts +147 -0
- package/dist/core/src/types/service.d.ts.map +1 -0
- package/dist/core/src/types/settings.d.ts +30 -0
- package/dist/core/src/types/settings.d.ts.map +1 -0
- package/dist/core/src/types/state.d.ts +59 -0
- package/dist/core/src/types/state.d.ts.map +1 -0
- package/dist/core/src/types/task.d.ts +68 -0
- package/dist/core/src/types/task.d.ts.map +1 -0
- package/dist/core/src/types/tee.d.ts +97 -0
- package/dist/core/src/types/tee.d.ts.map +1 -0
- package/dist/core/src/types/testing.d.ts +29 -0
- package/dist/core/src/types/testing.d.ts.map +1 -0
- package/dist/core/src/types/token.d.ts +73 -0
- package/dist/core/src/types/token.d.ts.map +1 -0
- package/dist/core/src/types/transcription.d.ts +108 -0
- package/dist/core/src/types/transcription.d.ts.map +1 -0
- package/dist/core/src/types/video.d.ts +93 -0
- package/dist/core/src/types/video.d.ts.map +1 -0
- package/dist/core/src/types/wallet.d.ts +49 -0
- package/dist/core/src/types/wallet.d.ts.map +1 -0
- package/dist/core/src/types/web-search.d.ts +112 -0
- package/dist/core/src/types/web-search.d.ts.map +1 -0
- package/dist/core/src/utils/buffer.d.ts +105 -0
- package/dist/core/src/utils/buffer.d.ts.map +1 -0
- package/dist/core/src/utils/environment.d.ts +106 -0
- package/dist/core/src/utils/environment.d.ts.map +1 -0
- package/dist/core/src/utils/server-health.d.ts +23 -0
- package/dist/core/src/utils/server-health.d.ts.map +1 -0
- package/dist/core/src/utils.d.ts +177 -0
- package/dist/core/src/utils.d.ts.map +1 -0
- package/dist/index.d.ts +1 -1102
- package/dist/index.js +144 -449
- package/dist/index.js.map +19 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +5 -6
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { Character, IAgentRuntime, OnboardingConfig, Setting, World, WorldSettings } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a Setting object from a configSetting object by omitting the 'value' property.
|
|
4
|
+
*
|
|
5
|
+
* @param {Omit<Setting, 'value'>} configSetting - The configSetting object to create the Setting from.
|
|
6
|
+
* @returns {Setting} A new Setting object created from the provided configSetting object.
|
|
7
|
+
*/
|
|
8
|
+
export declare function createSettingFromConfig(configSetting: Omit<Setting, 'value'>): Setting;
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves the salt based on env variable SECRET_SALT
|
|
11
|
+
*
|
|
12
|
+
* @returns {string} The salt for the agent.
|
|
13
|
+
*/
|
|
14
|
+
export declare function getSalt(): string;
|
|
15
|
+
/**
|
|
16
|
+
* Common encryption function for string values
|
|
17
|
+
* @param {string} value - The string value to encrypt
|
|
18
|
+
* @param {string} salt - The salt to use for encryption
|
|
19
|
+
* @returns {string} - The encrypted value in 'iv:encrypted' format
|
|
20
|
+
*/
|
|
21
|
+
export declare function encryptStringValue(value: string, salt: string): string;
|
|
22
|
+
/**
|
|
23
|
+
* Common decryption function for string values
|
|
24
|
+
* @param {string} value - The encrypted value in 'iv:encrypted' format
|
|
25
|
+
* @param {string} salt - The salt to use for decryption
|
|
26
|
+
* @returns {string} - The decrypted string value
|
|
27
|
+
*/
|
|
28
|
+
export declare function decryptStringValue(value: string, salt: string): string;
|
|
29
|
+
/**
|
|
30
|
+
* Applies salt to the value of a setting
|
|
31
|
+
* Only applies to secret settings with string values
|
|
32
|
+
*/
|
|
33
|
+
export declare function saltSettingValue(setting: Setting, salt: string): Setting;
|
|
34
|
+
/**
|
|
35
|
+
* Removes salt from the value of a setting
|
|
36
|
+
* Only applies to secret settings with string values
|
|
37
|
+
*/
|
|
38
|
+
export declare function unsaltSettingValue(setting: Setting, salt: string): Setting;
|
|
39
|
+
/**
|
|
40
|
+
* Applies salt to all settings in a WorldSettings object
|
|
41
|
+
*/
|
|
42
|
+
export declare function saltWorldSettings(worldSettings: WorldSettings, salt: string): WorldSettings;
|
|
43
|
+
/**
|
|
44
|
+
* Removes salt from all settings in a WorldSettings object
|
|
45
|
+
*/
|
|
46
|
+
export declare function unsaltWorldSettings(worldSettings: WorldSettings, salt: string): WorldSettings;
|
|
47
|
+
/**
|
|
48
|
+
* Updates settings state in world metadata
|
|
49
|
+
*/
|
|
50
|
+
export declare function updateWorldSettings(runtime: IAgentRuntime, serverId: string, worldSettings: WorldSettings): Promise<boolean>;
|
|
51
|
+
/**
|
|
52
|
+
* Gets settings state from world metadata
|
|
53
|
+
*/
|
|
54
|
+
export declare function getWorldSettings(runtime: IAgentRuntime, serverId: string): Promise<WorldSettings | null>;
|
|
55
|
+
/**
|
|
56
|
+
* Initializes settings configuration for a server
|
|
57
|
+
*/
|
|
58
|
+
export declare function initializeOnboarding(runtime: IAgentRuntime, world: World, config: OnboardingConfig): Promise<WorldSettings | null>;
|
|
59
|
+
/**
|
|
60
|
+
* Encrypts sensitive data in a Character object
|
|
61
|
+
* @param {Character} character - The character object to encrypt secrets for
|
|
62
|
+
* @returns {Character} - A copy of the character with encrypted secrets
|
|
63
|
+
*/
|
|
64
|
+
export declare function encryptedCharacter(character: Character): Character;
|
|
65
|
+
/**
|
|
66
|
+
* Decrypts sensitive data in a Character object
|
|
67
|
+
* @param {Character} character - The character object with encrypted secrets
|
|
68
|
+
* @param {IAgentRuntime} runtime - The runtime information needed for salt generation
|
|
69
|
+
* @returns {Character} - A copy of the character with decrypted secrets
|
|
70
|
+
*/
|
|
71
|
+
export declare function decryptedCharacter(character: Character, _runtime: IAgentRuntime): Character;
|
|
72
|
+
/**
|
|
73
|
+
* Helper function to encrypt all string values in an object
|
|
74
|
+
* @param {Record<string, any>} obj - Object with values to encrypt
|
|
75
|
+
* @param {string} salt - The salt to use for encryption
|
|
76
|
+
* @returns {Record<string, any>} - Object with encrypted values
|
|
77
|
+
*/
|
|
78
|
+
export declare function encryptObjectValues(obj: Record<string, any>, salt: string): Record<string, any>;
|
|
79
|
+
/**
|
|
80
|
+
* Helper function to decrypt all string values in an object
|
|
81
|
+
* @param {Record<string, any>} obj - Object with encrypted values
|
|
82
|
+
* @param {string} salt - The salt to use for decryption
|
|
83
|
+
* @returns {Record<string, any>} - Object with decrypted values
|
|
84
|
+
*/
|
|
85
|
+
export declare function decryptObjectValues(obj: Record<string, any>, salt: string): Record<string, any>;
|
|
86
|
+
export { decryptStringValue as decryptSecret };
|
|
87
|
+
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../core/src/settings.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,SAAS,E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M,EAAE,gBAAgB,GACvB,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAgC/B;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,CAgBlE;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,GAAG,SAAS,CAgB3F;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAY/F;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAY/F;AAED,OAAO,EAAE,kBAAkB,IAAI,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { DirectoryItem } from './knowledge';
|
|
2
|
+
import type { Content, UUID } from './primitives';
|
|
3
|
+
import type { State } from './state';
|
|
4
|
+
/**
|
|
5
|
+
* Example message for demonstration
|
|
6
|
+
*/
|
|
7
|
+
export interface MessageExample {
|
|
8
|
+
/** Associated user */
|
|
9
|
+
name: string;
|
|
10
|
+
/** Message content */
|
|
11
|
+
content: Content;
|
|
12
|
+
}
|
|
13
|
+
export type TemplateType = string | ((options: {
|
|
14
|
+
state: State | {
|
|
15
|
+
[key: string]: string;
|
|
16
|
+
};
|
|
17
|
+
}) => string);
|
|
18
|
+
/**
|
|
19
|
+
* Configuration for an agent's character, defining its personality, knowledge, and capabilities.
|
|
20
|
+
* This is a central piece of an agent's definition, used by the `AgentRuntime` to initialize and operate the agent.
|
|
21
|
+
* It includes:
|
|
22
|
+
* - `id`: Optional unique identifier for the character.
|
|
23
|
+
* - `name`, `username`: Identifying names for the character.
|
|
24
|
+
* - `system`: A system prompt that guides the agent's overall behavior.
|
|
25
|
+
* - `templates`: A map of prompt templates for various situations (e.g., message generation, summarization).
|
|
26
|
+
* - `bio`: A textual biography or description of the character.
|
|
27
|
+
* - `messageExamples`, `postExamples`: Examples of how the character communicates.
|
|
28
|
+
* - `topics`, `adjectives`: Keywords describing the character's knowledge areas and traits.
|
|
29
|
+
* - `knowledge`: Paths to knowledge files or directories to be loaded into the agent's memory.
|
|
30
|
+
* - `plugins`: A list of plugin names to be loaded for this character.
|
|
31
|
+
* - `settings`, `secrets`: Configuration key-value pairs, with secrets being handled more securely.
|
|
32
|
+
* - `style`: Guidelines for the character's writing style in different contexts (chat, post).
|
|
33
|
+
*/
|
|
34
|
+
export interface Character {
|
|
35
|
+
/** Optional unique identifier */
|
|
36
|
+
id?: UUID;
|
|
37
|
+
/** Character name */
|
|
38
|
+
name: string;
|
|
39
|
+
/** Optional username */
|
|
40
|
+
username?: string;
|
|
41
|
+
/** Optional system prompt */
|
|
42
|
+
system?: string;
|
|
43
|
+
/** Optional prompt templates */
|
|
44
|
+
templates?: {
|
|
45
|
+
[key: string]: TemplateType;
|
|
46
|
+
};
|
|
47
|
+
/** Character biography */
|
|
48
|
+
bio: string | string[];
|
|
49
|
+
/** Example messages */
|
|
50
|
+
messageExamples?: MessageExample[][];
|
|
51
|
+
/** Example posts */
|
|
52
|
+
postExamples?: string[];
|
|
53
|
+
/** Known topics */
|
|
54
|
+
topics?: string[];
|
|
55
|
+
/** Character traits */
|
|
56
|
+
adjectives?: string[];
|
|
57
|
+
/** Optional knowledge base */
|
|
58
|
+
knowledge?: (string | {
|
|
59
|
+
path: string;
|
|
60
|
+
shared?: boolean;
|
|
61
|
+
} | DirectoryItem)[];
|
|
62
|
+
/** Available plugins */
|
|
63
|
+
plugins?: string[];
|
|
64
|
+
/** Optional configuration */
|
|
65
|
+
settings?: {
|
|
66
|
+
[key: string]: string | boolean | number | Record<string, any>;
|
|
67
|
+
};
|
|
68
|
+
/** Optional secrets */
|
|
69
|
+
secrets?: {
|
|
70
|
+
[key: string]: string | boolean | number;
|
|
71
|
+
};
|
|
72
|
+
/** Writing style guides */
|
|
73
|
+
style?: {
|
|
74
|
+
all?: string[];
|
|
75
|
+
chat?: string[];
|
|
76
|
+
post?: string[];
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
export declare enum AgentStatus {
|
|
80
|
+
ACTIVE = "active",
|
|
81
|
+
INACTIVE = "inactive"
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Represents an operational agent, extending the `Character` definition with runtime status and timestamps.
|
|
85
|
+
* While `Character` defines the blueprint, `Agent` represents an instantiated and potentially running version.
|
|
86
|
+
* It includes:
|
|
87
|
+
* - `enabled`: A boolean indicating if the agent is currently active or disabled.
|
|
88
|
+
* - `status`: The current operational status, typically `AgentStatus.ACTIVE` or `AgentStatus.INACTIVE`.
|
|
89
|
+
* - `createdAt`, `updatedAt`: Timestamps for when the agent record was created and last updated in the database.
|
|
90
|
+
* This interface is primarily used by the `IDatabaseAdapter` for agent management.
|
|
91
|
+
*/
|
|
92
|
+
export interface Agent extends Character {
|
|
93
|
+
enabled?: boolean;
|
|
94
|
+
status?: AgentStatus;
|
|
95
|
+
createdAt: number;
|
|
96
|
+
updatedAt: number;
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../../../core/src/types/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,sBAAsB;IACtB,IAAI,EAAE,MAAM,CAAC;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EAAE,GAAG,CAAC,CAAC;KAChE,CAAC;IAEF,uBAAuB;IACvB,OAAO,CAAC,EAAE;QACR,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;KAC1C,CAAC;IAEF,2BAA2B;IAC3B,KAAK,CAAC,EAAE;QACN,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;KACjB,CAAC;CACH;AAED,oBAAY,WAAW;IACrB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,KAAM,SAAQ,SAAS;IACtC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { Service } from './service';
|
|
2
|
+
export interface BrowserNavigationOptions {
|
|
3
|
+
timeout?: number;
|
|
4
|
+
waitUntil?: 'load' | 'domcontentloaded' | 'networkidle0' | 'networkidle2';
|
|
5
|
+
viewport?: {
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
};
|
|
9
|
+
userAgent?: string;
|
|
10
|
+
headers?: Record<string, string>;
|
|
11
|
+
}
|
|
12
|
+
export interface ScreenshotOptions {
|
|
13
|
+
fullPage?: boolean;
|
|
14
|
+
clip?: {
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
};
|
|
20
|
+
format?: 'png' | 'jpeg' | 'webp';
|
|
21
|
+
quality?: number;
|
|
22
|
+
omitBackground?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface ElementSelector {
|
|
25
|
+
selector: string;
|
|
26
|
+
text?: string;
|
|
27
|
+
timeout?: number;
|
|
28
|
+
}
|
|
29
|
+
export interface ExtractedContent {
|
|
30
|
+
text: string;
|
|
31
|
+
html: string;
|
|
32
|
+
links: Array<{
|
|
33
|
+
url: string;
|
|
34
|
+
text: string;
|
|
35
|
+
}>;
|
|
36
|
+
images: Array<{
|
|
37
|
+
src: string;
|
|
38
|
+
alt?: string;
|
|
39
|
+
}>;
|
|
40
|
+
title?: string;
|
|
41
|
+
metadata?: Record<string, string>;
|
|
42
|
+
}
|
|
43
|
+
export interface ClickOptions {
|
|
44
|
+
timeout?: number;
|
|
45
|
+
force?: boolean;
|
|
46
|
+
waitForNavigation?: boolean;
|
|
47
|
+
}
|
|
48
|
+
export interface TypeOptions {
|
|
49
|
+
delay?: number;
|
|
50
|
+
timeout?: number;
|
|
51
|
+
clear?: boolean;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Interface for browser automation services
|
|
55
|
+
*/
|
|
56
|
+
export declare abstract class IBrowserService extends Service {
|
|
57
|
+
static readonly serviceType: "browser";
|
|
58
|
+
readonly capabilityDescription = "Web browser automation and scraping capabilities";
|
|
59
|
+
/**
|
|
60
|
+
* Navigate to a URL
|
|
61
|
+
* @param url - URL to navigate to
|
|
62
|
+
* @param options - Navigation options
|
|
63
|
+
* @returns Promise resolving when navigation completes
|
|
64
|
+
*/
|
|
65
|
+
abstract navigate(url: string, options?: BrowserNavigationOptions): Promise<void>;
|
|
66
|
+
/**
|
|
67
|
+
* Take a screenshot of the current page
|
|
68
|
+
* @param options - Screenshot options
|
|
69
|
+
* @returns Promise resolving to screenshot buffer
|
|
70
|
+
*/
|
|
71
|
+
abstract screenshot(options?: ScreenshotOptions): Promise<Buffer>;
|
|
72
|
+
/**
|
|
73
|
+
* Extract text and content from the current page
|
|
74
|
+
* @param selector - Optional CSS selector to extract from specific element
|
|
75
|
+
* @returns Promise resolving to extracted content
|
|
76
|
+
*/
|
|
77
|
+
abstract extractContent(selector?: string): Promise<ExtractedContent>;
|
|
78
|
+
/**
|
|
79
|
+
* Click on an element
|
|
80
|
+
* @param selector - CSS selector or element selector
|
|
81
|
+
* @param options - Click options
|
|
82
|
+
* @returns Promise resolving when click completes
|
|
83
|
+
*/
|
|
84
|
+
abstract click(selector: string | ElementSelector, options?: ClickOptions): Promise<void>;
|
|
85
|
+
/**
|
|
86
|
+
* Type text into an input field
|
|
87
|
+
* @param selector - CSS selector for input field
|
|
88
|
+
* @param text - Text to type
|
|
89
|
+
* @param options - Typing options
|
|
90
|
+
* @returns Promise resolving when typing completes
|
|
91
|
+
*/
|
|
92
|
+
abstract type(selector: string, text: string, options?: TypeOptions): Promise<void>;
|
|
93
|
+
/**
|
|
94
|
+
* Wait for an element to appear
|
|
95
|
+
* @param selector - CSS selector or element selector
|
|
96
|
+
* @returns Promise resolving when element is found
|
|
97
|
+
*/
|
|
98
|
+
abstract waitForElement(selector: string | ElementSelector): Promise<void>;
|
|
99
|
+
/**
|
|
100
|
+
* Evaluate JavaScript in the browser context
|
|
101
|
+
* @param script - JavaScript code to evaluate
|
|
102
|
+
* @param args - Arguments to pass to the script
|
|
103
|
+
* @returns Promise resolving to evaluation result
|
|
104
|
+
*/
|
|
105
|
+
abstract evaluate<T = any>(script: string, ...args: any[]): Promise<T>;
|
|
106
|
+
/**
|
|
107
|
+
* Get the current page URL
|
|
108
|
+
* @returns Promise resolving to current URL
|
|
109
|
+
*/
|
|
110
|
+
abstract getCurrentUrl(): Promise<string>;
|
|
111
|
+
/**
|
|
112
|
+
* Go back in browser history
|
|
113
|
+
* @returns Promise resolving when navigation completes
|
|
114
|
+
*/
|
|
115
|
+
abstract goBack(): Promise<void>;
|
|
116
|
+
/**
|
|
117
|
+
* Go forward in browser history
|
|
118
|
+
* @returns Promise resolving when navigation completes
|
|
119
|
+
*/
|
|
120
|
+
abstract goForward(): Promise<void>;
|
|
121
|
+
/**
|
|
122
|
+
* Refresh the current page
|
|
123
|
+
* @returns Promise resolving when refresh completes
|
|
124
|
+
*/
|
|
125
|
+
abstract refresh(): Promise<void>;
|
|
126
|
+
}
|
|
127
|
+
//# sourceMappingURL=browser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../../../../core/src/types/browser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,MAAM,WAAW,CAAC;AAEjD,MAAM,WAAW,wBAAwB;IACvC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,GAAG,kBAAkB,GAAG,cAAc,GAAG,cAAc,CAAC;IAC1E,QAAQ,CAAC,EAAE;QACT,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE;QACL,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;QACV,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,KAAK,CAAC;QACX,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;KACd,CAAC,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CAAC;IAEnF;;;;OAIG;IACH,QAAQ,CAAC,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAE1E;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,CAAC,CAAC,GAAG,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC;IAEtE;;;OAGG;IACH,QAAQ,CAAC,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC;IAEzC;;;OAGG;IACH,QAAQ,CAAC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAEhC;;;OAGG;IACH,QAAQ,CAAC,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAEnC;;;OAGG;IACH,QAAQ,CAAC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAClC"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import type { Memory } from './memory';
|
|
2
|
+
import type { Content } from './primitives';
|
|
3
|
+
import type { IAgentRuntime } from './runtime';
|
|
4
|
+
import type { State } from './state';
|
|
5
|
+
/**
|
|
6
|
+
* Example content with associated user for demonstration purposes
|
|
7
|
+
*/
|
|
8
|
+
export interface ActionExample {
|
|
9
|
+
/** User associated with the example */
|
|
10
|
+
name: string;
|
|
11
|
+
/** Content of the example */
|
|
12
|
+
content: Content;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Callback function type for handlers
|
|
16
|
+
*/
|
|
17
|
+
export type HandlerCallback = (response: Content, files?: any) => Promise<Memory[]>;
|
|
18
|
+
/**
|
|
19
|
+
* Handler function type for processing messages
|
|
20
|
+
*/
|
|
21
|
+
export type Handler = (runtime: IAgentRuntime, message: Memory, state?: State, options?: {
|
|
22
|
+
[key: string]: unknown;
|
|
23
|
+
}, callback?: HandlerCallback, responses?: Memory[]) => Promise<ActionResult | void | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* Validator function type for actions/evaluators
|
|
26
|
+
*/
|
|
27
|
+
export type Validator = (runtime: IAgentRuntime, message: Memory, state?: State) => Promise<boolean>;
|
|
28
|
+
/**
|
|
29
|
+
* Represents an action the agent can perform
|
|
30
|
+
*/
|
|
31
|
+
export interface Action {
|
|
32
|
+
/** Similar action descriptions */
|
|
33
|
+
similes?: string[];
|
|
34
|
+
/** Detailed description */
|
|
35
|
+
description: string;
|
|
36
|
+
/** Example usages */
|
|
37
|
+
examples?: ActionExample[][];
|
|
38
|
+
/** Handler function */
|
|
39
|
+
handler: Handler;
|
|
40
|
+
/** Action name */
|
|
41
|
+
name: string;
|
|
42
|
+
/** Validation function */
|
|
43
|
+
validate: Validator;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Example for evaluating agent behavior
|
|
47
|
+
*/
|
|
48
|
+
export interface EvaluationExample {
|
|
49
|
+
/** Evaluation context */
|
|
50
|
+
prompt: string;
|
|
51
|
+
/** Example messages */
|
|
52
|
+
messages: Array<ActionExample>;
|
|
53
|
+
/** Expected outcome */
|
|
54
|
+
outcome: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Evaluator for assessing agent responses
|
|
58
|
+
*/
|
|
59
|
+
export interface Evaluator {
|
|
60
|
+
/** Whether to always run */
|
|
61
|
+
alwaysRun?: boolean;
|
|
62
|
+
/** Detailed description */
|
|
63
|
+
description: string;
|
|
64
|
+
/** Similar evaluator descriptions */
|
|
65
|
+
similes?: string[];
|
|
66
|
+
/** Example evaluations */
|
|
67
|
+
examples: EvaluationExample[];
|
|
68
|
+
/** Handler function */
|
|
69
|
+
handler: Handler;
|
|
70
|
+
/** Evaluator name */
|
|
71
|
+
name: string;
|
|
72
|
+
/** Validation function */
|
|
73
|
+
validate: Validator;
|
|
74
|
+
}
|
|
75
|
+
export interface ProviderResult {
|
|
76
|
+
values?: {
|
|
77
|
+
[key: string]: any;
|
|
78
|
+
};
|
|
79
|
+
data?: {
|
|
80
|
+
[key: string]: any;
|
|
81
|
+
};
|
|
82
|
+
text?: string;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Provider for external data/services
|
|
86
|
+
*/
|
|
87
|
+
export interface Provider {
|
|
88
|
+
/** Provider name */
|
|
89
|
+
name: string;
|
|
90
|
+
/** Description of the provider */
|
|
91
|
+
description?: string;
|
|
92
|
+
/** Whether the provider is dynamic */
|
|
93
|
+
dynamic?: boolean;
|
|
94
|
+
/** Position of the provider in the provider list, positive or negative */
|
|
95
|
+
position?: number;
|
|
96
|
+
/**
|
|
97
|
+
* Whether the provider is private
|
|
98
|
+
*
|
|
99
|
+
* Private providers are not displayed in the regular provider list, they have to be called explicitly
|
|
100
|
+
*/
|
|
101
|
+
private?: boolean;
|
|
102
|
+
/** Data retrieval function */
|
|
103
|
+
get: (runtime: IAgentRuntime, message: Memory, state: State) => Promise<ProviderResult>;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Result returned by an action after execution
|
|
107
|
+
* Used for action chaining and state management
|
|
108
|
+
*/
|
|
109
|
+
export interface ActionResult {
|
|
110
|
+
/** Optional text description of the result */
|
|
111
|
+
text?: string;
|
|
112
|
+
/** Values to merge into the state */
|
|
113
|
+
values?: Record<string, any>;
|
|
114
|
+
/** Data payload containing action-specific results */
|
|
115
|
+
data?: Record<string, any>;
|
|
116
|
+
/** Whether the action succeeded - defaults to true */
|
|
117
|
+
success: boolean;
|
|
118
|
+
/** Error information if the action failed */
|
|
119
|
+
error?: string | Error;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Context provided to actions during execution
|
|
123
|
+
* Allows actions to access previous results and update state
|
|
124
|
+
*/
|
|
125
|
+
export interface ActionContext {
|
|
126
|
+
/** Results from previously executed actions in this run */
|
|
127
|
+
previousResults: ActionResult[];
|
|
128
|
+
/** Get a specific previous result by action name */
|
|
129
|
+
getPreviousResult?: (actionName: string) => ActionResult | undefined;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Helper function to create ActionResult with proper defaults
|
|
133
|
+
*/
|
|
134
|
+
export declare function createActionResult(partial?: Partial<ActionResult>): ActionResult;
|
|
135
|
+
//# sourceMappingURL=components.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../../core/src/types/components.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IAEb,6BAA6B;IAC7B,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;AAEpF;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,CACpB,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,MAAM,EACf,KAAK,CAAC,EAAE,KAAK,EACb,OAAO,CAAC,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,EACpC,QAAQ,CAAC,EAAE,eAAe,EAC1B,SAAS,CAAC,EAAE,MAAM,EAAE,KACjB,OAAO,CAAC,YAAY,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,CACtB,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,MAAM,EACf,KAAK,CAAC,EAAE,KAAK,KACV,OAAO,CAAC,OAAO,CAAC,CAAC;AAEtB;;GAEG;AACH,MAAM,WAAW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