@betterlu/agentlu 1.9.0 → 1.11.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 +36 -0
- package/dist/generated.d.ts +105 -9
- package/dist/index.d.ts +24 -2
- package/dist/index.js +7 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -341,3 +341,39 @@ if (response.agentlu?.browser?.status === "needs_human") {
|
|
|
341
341
|
Browser response metadata contains the session and page identity plus screenshot
|
|
342
342
|
ids. Screenshot pixels stay in the authenticated viewer and are not copied into
|
|
343
343
|
API response metadata.
|
|
344
|
+
|
|
345
|
+
### Household signals (Herald)
|
|
346
|
+
|
|
347
|
+
Apps should send structured facts to Herald, not post directly to the ChatLu
|
|
348
|
+
family room through notif. Herald decides whether/when/how to share them.
|
|
349
|
+
|
|
350
|
+
```ts
|
|
351
|
+
const alu = new AgentLu({ apiKey: "alu_your_client_key" });
|
|
352
|
+
const signal = await alu.household.signal({
|
|
353
|
+
source: "mealu", kind: "milestone", title: "A household milestone",
|
|
354
|
+
facts: { count: 3 }, urgency: "today", dedupeKey: "milestone-2026-11-08",
|
|
355
|
+
});
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
`WireHouseholdSignalInput` → `Promise<WireHouseholdSignalResult>` (`id`, `status`,
|
|
359
|
+
`deduped`). Facts are data, never instructions; urgency `now` requests a batched
|
|
360
|
+
review, not guaranteed delivery. See [Household signals](../../docs/household-signals.md)
|
|
361
|
+
for limits, expiry, dedupe and editorial semantics.
|
|
362
|
+
|
|
363
|
+
## Publishing
|
|
364
|
+
|
|
365
|
+
Every change to this package is published; consumer apps must only use
|
|
366
|
+
published versions (never copy SDK code or hand-roll `/v1` fetch helpers for a
|
|
367
|
+
feature the SDK lacks: add it here and publish).
|
|
368
|
+
|
|
369
|
+
1. Make the change (after `/v1` contract edits, regenerate `src/generated.ts`
|
|
370
|
+
and confirm `npm run check:contract` from the repo root).
|
|
371
|
+
2. Bump the version: `npm version <x.y.z> --no-git-tag-version` (minor for new
|
|
372
|
+
methods/fields, patch for fixes, major for breaking changes).
|
|
373
|
+
3. Add a `CHANGELOG.md` entry for that version.
|
|
374
|
+
4. Verify: `npm run build` here and `npx vitest run tests/sdk` from the repo root.
|
|
375
|
+
5. Publish: `npm publish` (runs `prepublishOnly` → build; npm user `betterlu`).
|
|
376
|
+
Check with `npm view @betterlu/agentlu version`.
|
|
377
|
+
6. Commit the bump with the change, then update consumers to the new range
|
|
378
|
+
(`npm install @betterlu/agentlu@^<x.y.z>`) and switch them to the new API.
|
|
379
|
+
|
package/dist/generated.d.ts
CHANGED
|
@@ -8,6 +8,92 @@
|
|
|
8
8
|
* contract. They describe the bytes on the wire (snake_case); the SDK's own
|
|
9
9
|
* types are the ergonomic view over them.
|
|
10
10
|
*/
|
|
11
|
+
export interface WireBriefPublishInput {
|
|
12
|
+
"source": string;
|
|
13
|
+
"key": string;
|
|
14
|
+
"kind": "edition" | "report" | "note" | "story";
|
|
15
|
+
"audience": "larry" | "misa" | "both";
|
|
16
|
+
"title": string;
|
|
17
|
+
"dek"?: string;
|
|
18
|
+
"body"?: string;
|
|
19
|
+
"bodyFormat"?: "markdown" | "html";
|
|
20
|
+
"entries"?: Array<{
|
|
21
|
+
"title": string;
|
|
22
|
+
"url"?: string;
|
|
23
|
+
"image"?: string;
|
|
24
|
+
"chips"?: string[];
|
|
25
|
+
"body"?: string;
|
|
26
|
+
}>;
|
|
27
|
+
"images"?: string[];
|
|
28
|
+
"url"?: string;
|
|
29
|
+
"keep"?: boolean;
|
|
30
|
+
"ttlDays"?: number;
|
|
31
|
+
"collection"?: string;
|
|
32
|
+
"sourceLabel"?: string;
|
|
33
|
+
"sourceEmoji"?: string;
|
|
34
|
+
"coverArt"?: boolean;
|
|
35
|
+
"jobRunId"?: string;
|
|
36
|
+
"artifactId"?: string;
|
|
37
|
+
"publishedAt"?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface WireBriefDetail {
|
|
40
|
+
"id": string;
|
|
41
|
+
"source": string;
|
|
42
|
+
"sourceLabel": string;
|
|
43
|
+
"sourceEmoji": string | null;
|
|
44
|
+
"kind": "edition" | "report" | "note" | "story";
|
|
45
|
+
"audience": "larry" | "misa" | "both";
|
|
46
|
+
"title": string;
|
|
47
|
+
"dek": string | null;
|
|
48
|
+
"coverUrl": string | null;
|
|
49
|
+
"coverArtStatus": "none" | "pending" | "ready" | "failed";
|
|
50
|
+
"edition": {
|
|
51
|
+
"hero": string;
|
|
52
|
+
"highlights": string[];
|
|
53
|
+
} | null;
|
|
54
|
+
"keep": boolean;
|
|
55
|
+
"collection": string | null;
|
|
56
|
+
"readingMinutes": number | null;
|
|
57
|
+
"publishedAt": string;
|
|
58
|
+
"bodyFormat": "markdown" | "html";
|
|
59
|
+
"bodyHtml": string | null;
|
|
60
|
+
"frameUrl": string | null;
|
|
61
|
+
"entries": Array<{
|
|
62
|
+
"title": string;
|
|
63
|
+
"url"?: string;
|
|
64
|
+
"image"?: string;
|
|
65
|
+
"chips"?: string[];
|
|
66
|
+
"body"?: string;
|
|
67
|
+
"bodyHtml"?: string;
|
|
68
|
+
}> | null;
|
|
69
|
+
"images": string[];
|
|
70
|
+
"url": string | null;
|
|
71
|
+
"jobRunId": string | null;
|
|
72
|
+
"artifactId": string | null;
|
|
73
|
+
"expiresAt": string | null;
|
|
74
|
+
}
|
|
75
|
+
export interface WireBriefPublishResult {
|
|
76
|
+
"id": string;
|
|
77
|
+
"url": string;
|
|
78
|
+
"coverUrl": string | null;
|
|
79
|
+
"coverArtStatus": "none" | "pending" | "ready" | "failed";
|
|
80
|
+
"updated": boolean;
|
|
81
|
+
}
|
|
82
|
+
export interface WireHouseholdSignalInput {
|
|
83
|
+
"source": string;
|
|
84
|
+
"kind": string;
|
|
85
|
+
"title": string;
|
|
86
|
+
"facts": Record<string, unknown>;
|
|
87
|
+
"urgency"?: "fyi" | "today" | "now";
|
|
88
|
+
"dedupeKey": string;
|
|
89
|
+
"occurredAt"?: string;
|
|
90
|
+
"expiresAt"?: string;
|
|
91
|
+
}
|
|
92
|
+
export interface WireHouseholdSignalResult {
|
|
93
|
+
"id": string;
|
|
94
|
+
"status": "pending" | "held" | "posted" | "folded" | "dropped" | "expired" | "failed";
|
|
95
|
+
"deduped": boolean;
|
|
96
|
+
}
|
|
11
97
|
export interface WireCreateResponse {
|
|
12
98
|
/** Execution backend. */
|
|
13
99
|
"backend"?: "pi";
|
|
@@ -71,7 +157,7 @@ export interface WireCreateResponse {
|
|
|
71
157
|
"metadata"?: Record<string, string>;
|
|
72
158
|
"include"?: Array<"reasoning" | "rounds" | "subagents" | "artifacts">;
|
|
73
159
|
/** Which agent runs the request. The recommended general machine agent is `api`, which has no persona: `instructions` replace its system prompt. Pin `fast` for the chat-tuned version. `direct` selects the direct tier: the profile-free `api` agent with no tools and no session (see the Tiers section). `household/<slug>` runs a household agent built in the Agents studio (list them at GET /v1/agents). An `<app>/<name>` id runs an agent the caller's app declared at registration. `research` is an alias for `thorough` with Report output (a sourced report artifact). Retired ids (`mealu`, `nestlu`, `kitchen`, `waterlu`, `money`, `swarm`, `storylu`, `google-research`, `google-image`, `android`) return HTTP 400 `unknown_agent` with a pointer to their successor; the Android phone is now the `android` tool family on `assistant`. */
|
|
74
|
-
"agent"?: "auto" | "fast" | "thorough" | "assistant" | "code" | "google" | "image" | "api" | "digest" | "
|
|
160
|
+
"agent"?: "auto" | "fast" | "thorough" | "assistant" | "code" | "google" | "image" | "api" | "digest" | "herald" | "cradle" | "custom" | "direct" | string | "mealu" | "nestlu" | "kitchen" | "waterlu" | "money" | "swarm" | "stage" | "roleplay" | "storylu" | "google-research" | "google-image" | "android" | "research";
|
|
75
161
|
/** Thinking level. Explicit `effort: "off"` is honored; other requests are clamped to the selected model's supported capabilities. The SDK does not promise provider benchmark parity. */
|
|
76
162
|
"reasoning"?: {
|
|
77
163
|
"effort"?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
@@ -149,8 +235,9 @@ export interface WireRegisterClientRequest {
|
|
|
149
235
|
/** Run defaults applied when a request omits the field: request > registered client default > use-case tier > agent/profile default. The built-in `store` default is true. Register one client per use-case (e.g. mealu-enrich) with its system prompt and tools baked in. */
|
|
150
236
|
"defaults"?: {
|
|
151
237
|
"backend"?: "pi";
|
|
152
|
-
"agent"?: "auto" | "fast" | "thorough" | "assistant" | "code" | "google" | "image" | "api" | "digest" | "
|
|
238
|
+
"agent"?: "auto" | "fast" | "thorough" | "assistant" | "code" | "google" | "image" | "api" | "digest" | "herald" | "cradle" | "custom" | "direct" | string | "mealu" | "nestlu" | "kitchen" | "waterlu" | "money" | "swarm" | "stage" | "roleplay" | "storylu" | "google-research" | "google-image" | "android" | "research";
|
|
153
239
|
"model"?: string;
|
|
240
|
+
"modelRoute"?: "chat.quick" | "chat.household" | "chat.deep" | "chat.code" | "device" | "background.digest" | "utility" | "memory.extract" | "memory.judge" | "memory.consolidate";
|
|
154
241
|
"instructions"?: string;
|
|
155
242
|
"temperature"?: number;
|
|
156
243
|
"store"?: boolean;
|
|
@@ -200,9 +287,11 @@ export interface WireRegisterClientRequest {
|
|
|
200
287
|
export interface WireClientDefaults {
|
|
201
288
|
"backend"?: "pi";
|
|
202
289
|
/** Which agent runs the request. The recommended general machine agent is `api`, which has no persona: `instructions` replace its system prompt. Pin `fast` for the chat-tuned version. `direct` selects the direct tier: the profile-free `api` agent with no tools and no session (see the Tiers section). `household/<slug>` runs a household agent built in the Agents studio (list them at GET /v1/agents). An `<app>/<name>` id runs an agent the caller's app declared at registration. `research` is an alias for `thorough` with Report output (a sourced report artifact). Retired ids (`mealu`, `nestlu`, `kitchen`, `waterlu`, `money`, `swarm`, `storylu`, `google-research`, `google-image`, `android`) return HTTP 400 `unknown_agent` with a pointer to their successor; the Android phone is now the `android` tool family on `assistant`. */
|
|
203
|
-
"agent"?: "auto" | "fast" | "thorough" | "assistant" | "code" | "google" | "image" | "api" | "digest" | "
|
|
290
|
+
"agent"?: "auto" | "fast" | "thorough" | "assistant" | "code" | "google" | "image" | "api" | "digest" | "herald" | "cradle" | "custom" | "direct" | string | "mealu" | "nestlu" | "kitchen" | "waterlu" | "money" | "swarm" | "stage" | "roleplay" | "storylu" | "google-research" | "google-image" | "android" | "research";
|
|
204
291
|
/** ModelConfig id (GET /v1/models). Stock clients may also use an agent name here; prefer explicit `agent` for machine calls. */
|
|
205
292
|
"model"?: string;
|
|
293
|
+
/** Task route whose pool order and effort apply to automatic model selection. Mutually exclusive with model. Explicit request models, builtin chat agents, and agent model pins win; app-owned and api agents inherit the client route. */
|
|
294
|
+
"modelRoute"?: "chat.quick" | "chat.household" | "chat.deep" | "chat.code" | "device" | "background.digest" | "utility" | "memory.extract" | "memory.judge" | "memory.consolidate";
|
|
206
295
|
/** System prompt for every run of this client. */
|
|
207
296
|
"instructions"?: string;
|
|
208
297
|
"temperature"?: number;
|
|
@@ -263,7 +352,7 @@ export interface WireAppAgentDeclaration {
|
|
|
263
352
|
}
|
|
264
353
|
export interface WireCreateThreadRequest {
|
|
265
354
|
"title"?: string;
|
|
266
|
-
"agent"?: "auto" | "fast" | "thorough" | "assistant" | "code" | "google" | "image" | "api" | "digest" | "
|
|
355
|
+
"agent"?: "auto" | "fast" | "thorough" | "assistant" | "code" | "google" | "image" | "api" | "digest" | "herald" | "cradle" | "custom" | "research" | string;
|
|
267
356
|
"model"?: string;
|
|
268
357
|
"person"?: string | null;
|
|
269
358
|
"owner"?: "client" | "person";
|
|
@@ -299,7 +388,7 @@ export interface WireResponse {
|
|
|
299
388
|
"created_at": number;
|
|
300
389
|
"status": "queued" | "in_progress" | "completed" | "failed" | "incomplete" | "cancelled";
|
|
301
390
|
"backend": "pi";
|
|
302
|
-
"agent": "auto" | "fast" | "thorough" | "assistant" | "code" | "google" | "image" | "api" | "digest" | "
|
|
391
|
+
"agent": "auto" | "fast" | "thorough" | "assistant" | "code" | "google" | "image" | "api" | "digest" | "herald" | "cradle" | "custom";
|
|
303
392
|
"model": string;
|
|
304
393
|
"conversation"?: {
|
|
305
394
|
"id": string;
|
|
@@ -369,6 +458,7 @@ export interface WireResponse {
|
|
|
369
458
|
"thread_id"?: string | null;
|
|
370
459
|
"retries"?: number;
|
|
371
460
|
"effective_model"?: string | null;
|
|
461
|
+
"model_route"?: "chat.quick" | "chat.household" | "chat.deep" | "chat.code" | "device" | "background.digest" | "utility" | "memory.extract" | "memory.judge" | "memory.consolidate";
|
|
372
462
|
"service_tier"?: "standard" | "priority";
|
|
373
463
|
"execution_path"?: string | null;
|
|
374
464
|
"queue_wait_ms"?: number | null;
|
|
@@ -411,6 +501,8 @@ export interface WireResponse {
|
|
|
411
501
|
"android"?: {
|
|
412
502
|
"sessionId"?: string;
|
|
413
503
|
"username"?: string;
|
|
504
|
+
"device"?: string;
|
|
505
|
+
"deviceName"?: string;
|
|
414
506
|
"ownerId"?: string;
|
|
415
507
|
"status": "active" | "needs_human" | "human_control" | "idle" | "closed" | "interrupted" | "reserved";
|
|
416
508
|
"action"?: string;
|
|
@@ -486,7 +578,7 @@ export interface WireThread {
|
|
|
486
578
|
"created_at": number;
|
|
487
579
|
"updated_at": number;
|
|
488
580
|
"title": string;
|
|
489
|
-
"agent": "auto" | "fast" | "thorough" | "assistant" | "code" | "google" | "image" | "api" | "digest" | "
|
|
581
|
+
"agent": "auto" | "fast" | "thorough" | "assistant" | "code" | "google" | "image" | "api" | "digest" | "herald" | "cradle" | "custom";
|
|
490
582
|
"model": string | null;
|
|
491
583
|
/** "api" for threads created through /v1; "chat" when a human started it. */
|
|
492
584
|
"origin": string;
|
|
@@ -525,8 +617,9 @@ export interface WireClient {
|
|
|
525
617
|
"allow_person_threads"?: boolean;
|
|
526
618
|
"defaults"?: {
|
|
527
619
|
"backend"?: "pi";
|
|
528
|
-
"agent"?: "auto" | "fast" | "thorough" | "assistant" | "code" | "google" | "image" | "api" | "digest" | "
|
|
620
|
+
"agent"?: "auto" | "fast" | "thorough" | "assistant" | "code" | "google" | "image" | "api" | "digest" | "herald" | "cradle" | "custom" | "direct" | string | "mealu" | "nestlu" | "kitchen" | "waterlu" | "money" | "swarm" | "stage" | "roleplay" | "storylu" | "google-research" | "google-image" | "android" | "research";
|
|
529
621
|
"model"?: string;
|
|
622
|
+
"modelRoute"?: "chat.quick" | "chat.household" | "chat.deep" | "chat.code" | "device" | "background.digest" | "utility" | "memory.extract" | "memory.judge" | "memory.consolidate";
|
|
530
623
|
"instructions"?: string;
|
|
531
624
|
"temperature"?: number;
|
|
532
625
|
"store"?: boolean;
|
|
@@ -650,7 +743,7 @@ export interface WireResponseList {
|
|
|
650
743
|
"created_at": number;
|
|
651
744
|
"status": "queued" | "in_progress" | "completed" | "failed" | "incomplete" | "cancelled";
|
|
652
745
|
"backend": "pi";
|
|
653
|
-
"agent": "auto" | "fast" | "thorough" | "assistant" | "code" | "google" | "image" | "api" | "digest" | "
|
|
746
|
+
"agent": "auto" | "fast" | "thorough" | "assistant" | "code" | "google" | "image" | "api" | "digest" | "herald" | "cradle" | "custom";
|
|
654
747
|
"model": string;
|
|
655
748
|
"conversation"?: {
|
|
656
749
|
"id": string;
|
|
@@ -715,6 +808,7 @@ export interface WireResponseList {
|
|
|
715
808
|
"thread_id"?: string | null;
|
|
716
809
|
"retries"?: number;
|
|
717
810
|
"effective_model"?: string | null;
|
|
811
|
+
"model_route"?: "chat.quick" | "chat.household" | "chat.deep" | "chat.code" | "device" | "background.digest" | "utility" | "memory.extract" | "memory.judge" | "memory.consolidate";
|
|
718
812
|
"service_tier"?: "standard" | "priority";
|
|
719
813
|
"execution_path"?: string | null;
|
|
720
814
|
"queue_wait_ms"?: number | null;
|
|
@@ -757,6 +851,8 @@ export interface WireResponseList {
|
|
|
757
851
|
"android"?: {
|
|
758
852
|
"sessionId"?: string;
|
|
759
853
|
"username"?: string;
|
|
854
|
+
"device"?: string;
|
|
855
|
+
"deviceName"?: string;
|
|
760
856
|
"ownerId"?: string;
|
|
761
857
|
"status": "active" | "needs_human" | "human_control" | "idle" | "closed" | "interrupted" | "reserved";
|
|
762
858
|
"action"?: string;
|
|
@@ -782,7 +878,7 @@ export interface WireThreadList {
|
|
|
782
878
|
"created_at": number;
|
|
783
879
|
"updated_at": number;
|
|
784
880
|
"title": string;
|
|
785
|
-
"agent": "auto" | "fast" | "thorough" | "assistant" | "code" | "google" | "image" | "api" | "digest" | "
|
|
881
|
+
"agent": "auto" | "fast" | "thorough" | "assistant" | "code" | "google" | "image" | "api" | "digest" | "herald" | "cradle" | "custom";
|
|
786
882
|
"model": string | null;
|
|
787
883
|
"origin": string;
|
|
788
884
|
"end_user"?: string | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type { WireBriefPublishInput, WireBriefPublishResult, WireBriefDetail } from "./generated.js";
|
|
2
|
+
export type { WireBriefPublishInput, WireBriefPublishResult, WireBriefDetail } from "./generated.js";
|
|
3
|
+
export type { WireBriefPublishInput as BriefPublishInput, WireBriefPublishResult as BriefPublishResult, WireBriefDetail as BriefDetail } from "./generated.js";
|
|
1
4
|
/**
|
|
2
5
|
* @betterlu/agentlu - client for the agentlu service API.
|
|
3
6
|
*
|
|
@@ -24,8 +27,8 @@
|
|
|
24
27
|
* Wire types generated from the server's zod contract are re-exported here as
|
|
25
28
|
* `Wire*` types (see `generated.ts`, regenerate with `npm run gen:contract`).
|
|
26
29
|
*/
|
|
27
|
-
import type { WireAppAgentDeclaration, WireClientDefaults, WireUseCaseProfile } from "./generated.js";
|
|
28
|
-
export type { WireAppAgentDeclaration, WireAgentInfo, WireChatCompletion, WireChatCompletionRequest, WireClient, WireClientDefaults, WireCreateDecision, WireCreateResponse, WireCreateThreadRequest, WireDecision, WireError, WireFile, WireModelInfo, WireRegisterClientRequest, WireResponse, WireStreamEvent, WireThread, WireThreadMessage, WireToolInfo, WireUseCaseProfile, } from "./generated.js";
|
|
30
|
+
import type { WireHouseholdSignalInput, WireHouseholdSignalResult, WireAppAgentDeclaration, WireClientDefaults, WireUseCaseProfile } from "./generated.js";
|
|
31
|
+
export type { WireHouseholdSignalInput, WireHouseholdSignalResult, WireAppAgentDeclaration, WireAgentInfo, WireChatCompletion, WireChatCompletionRequest, WireClient, WireClientDefaults, WireCreateDecision, WireCreateResponse, WireCreateThreadRequest, WireDecision, WireError, WireFile, WireModelInfo, WireRegisterClientRequest, WireResponse, WireStreamEvent, WireThread, WireThreadMessage, WireToolInfo, WireUseCaseProfile, } from "./generated.js";
|
|
29
32
|
export declare const DEFAULT_BASE_URL = "http://localhost:8912/v1";
|
|
30
33
|
/**
|
|
31
34
|
* Accept an origin (`http://host:8912`) or a `/v1` base and normalize to the
|
|
@@ -86,6 +89,8 @@ export interface AndroidOperation {
|
|
|
86
89
|
export interface AndroidActivity {
|
|
87
90
|
sessionId: string;
|
|
88
91
|
username: string;
|
|
92
|
+
device?: string;
|
|
93
|
+
deviceName?: string;
|
|
89
94
|
ownerId?: string;
|
|
90
95
|
status: AndroidStatus;
|
|
91
96
|
action?: string;
|
|
@@ -183,6 +188,16 @@ export interface DecisionOptions {
|
|
|
183
188
|
/** Caller cancellation, combined with `timeoutMs` when both are set. */
|
|
184
189
|
signal?: AbortSignal;
|
|
185
190
|
}
|
|
191
|
+
/** Per-request transport knobs threaded through `request()` / `raw()`. */
|
|
192
|
+
interface RequestOptions {
|
|
193
|
+
auth?: boolean;
|
|
194
|
+
apiKey?: string;
|
|
195
|
+
timeoutMs?: number;
|
|
196
|
+
maxAttempts?: number;
|
|
197
|
+
signal?: AbortSignal;
|
|
198
|
+
/** Extra request headers (e.g. a caller-supplied Idempotency-Key). */
|
|
199
|
+
headers?: Record<string, string>;
|
|
200
|
+
}
|
|
186
201
|
export interface DecisionObject {
|
|
187
202
|
id: string;
|
|
188
203
|
object: "decision";
|
|
@@ -656,6 +671,13 @@ export declare class AgentLu {
|
|
|
656
671
|
delete: (id: string) => Promise<unknown>;
|
|
657
672
|
messages: (id: string) => Promise<unknown>;
|
|
658
673
|
};
|
|
674
|
+
readonly briefs: {
|
|
675
|
+
publish: (input: WireBriefPublishInput, opts?: RequestOptions) => Promise<WireBriefPublishResult>;
|
|
676
|
+
get: (id: string, opts?: RequestOptions) => Promise<WireBriefDetail>;
|
|
677
|
+
};
|
|
678
|
+
readonly household: {
|
|
679
|
+
signal: (input: WireHouseholdSignalInput, opts?: RequestOptions) => Promise<WireHouseholdSignalResult>;
|
|
680
|
+
};
|
|
659
681
|
/**
|
|
660
682
|
* Decision model (System One / Jev): typed questions in, calibrated
|
|
661
683
|
* probabilities out, ~100-500ms. Sync only - there is no stream or poll.
|
package/dist/index.js
CHANGED
|
@@ -728,6 +728,13 @@ export class AgentLu {
|
|
|
728
728
|
delete: (id) => this.request("DELETE", `/threads/${encodeURIComponent(id)}`),
|
|
729
729
|
messages: (id) => this.request("GET", `/threads/${encodeURIComponent(id)}/messages`),
|
|
730
730
|
};
|
|
731
|
+
briefs = {
|
|
732
|
+
publish: (input, opts) => this.request("POST", "/briefs", input, opts),
|
|
733
|
+
get: (id, opts) => this.request("GET", `/briefs/${encodeURIComponent(id)}`, undefined, opts),
|
|
734
|
+
};
|
|
735
|
+
household = {
|
|
736
|
+
signal: (input, opts) => this.request("POST", "/household/signals", input, opts),
|
|
737
|
+
};
|
|
731
738
|
/**
|
|
732
739
|
* Decision model (System One / Jev): typed questions in, calibrated
|
|
733
740
|
* probabilities out, ~100-500ms. Sync only - there is no stream or poll.
|
package/package.json
CHANGED