You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The official TypeScript SDK for the ACI (Agent-Computer Interface) by Aipolabs. Currently in beta, breaking changes are expected.
4
6
5
7
The ACI TypeScript SDK provides convenient access to the ACI REST API from any TypeScript/JavaScript application.
6
8
9
+
## Documentation
10
+
The detailed documentation is available [here](https://aci.dev/docs).
11
+
7
12
## Installation
8
13
9
14
```bash
@@ -15,48 +20,178 @@ pnpm add @aci-sdk/aci
15
20
```
16
21
17
22
## Usage
23
+
ACI platform is built with agent-first principles. Although you can call each of the APIs below any way you prefer in your application, we strongly recommend trying the [Agent-centric features](#agent-centric-features) and taking a look at the [agent examples](https://github.com/aipotheosis-labs/aci-agents/tree/main/examples) to get the most out of the platform and to enable the full potential and vision of future agentic applications.
18
24
25
+
### Client
19
26
```typescript
20
27
import { ACI } from'@aci-sdk/aci';
21
28
22
-
// Initialize the client with configuration
23
29
const client =newACI({
24
-
apiKey: process.env.ACI_API_KEY,
25
-
// Optional: Configure retry settings
26
-
maxRetries: 3,
27
-
retryMinWait: 1000,
28
-
retryMaxWait: 10000,
29
-
retryMultiplier: 2,
30
+
// it reads from environment variable by default so you can omit it if you set it in your environment
function_parameters: { query: { q: "what is the weather in barcelona" } },
62
197
linked_account_owner_id: "john_doe"
@@ -69,32 +204,61 @@ if (result.success) {
69
204
}
70
205
```
71
206
72
-
## Features
207
+
### Agent-centric features
208
+
209
+
The SDK provides a suite of features and helper functions to make it easier and more seamless to use functions in LLM powered agentic applications.
210
+
This is our vision and the recommended way of trying out the SDK.
211
+
212
+
#### Meta Functions and Unified Function Calling Handler
73
213
74
-
- Full TypeScript support
75
-
- Complete API coverage
76
-
- Promise-based async/await interface
77
-
- Environment variable support for API key
78
-
- Comprehensive type definitions
79
-
- Automatic retry mechanism for failed requests
80
-
- Resource-based API organization
214
+
- A set of meta functions that can be used with LLMs as tools directly. Essentially, they are just the json schema version of some of the backend APIs of ACI.dev. They are provided so that your LLM/Agent can utilize some of the features of ACI.dev directly via function (tool) calling.
81
215
82
-
## API Reference
216
+
- A unified handler for function (tool) calls, which handles both the direct function calls (e.g., BRAVE_SEARCH__WEB_SEARCH) and the meta functions calls (e.g., ACISearchFunctions, ACIExecuteFunction).
For detailed API documentation, please refer to the [official ACI documentation](https://docs.aci.dev).
256
+
Please see [agent examples](https://github.com/aipotheosis-labs/aci-agents?tab=readme-ov-file#2-agent-with-dynamic-tool-discovery-and-execution) for more advanced and complete examples.
93
257
94
258
## License
95
259
96
260
MIT
97
261
98
262
## Contributing
99
263
100
-
We wcome contributions! Please see the [CONTRIBUTING.md](CONTRIBUTING.md) file for details.
264
+
We welcome contributions! Please see the [CONTRIBUTING.md](CONTRIBUTING.md) file for details.
0 commit comments