@aexhq/sdk 0.66.1 → 0.68.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/README.md +10 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,20 +4,20 @@ The hosted Aex client uses the neutral Brain composition API with the `https://a
|
|
|
4
4
|
URL and an Aex API key.
|
|
5
5
|
|
|
6
6
|
```ts
|
|
7
|
-
import { Aex,
|
|
7
|
+
import { Aex, brainEnv } from "@aexhq/sdk";
|
|
8
8
|
import { awsMicroVm } from "@aexhq/env-aws-microvm";
|
|
9
9
|
import { pi } from "@aexhq/agentloop-pi";
|
|
10
10
|
import { bash, read } from "@aexhq/tools";
|
|
11
11
|
|
|
12
12
|
const aex = new Aex({ apiKey: process.env.AEX_API_KEY! });
|
|
13
|
-
const workspace = awsMicroVm({ region: "eu-west-2" });
|
|
13
|
+
const workspace = awsMicroVm({ name: "sandbox", url: process.env.ENVIRONMENT_URL, token: process.env.ENVIRONMENT_TOKEN, region: "eu-west-2" });
|
|
14
14
|
const session = await aex.sessions.create({
|
|
15
15
|
model: {
|
|
16
16
|
provider: "vercel-ai-gateway",
|
|
17
17
|
name: "openai/gpt-5-mini",
|
|
18
18
|
apiKey: process.env.VERCEL_AI_GATEWAY_API_KEY!,
|
|
19
19
|
},
|
|
20
|
-
agentloop: pi({ env:
|
|
20
|
+
agentloop: pi({ env: brainEnv({ name: "brain" }) }),
|
|
21
21
|
tools: [read({ env: workspace }), bash({ env: workspace })],
|
|
22
22
|
});
|
|
23
23
|
|
|
@@ -26,4 +26,10 @@ for await (const event of session.events()) console.log(event);
|
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
Aex supplies hosted authentication and policy. Brain admission, Tool placement, Environment
|
|
29
|
-
|
|
29
|
+
operations, operation keys, and event cursors are handled by the shared Brain SDK.
|
|
30
|
+
|
|
31
|
+
This example requires a separately deployed AWS Environment driver. Supply its URL and bearer
|
|
32
|
+
credential as `ENVIRONMENT_URL` and `ENVIRONMENT_TOKEN`; the SDK keeps the credential out of the
|
|
33
|
+
Environment configuration and Tool implementation descriptors. See the
|
|
34
|
+
[Environment package](https://github.com/aexhq/extensions/tree/main/packages/env-aws-microvm)
|
|
35
|
+
for its supported runtime and deployment boundary.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Brain, type BrainOptions } from "@aexhq/brain";
|
|
2
2
|
export { BrainError as AexError } from "@aexhq/brain";
|
|
3
|
-
export { agentloop,
|
|
4
|
-
export type {
|
|
3
|
+
export { agentloop, brainEnv, component, environment, hostEnv, tool } from "@aexhq/brain";
|
|
4
|
+
export type { PlacedAgentloop, BrainEnvOptions, Component, CreateSessionOptions, CustomProviderModel, Environment, KnownProviderId, KnownProviderModel, ModelContentBlock, ModelMessage, ModelResponse, ModelSelection, ModelStopReason, ModelUsage, OperationOptions, Outcome, Schema, SchemaInput, SchemaOutput, SessionEvent, SessionState, SessionStreamEvent, SessionTool, PlacedTool, ToolDefinition, VercelAiGatewayModel, } from "@aexhq/brain";
|
|
5
5
|
export interface AexOptions {
|
|
6
6
|
apiKey: string;
|
|
7
7
|
baseUrl?: string;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Brain } from "@aexhq/brain";
|
|
2
2
|
export { BrainError as AexError } from "@aexhq/brain";
|
|
3
|
-
export { agentloop,
|
|
3
|
+
export { agentloop, brainEnv, component, environment, hostEnv, tool } from "@aexhq/brain";
|
|
4
4
|
const DEFAULT_API_URL = "https://api.aex.dev";
|
|
5
5
|
export class Aex extends Brain {
|
|
6
6
|
constructor(options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aexhq/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.68.0",
|
|
4
4
|
"description": "TypeScript SDK for Aex sessions",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://aex.dev",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"test": "tsc -p tsconfig.json && node --test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@aexhq/brain": "0.
|
|
37
|
+
"@aexhq/brain": "0.18.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"typescript": "
|
|
40
|
+
"typescript": "5.9.3"
|
|
41
41
|
}
|
|
42
42
|
}
|