art-framework 0.4.13 → 0.4.14
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/README.md +27 -29
- package/dist/index.cjs +46 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +526 -8
- package/dist/index.d.ts +526 -8
- package/dist/index.js +46 -35
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# ✨ ART: Agentic Runtime Framework <img src="https://img.shields.io/badge/Version-v0.4.
|
|
1
|
+
# ✨ ART: Agentic Runtime Framework <img src="https://img.shields.io/badge/Version-v0.4.14-blue" alt="Version 0.4.14">
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
4
|
<img src="docs/art-logo.jpeg" alt="ART Framework Logo" width="200"/>
|
|
@@ -27,22 +27,25 @@ ART is architected around three core nodes that ensure your agents are productio
|
|
|
27
27
|
## Key Features
|
|
28
28
|
|
|
29
29
|
#### 🧠 Advanced Reasoning (PES Agent)
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
|
|
31
|
+
- **Structured Planning:** Decomposes user intent into a discrete `TodoList` with dependency mapping.
|
|
32
|
+
- **TAEF (Tool-Aware Execution Framework):** Strictly validates tool usage to eliminate hallucinations and ensure protocol adherence.
|
|
33
|
+
- **Dynamic Refinement:** Self-correcting plans that adapt in real-time based on tool outputs.
|
|
34
|
+
- **Synthesis Engine:** Aggregates task results into rich responses with UI metadata and citations.
|
|
34
35
|
|
|
35
36
|
#### 🛡️ Production Robustness
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
|
|
38
|
+
- **HITL V2 (Human-in-the-Loop):** Seamlessly pause execution for human approval with full state preservation and resumption.
|
|
39
|
+
- **Crash Recovery:** Automatic state hydration ensures agents resume exactly where they left off.
|
|
40
|
+
- **A2A (Agent-to-Agent) Delegation:** Coordinate complex workflows by delegating sub-tasks to specialized agents.
|
|
41
|
+
- **Step Output Table:** Persists all historical tool results for consistent cross-step data access.
|
|
40
42
|
|
|
41
43
|
#### 🔌 Universal Connectivity
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
|
|
45
|
+
- **Multi-Provider Support:** First-class support for Gemini (Thinking), Claude (Extended Thinking), GPT (Reasoning), DeepSeek, Groq, and local models via Ollama.
|
|
46
|
+
- **MCP (Model Context Protocol):** Dynamically discover and execute tools from any MCP-compliant server.
|
|
47
|
+
- **Pluggable Storage:** Integrated adapters for IndexedDB (Browser), Supabase (Backend), and In-Memory.
|
|
48
|
+
- **OAuth & Auth Strategies:** Built-in support for PKCE, Generic OAuth, and API key management.
|
|
46
49
|
|
|
47
50
|
## Installation
|
|
48
51
|
|
|
@@ -55,20 +58,15 @@ pnpm install art-framework
|
|
|
55
58
|
## Quick Start
|
|
56
59
|
|
|
57
60
|
```typescript
|
|
58
|
-
import {
|
|
59
|
-
createArtInstance,
|
|
60
|
-
PESAgent,
|
|
61
|
-
OpenAIAdapter,
|
|
62
|
-
CalculatorTool
|
|
63
|
-
} from 'art-framework';
|
|
61
|
+
import { createArtInstance, PESAgent, OpenAIAdapter, CalculatorTool } from 'art-framework';
|
|
64
62
|
|
|
65
63
|
const art = await createArtInstance({
|
|
66
64
|
storage: { type: 'indexedDB', dbName: 'AgentDB' },
|
|
67
65
|
providers: {
|
|
68
|
-
availableProviders: [{ name: 'openai', adapter: OpenAIAdapter }]
|
|
66
|
+
availableProviders: [{ name: 'openai', adapter: OpenAIAdapter }],
|
|
69
67
|
},
|
|
70
68
|
tools: [new CalculatorTool()],
|
|
71
|
-
agentCore: PESAgent // Default flagship agent
|
|
69
|
+
agentCore: PESAgent, // Default flagship agent
|
|
72
70
|
});
|
|
73
71
|
|
|
74
72
|
// Configure the thread (Where API keys live)
|
|
@@ -76,15 +74,15 @@ await art.stateManager.setThreadConfig('my-thread', {
|
|
|
76
74
|
providerConfig: {
|
|
77
75
|
providerName: 'openai',
|
|
78
76
|
modelId: 'gpt-4o',
|
|
79
|
-
adapterOptions: { apiKey: process.env.OPENAI_API_KEY }
|
|
77
|
+
adapterOptions: { apiKey: process.env.OPENAI_API_KEY },
|
|
80
78
|
},
|
|
81
|
-
enabledTools: ['CalculatorTool']
|
|
79
|
+
enabledTools: ['CalculatorTool'],
|
|
82
80
|
});
|
|
83
81
|
|
|
84
82
|
// Process a request
|
|
85
83
|
const result = await art.process({
|
|
86
84
|
query: 'Calculate the compound interest for $1000 at 5% over 10 years.',
|
|
87
|
-
threadId: 'my-thread'
|
|
85
|
+
threadId: 'my-thread',
|
|
88
86
|
});
|
|
89
87
|
|
|
90
88
|
console.log(result.response.content);
|
|
@@ -92,10 +90,10 @@ console.log(result.response.content);
|
|
|
92
90
|
|
|
93
91
|
## Documentation
|
|
94
92
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
93
|
+
- **[Concepts Guide](docs/concepts/pes-agent.md):** Deep dive into the PES Agent and Reactive Triad.
|
|
94
|
+
- **[How-To Guides](./docs/how-to):** Practical tutorials for [HITL](./docs/how-to/using-hitl-pausing.md), [MCP](./docs/concepts/mcp-system.md), and [Custom UI](./docs/how-to/connecting-your-ui.md).
|
|
95
|
+
- **[API Reference](https://inferq.github.io/ART/components/index.html):** Full technical documentation.
|
|
96
|
+
- **[Website](https://inferq.github.io/ART/):** Marketing site & Live Demos.
|
|
99
97
|
|
|
100
98
|
## Contributing
|
|
101
99
|
|
|
@@ -103,4 +101,4 @@ Contributions are welcome! Please refer to the [Contributing Guide](./CONTRIBUTI
|
|
|
103
101
|
|
|
104
102
|
## License
|
|
105
103
|
|
|
106
|
-
ART Framework is released under the [MIT License](https://opensource.org/licenses/MIT).
|
|
104
|
+
ART Framework is released under the [MIT License](https://opensource.org/licenses/MIT).
|