@agent-os-sdk/client 0.1.1 → 0.1.2
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/client/AgentOsClient.d.ts +28 -4
- package/dist/client/AgentOsClient.d.ts.map +1 -1
- package/dist/client/AgentOsClient.js +40 -3
- package/dist/generated/openapi.d.ts +93 -0
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -0
- package/dist/modules/approvals.d.ts +78 -0
- package/dist/modules/approvals.d.ts.map +1 -0
- package/dist/modules/approvals.js +157 -0
- package/dist/modules/artifacts.d.ts +100 -0
- package/dist/modules/artifacts.d.ts.map +1 -0
- package/dist/modules/artifacts.js +217 -0
- package/dist/modules/budgets.d.ts +104 -0
- package/dist/modules/budgets.d.ts.map +1 -0
- package/dist/modules/budgets.js +161 -0
- package/dist/modules/builder.d.ts +2 -2
- package/dist/modules/builder.d.ts.map +1 -1
- package/dist/modules/builder.js +5 -5
- package/dist/modules/capabilities.d.ts +68 -0
- package/dist/modules/capabilities.d.ts.map +1 -0
- package/dist/modules/capabilities.js +113 -0
- package/dist/modules/deployments.d.ts +110 -0
- package/dist/modules/deployments.d.ts.map +1 -0
- package/dist/modules/deployments.js +230 -0
- package/dist/modules/flows.d.ts +104 -0
- package/dist/modules/flows.d.ts.map +1 -0
- package/dist/modules/flows.js +190 -0
- package/dist/modules/handoff.d.ts +88 -0
- package/dist/modules/handoff.d.ts.map +1 -0
- package/dist/modules/handoff.js +128 -0
- package/dist/modules/incidents.d.ts +133 -0
- package/dist/modules/incidents.d.ts.map +1 -0
- package/dist/modules/incidents.js +231 -0
- package/dist/modules/members.d.ts +5 -0
- package/dist/modules/members.d.ts.map +1 -1
- package/dist/modules/members.js +10 -0
- package/dist/modules/policies.d.ts +103 -0
- package/dist/modules/policies.d.ts.map +1 -0
- package/dist/modules/policies.js +180 -0
- package/dist/modules/runs.d.ts.map +1 -1
- package/dist/modules/tenants.d.ts +4 -0
- package/dist/modules/tenants.d.ts.map +1 -1
- package/dist/modules/tenants.js +8 -0
- package/package.json +49 -48
- package/src/client/AgentOsClient.ts +45 -7
- package/src/generated/openapi.ts +93 -0
- package/src/generated/swagger.json +107 -0
- package/src/index.ts +11 -0
- package/src/modules/approvals.ts +210 -0
- package/src/modules/artifacts.ts +287 -0
- package/src/modules/budgets.ts +236 -0
- package/src/modules/builder.ts +3 -3
- package/src/modules/capabilities.ts +176 -0
- package/src/modules/deployments.ts +315 -0
- package/src/modules/flows.ts +259 -0
- package/src/modules/handoff.ts +204 -0
- package/src/modules/incidents.ts +339 -0
- package/src/modules/members.ts +11 -0
- package/src/modules/policies.ts +258 -0
- package/src/modules/tenants.ts +9 -0
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Policies Module - Governance Rules
|
|
3
|
+
*
|
|
4
|
+
* // MOCK - This module contains mock implementations for future features
|
|
5
|
+
*
|
|
6
|
+
* Defines and evaluates policies that control agent behavior.
|
|
7
|
+
* Enables enterprise governance and compliance.
|
|
8
|
+
*/
|
|
9
|
+
// ============================================================================
|
|
10
|
+
// Module
|
|
11
|
+
// ============================================================================
|
|
12
|
+
export class PoliciesModule {
|
|
13
|
+
client;
|
|
14
|
+
headers;
|
|
15
|
+
constructor(client, headers) {
|
|
16
|
+
this.client = client;
|
|
17
|
+
this.headers = headers;
|
|
18
|
+
}
|
|
19
|
+
// MOCK - Simulated list
|
|
20
|
+
/**
|
|
21
|
+
* List all policies.
|
|
22
|
+
*/
|
|
23
|
+
async list(params) {
|
|
24
|
+
// MOCK - Returns simulated data
|
|
25
|
+
const mockPolicies = {
|
|
26
|
+
items: [
|
|
27
|
+
{
|
|
28
|
+
id: "policy_1",
|
|
29
|
+
name: "Block External Email",
|
|
30
|
+
description: "Prevent agents from sending external emails without approval",
|
|
31
|
+
type: "require_approval",
|
|
32
|
+
scope: "tenant",
|
|
33
|
+
conditions: [
|
|
34
|
+
{ field: "action", operator: "eq", value: "send_email" },
|
|
35
|
+
{ field: "recipient.domain", operator: "not_in", value: ["company.com"] },
|
|
36
|
+
],
|
|
37
|
+
actions: [
|
|
38
|
+
{ type: "require_approval", config: { approver_role: "admin" } },
|
|
39
|
+
],
|
|
40
|
+
priority: 100,
|
|
41
|
+
enabled: true,
|
|
42
|
+
created_at: new Date(Date.now() - 86400000).toISOString(),
|
|
43
|
+
updated_at: new Date().toISOString(),
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
id: "policy_2",
|
|
47
|
+
name: "Audit All Tool Calls",
|
|
48
|
+
description: "Log all tool calls for compliance",
|
|
49
|
+
type: "audit",
|
|
50
|
+
scope: "tenant",
|
|
51
|
+
conditions: [
|
|
52
|
+
{ field: "action", operator: "eq", value: "tool_call" },
|
|
53
|
+
],
|
|
54
|
+
actions: [
|
|
55
|
+
{ type: "log" },
|
|
56
|
+
],
|
|
57
|
+
priority: 50,
|
|
58
|
+
enabled: true,
|
|
59
|
+
created_at: new Date(Date.now() - 86400000).toISOString(),
|
|
60
|
+
updated_at: new Date().toISOString(),
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
total: 2,
|
|
64
|
+
};
|
|
65
|
+
return { data: mockPolicies, error: undefined, response: new Response() };
|
|
66
|
+
}
|
|
67
|
+
// MOCK - Simulated get
|
|
68
|
+
/**
|
|
69
|
+
* Get a policy by ID.
|
|
70
|
+
*/
|
|
71
|
+
async get(policyId) {
|
|
72
|
+
// MOCK - Returns simulated data
|
|
73
|
+
const mockPolicy = {
|
|
74
|
+
id: policyId,
|
|
75
|
+
name: "Block External Email",
|
|
76
|
+
description: "Prevent agents from sending external emails without approval",
|
|
77
|
+
type: "require_approval",
|
|
78
|
+
scope: "tenant",
|
|
79
|
+
conditions: [
|
|
80
|
+
{ field: "action", operator: "eq", value: "send_email" },
|
|
81
|
+
],
|
|
82
|
+
actions: [
|
|
83
|
+
{ type: "require_approval" },
|
|
84
|
+
],
|
|
85
|
+
priority: 100,
|
|
86
|
+
enabled: true,
|
|
87
|
+
created_at: new Date(Date.now() - 86400000).toISOString(),
|
|
88
|
+
updated_at: new Date().toISOString(),
|
|
89
|
+
};
|
|
90
|
+
return { data: mockPolicy, error: undefined, response: new Response() };
|
|
91
|
+
}
|
|
92
|
+
// MOCK - Simulated create
|
|
93
|
+
/**
|
|
94
|
+
* Create a new policy.
|
|
95
|
+
*/
|
|
96
|
+
async create(body) {
|
|
97
|
+
// MOCK - Returns simulated data
|
|
98
|
+
const mockPolicy = {
|
|
99
|
+
id: `policy_${Date.now()}`,
|
|
100
|
+
name: body.name,
|
|
101
|
+
description: body.description,
|
|
102
|
+
type: body.type,
|
|
103
|
+
scope: body.scope,
|
|
104
|
+
scope_id: body.scope_id,
|
|
105
|
+
conditions: body.conditions,
|
|
106
|
+
actions: body.actions,
|
|
107
|
+
priority: body.priority || 50,
|
|
108
|
+
enabled: true,
|
|
109
|
+
created_at: new Date().toISOString(),
|
|
110
|
+
updated_at: new Date().toISOString(),
|
|
111
|
+
};
|
|
112
|
+
return { data: mockPolicy, error: undefined, response: new Response() };
|
|
113
|
+
}
|
|
114
|
+
// MOCK - Simulated update
|
|
115
|
+
/**
|
|
116
|
+
* Update a policy.
|
|
117
|
+
*/
|
|
118
|
+
async update(policyId, body) {
|
|
119
|
+
// MOCK - Returns simulated data
|
|
120
|
+
const mockPolicy = {
|
|
121
|
+
id: policyId,
|
|
122
|
+
name: body.name || "Updated Policy",
|
|
123
|
+
type: body.type || "allow",
|
|
124
|
+
scope: body.scope || "tenant",
|
|
125
|
+
conditions: body.conditions || [],
|
|
126
|
+
actions: body.actions || [],
|
|
127
|
+
priority: body.priority || 50,
|
|
128
|
+
enabled: body.enabled ?? true,
|
|
129
|
+
created_at: new Date(Date.now() - 86400000).toISOString(),
|
|
130
|
+
updated_at: new Date().toISOString(),
|
|
131
|
+
};
|
|
132
|
+
return { data: mockPolicy, error: undefined, response: new Response() };
|
|
133
|
+
}
|
|
134
|
+
// MOCK - Simulated delete
|
|
135
|
+
/**
|
|
136
|
+
* Delete a policy.
|
|
137
|
+
*/
|
|
138
|
+
async delete(policyId) {
|
|
139
|
+
// MOCK - Returns success
|
|
140
|
+
return { data: undefined, error: undefined, response: new Response() };
|
|
141
|
+
}
|
|
142
|
+
// MOCK - Simulated evaluate
|
|
143
|
+
/**
|
|
144
|
+
* Evaluate policies against an action (simulation).
|
|
145
|
+
*/
|
|
146
|
+
async evaluate(input) {
|
|
147
|
+
// MOCK - Returns simulated evaluation
|
|
148
|
+
const mockResult = {
|
|
149
|
+
allowed: true,
|
|
150
|
+
matched_policies: ["policy_2"],
|
|
151
|
+
required_approvals: [],
|
|
152
|
+
warnings: [],
|
|
153
|
+
audit_entries: [
|
|
154
|
+
{
|
|
155
|
+
policy_id: "policy_2",
|
|
156
|
+
policy_name: "Audit All Tool Calls",
|
|
157
|
+
decision: "allow",
|
|
158
|
+
reason: "Action logged for audit",
|
|
159
|
+
evaluated_at: new Date().toISOString(),
|
|
160
|
+
},
|
|
161
|
+
],
|
|
162
|
+
};
|
|
163
|
+
return { data: mockResult, error: undefined, response: new Response() };
|
|
164
|
+
}
|
|
165
|
+
// MOCK - Simulated enforce
|
|
166
|
+
/**
|
|
167
|
+
* Enforce policies (apply to current context).
|
|
168
|
+
*/
|
|
169
|
+
async enforce(runId) {
|
|
170
|
+
// MOCK - Returns simulated enforcement
|
|
171
|
+
const mockResult = {
|
|
172
|
+
allowed: true,
|
|
173
|
+
matched_policies: [],
|
|
174
|
+
required_approvals: [],
|
|
175
|
+
warnings: [],
|
|
176
|
+
audit_entries: [],
|
|
177
|
+
};
|
|
178
|
+
return { data: mockResult, error: undefined, response: new Response() };
|
|
179
|
+
}
|
|
180
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runs.d.ts","sourceRoot":"","sources":["../../src/modules/runs.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE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21
21
|
constructor(client: RawClient, headers: () => Record<string, string>);
|
|
22
|
+
/**
|
|
23
|
+
* List all tenants the user has access to.
|
|
24
|
+
*/
|
|
25
|
+
list(): Promise<APIResponse<Tenant[]>>;
|
|
22
26
|
/**
|
|
23
27
|
* Get the current tenant.
|
|
24
28
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenants.d.ts","sourceRoot":"","sources":["../../src/modules/tenants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAc,MAAM,kBAAkB,CAAC;AAI3E,MAAM,WAAW,MAAM;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IAC/B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,aAAa;IACV,OAAO,CAAC,MAAM;IAAa,OAAO,CAAC,OAAO;gBAAlC,MAAM,EAAE,SAAS,EAAU,OAAO,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAEpF;;OAEG;IACG,GAAG,IAAI,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAMzC;;OAEG;IACG,MAAM,CAAC,IAAI,EAAE;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;KACjB,GAAG,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAOhC;;OAEG;IACG,WAAW,IAAI,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,OA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MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAMlE;;OAEG;IACG,cAAc,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;CAMtF"}
|
package/dist/modules/tenants.js
CHANGED
|
@@ -8,6 +8,14 @@ export class TenantsModule {
|
|
|
8
8
|
this.client = client;
|
|
9
9
|
this.headers = headers;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* List all tenants the user has access to.
|
|
13
|
+
*/
|
|
14
|
+
async list() {
|
|
15
|
+
return this.client.GET("/v1/api/tenants", {
|
|
16
|
+
headers: this.headers(),
|
|
17
|
+
});
|
|
18
|
+
}
|
|
11
19
|
/**
|
|
12
20
|
* Get the current tenant.
|
|
13
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,49 +1,50 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
2
|
+
"name": "@agent-os-sdk/client",
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Official TypeScript SDK for Agent OS platform",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"generate": "tsx scripts/generate.ts",
|
|
17
|
+
"build": "tsc",
|
|
18
|
+
"dev": "tsc --watch",
|
|
19
|
+
"typecheck": "tsc --noEmit",
|
|
20
|
+
"prepublishOnly": "pnpm build"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [
|
|
23
|
+
"agent-os",
|
|
24
|
+
"sdk",
|
|
25
|
+
"ai",
|
|
26
|
+
"agents",
|
|
27
|
+
"typescript"
|
|
28
|
+
],
|
|
29
|
+
"author": "Agent OS Team",
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "https://github.com/yuri12344/agent-os.git"
|
|
34
|
+
},
|
|
35
|
+
"publishConfig": {
|
|
36
|
+
"access": "public"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"openapi-fetch": "^0.13.0"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"openapi-typescript": "^7.4.0",
|
|
43
|
+
"tsx": "^4.19.0",
|
|
44
|
+
"typescript": "^5.5.0"
|
|
45
|
+
},
|
|
46
|
+
"files": [
|
|
47
|
+
"dist",
|
|
48
|
+
"src"
|
|
49
|
+
]
|
|
50
|
+
}
|
|
@@ -53,8 +53,19 @@ import { InfoModule } from "../modules/info.js";
|
|
|
53
53
|
import { MetricsModule } from "../modules/metrics.js";
|
|
54
54
|
import { GraphsModule } from "../modules/graphs.js";
|
|
55
55
|
|
|
56
|
+
// MOCK - Future modules (marked for replacement when backend is ready)
|
|
57
|
+
import { HandoffModule } from "../modules/handoff.js";
|
|
58
|
+
import { FlowsModule } from "../modules/flows.js";
|
|
59
|
+
import { CapabilitiesModule } from "../modules/capabilities.js";
|
|
60
|
+
import { PoliciesModule } from "../modules/policies.js";
|
|
61
|
+
import { ApprovalsModule } from "../modules/approvals.js";
|
|
62
|
+
import { BudgetsModule } from "../modules/budgets.js";
|
|
63
|
+
import { DeploymentsModule } from "../modules/deployments.js";
|
|
64
|
+
import { IncidentsModule } from "../modules/incidents.js";
|
|
65
|
+
import { ArtifactsModule } from "../modules/artifacts.js";
|
|
66
|
+
|
|
56
67
|
export type AgentOsClientOptions = {
|
|
57
|
-
/** Base URL of the Agent OS API */
|
|
68
|
+
/** Base URL of the Agent OS API (Control Plane) */
|
|
58
69
|
baseUrl: string;
|
|
59
70
|
|
|
60
71
|
/** Tenant ID (multi-tenant) */
|
|
@@ -71,9 +82,6 @@ export type AgentOsClientOptions = {
|
|
|
71
82
|
|
|
72
83
|
/** Custom headers */
|
|
73
84
|
headers?: Record<string, string>;
|
|
74
|
-
|
|
75
|
-
/** Kernel base URL (for meta-agent, different from control plane) */
|
|
76
|
-
kernelBaseUrl?: string;
|
|
77
85
|
};
|
|
78
86
|
|
|
79
87
|
export class AgentOsClient {
|
|
@@ -84,7 +92,7 @@ export class AgentOsClient {
|
|
|
84
92
|
private readonly _token?: string;
|
|
85
93
|
private readonly _memberId?: string;
|
|
86
94
|
private readonly _customHeaders: Record<string, string>;
|
|
87
|
-
|
|
95
|
+
|
|
88
96
|
|
|
89
97
|
// Core modules
|
|
90
98
|
/** Agents API: CRUD, versions, graph */
|
|
@@ -148,6 +156,26 @@ export class AgentOsClient {
|
|
|
148
156
|
/** Graphs API: Validation and introspection */
|
|
149
157
|
readonly graphs: GraphsModule;
|
|
150
158
|
|
|
159
|
+
// MOCK - Future modules (marked for replacement when backend is ready)
|
|
160
|
+
/** Handoff API: Multi-agent delegation */
|
|
161
|
+
readonly handoff: HandoffModule;
|
|
162
|
+
/** Flows API: Workflow orchestration */
|
|
163
|
+
readonly flows: FlowsModule;
|
|
164
|
+
/** Capabilities API: Agent/run permissions */
|
|
165
|
+
readonly capabilities: CapabilitiesModule;
|
|
166
|
+
/** Policies API: Governance rules */
|
|
167
|
+
readonly policies: PoliciesModule;
|
|
168
|
+
/** Approvals API: Human-in-the-loop */
|
|
169
|
+
readonly approvals: ApprovalsModule;
|
|
170
|
+
/** Budgets API: Cost control */
|
|
171
|
+
readonly budgets: BudgetsModule;
|
|
172
|
+
/** Deployments API: Release management */
|
|
173
|
+
readonly deployments: DeploymentsModule;
|
|
174
|
+
/** Incidents API: Operational incidents & SLOs */
|
|
175
|
+
readonly incidents: IncidentsModule;
|
|
176
|
+
/** Artifacts API: Output management */
|
|
177
|
+
readonly artifacts: ArtifactsModule;
|
|
178
|
+
|
|
151
179
|
// ======================== Convenience Aliases ========================
|
|
152
180
|
/**
|
|
153
181
|
* Alias for evaluation.listExperiments() - provides first-level access to experiments
|
|
@@ -170,7 +198,6 @@ export class AgentOsClient {
|
|
|
170
198
|
|
|
171
199
|
constructor(options: AgentOsClientOptions) {
|
|
172
200
|
this._baseUrl = options.baseUrl;
|
|
173
|
-
this._kernelBaseUrl = options.kernelBaseUrl ?? options.baseUrl.replace(':5000', ':8001');
|
|
174
201
|
this._tenantId = options.tenantId;
|
|
175
202
|
this._workspaceId = options.workspaceId;
|
|
176
203
|
this._token = options.token;
|
|
@@ -194,7 +221,7 @@ export class AgentOsClient {
|
|
|
194
221
|
this.knowledge = new KnowledgeModule(this._client, getWorkspaceId, getHeaders);
|
|
195
222
|
this.triggers = new TriggersModule(this._client, getHeaders);
|
|
196
223
|
this.credentials = new CredentialsModule(this._client, getWorkspaceId, getHeaders);
|
|
197
|
-
this.builder = new BuilderModule(this.
|
|
224
|
+
this.builder = new BuilderModule(this._baseUrl, getHeaders);
|
|
198
225
|
this.members = new MembersModule(this._client, getHeaders);
|
|
199
226
|
this.tenants = new TenantsModule(this._client, getHeaders);
|
|
200
227
|
this.workspaces = new WorkspacesModule(this._client, getTenantId, getHeaders);
|
|
@@ -219,6 +246,17 @@ export class AgentOsClient {
|
|
|
219
246
|
this.metrics = new MetricsModule(this._baseUrl, getHeaders);
|
|
220
247
|
this.graphs = new GraphsModule(this._client, getHeaders);
|
|
221
248
|
|
|
249
|
+
// MOCK - Initialize future modules
|
|
250
|
+
this.handoff = new HandoffModule(this._client, getHeaders);
|
|
251
|
+
this.flows = new FlowsModule(this._client, getHeaders);
|
|
252
|
+
this.capabilities = new CapabilitiesModule(this._client, getHeaders);
|
|
253
|
+
this.policies = new PoliciesModule(this._client, getHeaders);
|
|
254
|
+
this.approvals = new ApprovalsModule(this._client, getHeaders);
|
|
255
|
+
this.budgets = new BudgetsModule(this._client, getHeaders);
|
|
256
|
+
this.deployments = new DeploymentsModule(this._client, getHeaders);
|
|
257
|
+
this.incidents = new IncidentsModule(this._client, getHeaders);
|
|
258
|
+
this.artifacts = new ArtifactsModule(this._client, getHeaders);
|
|
259
|
+
|
|
222
260
|
// Initialize convenience aliases
|
|
223
261
|
this.experiments = {
|
|
224
262
|
list: this.evaluation.listExperiments.bind(this.evaluation),
|
package/src/generated/openapi.ts
CHANGED
|
@@ -721,6 +721,93 @@ export interface paths {
|
|
|
721
721
|
patch?: never;
|
|
722
722
|
trace?: never;
|
|
723
723
|
};
|
|
724
|
+
"/v1/api/builder/{agentId}/chat": {
|
|
725
|
+
parameters: {
|
|
726
|
+
query?: never;
|
|
727
|
+
header?: never;
|
|
728
|
+
path?: never;
|
|
729
|
+
cookie?: never;
|
|
730
|
+
};
|
|
731
|
+
get?: never;
|
|
732
|
+
put?: never;
|
|
733
|
+
/**
|
|
734
|
+
* Chat with the Meta-Agent to modify an agent's graph.
|
|
735
|
+
* Returns SSE stream: message, graph_update, done events.
|
|
736
|
+
*/
|
|
737
|
+
post: {
|
|
738
|
+
parameters: {
|
|
739
|
+
query?: never;
|
|
740
|
+
header?: never;
|
|
741
|
+
path: {
|
|
742
|
+
agentId: string;
|
|
743
|
+
};
|
|
744
|
+
cookie?: never;
|
|
745
|
+
};
|
|
746
|
+
requestBody?: {
|
|
747
|
+
content: {
|
|
748
|
+
"application/json": components["schemas"]["BuilderChatRequest"];
|
|
749
|
+
"text/json": components["schemas"]["BuilderChatRequest"];
|
|
750
|
+
"application/*+json": components["schemas"]["BuilderChatRequest"];
|
|
751
|
+
};
|
|
752
|
+
};
|
|
753
|
+
responses: {
|
|
754
|
+
/** @description OK */
|
|
755
|
+
200: {
|
|
756
|
+
headers: {
|
|
757
|
+
[name: string]: unknown;
|
|
758
|
+
};
|
|
759
|
+
content?: never;
|
|
760
|
+
};
|
|
761
|
+
};
|
|
762
|
+
};
|
|
763
|
+
delete?: never;
|
|
764
|
+
options?: never;
|
|
765
|
+
head?: never;
|
|
766
|
+
patch?: never;
|
|
767
|
+
trace?: never;
|
|
768
|
+
};
|
|
769
|
+
"/v1/api/builder/{agentId}/chat/sync": {
|
|
770
|
+
parameters: {
|
|
771
|
+
query?: never;
|
|
772
|
+
header?: never;
|
|
773
|
+
path?: never;
|
|
774
|
+
cookie?: never;
|
|
775
|
+
};
|
|
776
|
+
get?: never;
|
|
777
|
+
put?: never;
|
|
778
|
+
/** Synchronous version of builder chat (for testing). */
|
|
779
|
+
post: {
|
|
780
|
+
parameters: {
|
|
781
|
+
query?: never;
|
|
782
|
+
header?: never;
|
|
783
|
+
path: {
|
|
784
|
+
agentId: string;
|
|
785
|
+
};
|
|
786
|
+
cookie?: never;
|
|
787
|
+
};
|
|
788
|
+
requestBody?: {
|
|
789
|
+
content: {
|
|
790
|
+
"application/json": components["schemas"]["BuilderChatRequest"];
|
|
791
|
+
"text/json": components["schemas"]["BuilderChatRequest"];
|
|
792
|
+
"application/*+json": components["schemas"]["BuilderChatRequest"];
|
|
793
|
+
};
|
|
794
|
+
};
|
|
795
|
+
responses: {
|
|
796
|
+
/** @description OK */
|
|
797
|
+
200: {
|
|
798
|
+
headers: {
|
|
799
|
+
[name: string]: unknown;
|
|
800
|
+
};
|
|
801
|
+
content?: never;
|
|
802
|
+
};
|
|
803
|
+
};
|
|
804
|
+
};
|
|
805
|
+
delete?: never;
|
|
806
|
+
options?: never;
|
|
807
|
+
head?: never;
|
|
808
|
+
patch?: never;
|
|
809
|
+
trace?: never;
|
|
810
|
+
};
|
|
724
811
|
"/v1/api/workspaces/{workspaceId}/runs/{runId}/checkpoints": {
|
|
725
812
|
parameters: {
|
|
726
813
|
query?: never;
|
|
@@ -6129,6 +6216,12 @@ export interface components {
|
|
|
6129
6216
|
/** Format: uuid */
|
|
6130
6217
|
agent_id?: string;
|
|
6131
6218
|
};
|
|
6219
|
+
/** @description Request DTO for builder chat. */
|
|
6220
|
+
BuilderChatRequest: {
|
|
6221
|
+
message?: string | null;
|
|
6222
|
+
current_graph_spec?: unknown;
|
|
6223
|
+
thread_id?: string | null;
|
|
6224
|
+
};
|
|
6132
6225
|
CancelRequest: {
|
|
6133
6226
|
reason?: string | null;
|
|
6134
6227
|
};
|
|
@@ -724,6 +724,92 @@
|
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
726
|
},
|
|
727
|
+
"/v1/api/builder/{agentId}/chat": {
|
|
728
|
+
"post": {
|
|
729
|
+
"tags": [
|
|
730
|
+
"Builder"
|
|
731
|
+
],
|
|
732
|
+
"summary": "Chat with the Meta-Agent to modify an agent's graph.\nReturns SSE stream: message, graph_update, done events.",
|
|
733
|
+
"parameters": [
|
|
734
|
+
{
|
|
735
|
+
"name": "agentId",
|
|
736
|
+
"in": "path",
|
|
737
|
+
"required": true,
|
|
738
|
+
"schema": {
|
|
739
|
+
"type": "string",
|
|
740
|
+
"format": "uuid"
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
],
|
|
744
|
+
"requestBody": {
|
|
745
|
+
"content": {
|
|
746
|
+
"application/json": {
|
|
747
|
+
"schema": {
|
|
748
|
+
"$ref": "#/components/schemas/BuilderChatRequest"
|
|
749
|
+
}
|
|
750
|
+
},
|
|
751
|
+
"text/json": {
|
|
752
|
+
"schema": {
|
|
753
|
+
"$ref": "#/components/schemas/BuilderChatRequest"
|
|
754
|
+
}
|
|
755
|
+
},
|
|
756
|
+
"application/*+json": {
|
|
757
|
+
"schema": {
|
|
758
|
+
"$ref": "#/components/schemas/BuilderChatRequest"
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
},
|
|
763
|
+
"responses": {
|
|
764
|
+
"200": {
|
|
765
|
+
"description": "OK"
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
"/v1/api/builder/{agentId}/chat/sync": {
|
|
771
|
+
"post": {
|
|
772
|
+
"tags": [
|
|
773
|
+
"Builder"
|
|
774
|
+
],
|
|
775
|
+
"summary": "Synchronous version of builder chat (for testing).",
|
|
776
|
+
"parameters": [
|
|
777
|
+
{
|
|
778
|
+
"name": "agentId",
|
|
779
|
+
"in": "path",
|
|
780
|
+
"required": true,
|
|
781
|
+
"schema": {
|
|
782
|
+
"type": "string",
|
|
783
|
+
"format": "uuid"
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
],
|
|
787
|
+
"requestBody": {
|
|
788
|
+
"content": {
|
|
789
|
+
"application/json": {
|
|
790
|
+
"schema": {
|
|
791
|
+
"$ref": "#/components/schemas/BuilderChatRequest"
|
|
792
|
+
}
|
|
793
|
+
},
|
|
794
|
+
"text/json": {
|
|
795
|
+
"schema": {
|
|
796
|
+
"$ref": "#/components/schemas/BuilderChatRequest"
|
|
797
|
+
}
|
|
798
|
+
},
|
|
799
|
+
"application/*+json": {
|
|
800
|
+
"schema": {
|
|
801
|
+
"$ref": "#/components/schemas/BuilderChatRequest"
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
},
|
|
806
|
+
"responses": {
|
|
807
|
+
"200": {
|
|
808
|
+
"description": "OK"
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
},
|
|
727
813
|
"/v1/api/workspaces/{workspaceId}/runs/{runId}/checkpoints": {
|
|
728
814
|
"get": {
|
|
729
815
|
"tags": [
|
|
@@ -6559,6 +6645,24 @@
|
|
|
6559
6645
|
},
|
|
6560
6646
|
"additionalProperties": false
|
|
6561
6647
|
},
|
|
6648
|
+
"BuilderChatRequest": {
|
|
6649
|
+
"type": "object",
|
|
6650
|
+
"properties": {
|
|
6651
|
+
"message": {
|
|
6652
|
+
"type": "string",
|
|
6653
|
+
"nullable": true
|
|
6654
|
+
},
|
|
6655
|
+
"current_graph_spec": {
|
|
6656
|
+
"nullable": true
|
|
6657
|
+
},
|
|
6658
|
+
"thread_id": {
|
|
6659
|
+
"type": "string",
|
|
6660
|
+
"nullable": true
|
|
6661
|
+
}
|
|
6662
|
+
},
|
|
6663
|
+
"additionalProperties": false,
|
|
6664
|
+
"description": "Request DTO for builder chat."
|
|
6665
|
+
},
|
|
6562
6666
|
"CancelRequest": {
|
|
6563
6667
|
"type": "object",
|
|
6564
6668
|
"properties": {
|
|
@@ -8469,6 +8573,9 @@
|
|
|
8469
8573
|
{
|
|
8470
8574
|
"name": "Audit"
|
|
8471
8575
|
},
|
|
8576
|
+
{
|
|
8577
|
+
"name": "Builder"
|
|
8578
|
+
},
|
|
8472
8579
|
{
|
|
8473
8580
|
"name": "Checkpoints"
|
|
8474
8581
|
},
|