@agentic-eng/agent 0.1.0-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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 EASA Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,45 @@
1
+ # @agentic-eng/agent
2
+
3
+ > Core agent primitives and runtime for EASA — Easy Agent System Architecture.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @agentic-eng/agent
9
+ # or
10
+ pnpm add @agentic-eng/agent
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```typescript
16
+ import { Agent } from '@agentic-eng/agent';
17
+
18
+ const agent = new Agent({
19
+ name: 'my-agent',
20
+ description: 'An example agent',
21
+ });
22
+ ```
23
+
24
+ ## API
25
+
26
+ ### `Agent`
27
+
28
+ The core agent class.
29
+
30
+ #### Constructor
31
+
32
+ ```typescript
33
+ new Agent(config: AgentConfig)
34
+ ```
35
+
36
+ #### `AgentConfig`
37
+
38
+ | Property | Type | Required | Description |
39
+ | --- | --- | --- | --- |
40
+ | `name` | `string` | Yes | Unique name identifying the agent |
41
+ | `description` | `string` | No | Description of what the agent does |
42
+
43
+ ## License
44
+
45
+ [MIT](../../LICENSE)
package/dist/index.cjs ADDED
@@ -0,0 +1,18 @@
1
+ 'use strict';
2
+
3
+ // src/agent.ts
4
+ var Agent = class {
5
+ name;
6
+ description;
7
+ constructor(config) {
8
+ if (!config.name || config.name.trim().length === 0) {
9
+ throw new Error("Agent name is required and cannot be empty.");
10
+ }
11
+ this.name = config.name;
12
+ this.description = config.description;
13
+ }
14
+ };
15
+
16
+ exports.Agent = Agent;
17
+ //# sourceMappingURL=index.cjs.map
18
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/agent.ts"],"names":[],"mappings":";;;AAWO,IAAM,QAAN,MAAY;AAAA,EACR,IAAA;AAAA,EACA,WAAA;AAAA,EAET,YAAY,MAAA,EAAqB;AAC/B,IAAA,IAAI,CAAC,OAAO,IAAA,IAAQ,MAAA,CAAO,KAAK,IAAA,EAAK,CAAE,WAAW,CAAA,EAAG;AACnD,MAAA,MAAM,IAAI,MAAM,6CAA6C,CAAA;AAAA,IAC/D;AAEA,IAAA,IAAA,CAAK,OAAO,MAAA,CAAO,IAAA;AACnB,IAAA,IAAA,CAAK,cAAc,MAAA,CAAO,WAAA;AAAA,EAC5B;AACF","file":"index.cjs","sourcesContent":["export interface AgentConfig {\n /** Unique name identifying this agent. */\n name: string;\n\n /** Optional description of what this agent does. */\n description?: string;\n}\n\n/**\n * Core Agent class — the fundamental building block of EASA.\n */\nexport class Agent {\n readonly name: string;\n readonly description?: string;\n\n constructor(config: AgentConfig) {\n if (!config.name || config.name.trim().length === 0) {\n throw new Error('Agent name is required and cannot be empty.');\n }\n\n this.name = config.name;\n this.description = config.description;\n }\n}\n"]}
@@ -0,0 +1,16 @@
1
+ interface AgentConfig {
2
+ /** Unique name identifying this agent. */
3
+ name: string;
4
+ /** Optional description of what this agent does. */
5
+ description?: string;
6
+ }
7
+ /**
8
+ * Core Agent class — the fundamental building block of EASA.
9
+ */
10
+ declare class Agent {
11
+ readonly name: string;
12
+ readonly description?: string;
13
+ constructor(config: AgentConfig);
14
+ }
15
+
16
+ export { Agent, type AgentConfig };
@@ -0,0 +1,16 @@
1
+ interface AgentConfig {
2
+ /** Unique name identifying this agent. */
3
+ name: string;
4
+ /** Optional description of what this agent does. */
5
+ description?: string;
6
+ }
7
+ /**
8
+ * Core Agent class — the fundamental building block of EASA.
9
+ */
10
+ declare class Agent {
11
+ readonly name: string;
12
+ readonly description?: string;
13
+ constructor(config: AgentConfig);
14
+ }
15
+
16
+ export { Agent, type AgentConfig };
package/dist/index.js ADDED
@@ -0,0 +1,16 @@
1
+ // src/agent.ts
2
+ var Agent = class {
3
+ name;
4
+ description;
5
+ constructor(config) {
6
+ if (!config.name || config.name.trim().length === 0) {
7
+ throw new Error("Agent name is required and cannot be empty.");
8
+ }
9
+ this.name = config.name;
10
+ this.description = config.description;
11
+ }
12
+ };
13
+
14
+ export { Agent };
15
+ //# sourceMappingURL=index.js.map
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/agent.ts"],"names":[],"mappings":";AAWO,IAAM,QAAN,MAAY;AAAA,EACR,IAAA;AAAA,EACA,WAAA;AAAA,EAET,YAAY,MAAA,EAAqB;AAC/B,IAAA,IAAI,CAAC,OAAO,IAAA,IAAQ,MAAA,CAAO,KAAK,IAAA,EAAK,CAAE,WAAW,CAAA,EAAG;AACnD,MAAA,MAAM,IAAI,MAAM,6CAA6C,CAAA;AAAA,IAC/D;AAEA,IAAA,IAAA,CAAK,OAAO,MAAA,CAAO,IAAA;AACnB,IAAA,IAAA,CAAK,cAAc,MAAA,CAAO,WAAA;AAAA,EAC5B;AACF","file":"index.js","sourcesContent":["export interface AgentConfig {\n /** Unique name identifying this agent. */\n name: string;\n\n /** Optional description of what this agent does. */\n description?: string;\n}\n\n/**\n * Core Agent class — the fundamental building block of EASA.\n */\nexport class Agent {\n readonly name: string;\n readonly description?: string;\n\n constructor(config: AgentConfig) {\n if (!config.name || config.name.trim().length === 0) {\n throw new Error('Agent name is required and cannot be empty.');\n }\n\n this.name = config.name;\n this.description = config.description;\n }\n}\n"]}
package/package.json ADDED
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "@agentic-eng/agent",
3
+ "version": "0.1.0-alpha.0",
4
+ "description": "Core agent primitives and runtime for EASA — Easy Agent System Architecture.",
5
+ "keywords": [
6
+ "agent",
7
+ "ai",
8
+ "framework",
9
+ "typescript",
10
+ "llm"
11
+ ],
12
+ "license": "MIT",
13
+ "author": "EASA Contributors",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/easa-framework/easa.git",
17
+ "directory": "packages/agent"
18
+ },
19
+ "type": "module",
20
+ "main": "./dist/index.cjs",
21
+ "module": "./dist/index.js",
22
+ "types": "./dist/index.d.ts",
23
+ "exports": {
24
+ ".": {
25
+ "import": {
26
+ "types": "./dist/index.d.ts",
27
+ "default": "./dist/index.js"
28
+ },
29
+ "require": {
30
+ "types": "./dist/index.d.cts",
31
+ "default": "./dist/index.cjs"
32
+ }
33
+ }
34
+ },
35
+ "files": [
36
+ "dist",
37
+ "README.md",
38
+ "LICENSE"
39
+ ],
40
+ "sideEffects": false,
41
+ "engines": {
42
+ "node": ">=18.0.0"
43
+ },
44
+ "devDependencies": {
45
+ "tsup": "^8.0.0",
46
+ "typescript": "^5.4.0"
47
+ },
48
+ "publishConfig": {
49
+ "access": "public"
50
+ },
51
+ "scripts": {
52
+ "build": "tsup",
53
+ "dev": "tsup --watch",
54
+ "clean": "rm -rf dist *.tsbuildinfo",
55
+ "typecheck": "tsc --noEmit"
56
+ }
57
+ }