@lumavox/server 0.14.7 → 0.19.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.
@@ -346,6 +346,10 @@ export type GenerationInfo = {
346
346
  megapixels: number | null;
347
347
  safety_tolerance: number | null;
348
348
  enhance_prompt: boolean | null;
349
+ /**
350
+ * Whether `flux-3-image` searched the web. Null otherwise.
351
+ */
352
+ grounding: boolean | null;
349
353
  /**
350
354
  * `fld_…` the result lands in, or null for the root.
351
355
  */
@@ -355,7 +359,7 @@ export type GenerationInfo = {
355
359
  */
356
360
  duration: number | null;
357
361
  /**
358
- * `hd` or `fhd`. Video only.
362
+ * A clip's `hd` or `fhd`, or a FLUX 3 image's tier (`768sq` to `4k`).
359
363
  */
360
364
  resolution: string | null;
361
365
  generate_audio: boolean | null;
@@ -530,23 +534,31 @@ export type SkyboxFile = {
530
534
  };
531
535
  export type ImageRequest = {
532
536
  /**
533
- * What to generate.
537
+ * What to generate. FLUX 3's models also read bounding boxes at the end of the prompt, to place each element.
534
538
  */
535
539
  prompt: string;
536
540
  /**
537
- * One of: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16.
541
+ * One of: flux-2-max, flux-3-image, flux-3-image-klein. **The model decides which other fields apply, and how the image is priced**: `flux-2-max` is sized by `megapixels` and charged per megapixel, its references included; `flux-3-image` and `flux-3-image-klein` are sized by `resolution` and charged per image at that tier, their references free. A field the model does not take is a 422 naming it.
542
+ */
543
+ model?: 'flux-2-max' | 'flux-3-image' | 'flux-3-image-klein';
544
+ /**
545
+ * For `flux-2-max`, one of: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16. For `flux-3-image` and `flux-3-image-klein`, one of: 21:9, 2:1, 16:9, 3:2, 7:5, 4:3, 5:4, 1:1, 4:5, 3:4, 5:7, 2:3, 9:16, 1:2, 9:21, auto — `auto` keeps the ratio the prompt asks for, else the first reference's framing.
538
546
  */
539
547
  aspect_ratio?: string;
540
548
  /**
541
- * Output size. **This and your references are what you are charged on** — the price is per megapixel, the output's with a one-megapixel minimum and each reference's at the same rate on its own size, so a request's cost is known before it is made.
549
+ * `flux-2-max` only, default 1. Output size. **This and your references are what you are charged on** — the price is per megapixel, the output's with a one-megapixel minimum and each reference's at the same rate on its own size, so a request's cost is known before it is made.
542
550
  */
543
- megapixels?: number;
551
+ megapixels?: number | null;
544
552
  /**
545
- * One of: jpeg, png, webp.
553
+ * `flux-3-image` and `flux-3-image-klein` only, default `1k`. One of: 768sq, 1k, 1.5k, 2k, 4k — roughly 0.6, 1, 2, 4 and 16 megapixels, the exact pixels the model's for the ratio. **This is what you are charged on**: one price per image at each tier. `flux-3-image` makes at most `2k` from references.
546
554
  */
547
- output_format?: string;
555
+ resolution?: string | null;
548
556
  /**
549
- * Reuse a seed to get the same image again from the same prompt. Omit for a different one each time.
557
+ * For `flux-2-max`, one of: jpeg, png, webp; for `flux-3-image-klein`, one of: jpeg, png. Default `jpeg`. `flux-3-image` takes none: its file is the type the model writes, on `image.content_type`.
558
+ */
559
+ output_format?: string | null;
560
+ /**
561
+ * Reuse a seed to get the same image again from the same prompt. Omit for a different one each time. `flux-3-image` takes none; `flux-3-image-klein`'s is at most 4294967295.
550
562
  */
551
563
  seed?: number | null;
552
564
  /**
@@ -554,11 +566,15 @@ export type ImageRequest = {
554
566
  */
555
567
  safety_tolerance?: number;
556
568
  /**
557
- * Let the model rewrite your prompt before rendering. On by default, which is the provider's own behaviour. Turn it off to send your words exactly as written.
569
+ * Let the model rewrite your prompt before rendering. On by default, which is the provider's own behaviour; on `flux-2-max`, turn it off to send your words exactly as written. `flux-3-image` and `flux-3-image-klein` always rewrite it, so `false` is refused there.
558
570
  */
559
- enhance_prompt?: boolean;
571
+ enhance_prompt?: boolean | null;
572
+ /**
573
+ * `flux-3-image` only, default `true`: the model may search the web and images to get real things right before it renders. `false` is faster and uses only your prompt.
574
+ */
575
+ grounding?: boolean | null;
560
576
  /**
561
- * Up to eight images from your library for the model to work from. **Input and output share a 9 megapixel budget** — at a 1 MP output that is eight references, at 2 MP it is seven — so send a smaller `variant` when you need more of them. Over budget is a 400 naming the numbers, never a silent drop. **Each reference is charged** at the output's per-megapixel rate, on the megapixels of the copy sent, with no minimum.
577
+ * Images from your library for the model to work from: up to 8 for `flux-2-max`, 10 for `flux-3-image` and `flux-3-image-klein`. On `flux-2-max`, **input and output share a 9 megapixel budget** — at a 1 MP output that is eight references, at 2 MP it is seven — so send a smaller `variant` when you need more of them; over budget is a 422 naming the numbers, never a silent drop; and **each reference is charged** at the output's per-megapixel rate, on the megapixels of the copy sent, with no minimum. On `flux-3-image` and `flux-3-image-klein` references cost nothing and have no budget, but each must be at least 256 pixels a side and at most 16 megapixels.
562
578
  */
563
579
  references?: Array<Reference>;
564
580
  /**
@@ -766,11 +782,11 @@ export type TemplateInfo = {
766
782
  */
767
783
  example_url: string | null;
768
784
  /**
769
- * What one generation from it costs your organisation, in micro-credits (1 credit is 1,000,000). Knowable up front because every parameter is frozen — but on an image template your own pictures are charged on top, each at the output's per-megapixel rate and the size sent. Null when the platform has no rate for the capability.
785
+ * What one generation from it costs your organisation, in micro-credits (1 credit is 1,000,000). Knowable up front because every parameter is frozen — but on a `flux-2-max` image template your own pictures are charged on top, each at the output's per-megapixel rate and the size sent. Null when the platform has no rate for the capability.
770
786
  */
771
787
  credits_micros: number | null;
772
788
  /**
773
- * On an image template, the megapixels of the pictures the template itself sends with every generation, each charged at the output's per-megapixel rate and already in `credits_micros` — so an estimate that moves the output's size keeps this term as it is, and adds your own pictures at the size they are sent. 0 on a video or skybox template, whose price no picture changes.
789
+ * On an image template, the megapixels of the pictures the template itself sends with every generation, each charged at the output's per-megapixel rate and already in `credits_micros` — so an estimate that moves the output's size keeps this term as it is, and adds your own pictures at the size they are sent. 0 on a video or skybox template, and on a FLUX 3 image template, whose price no picture changes.
774
790
  */
775
791
  fixed_megapixels: number;
776
792
  /**
@@ -1144,6 +1160,10 @@ export type MessageInfo = {
1144
1160
  * On a reply: what the agent looked up in its knowledge for it — each lookup's query, outcome and the entries it found, with their scores. Null when nothing was looked up.
1145
1161
  */
1146
1162
  knowledge: MessageKnowledge | null;
1163
+ /**
1164
+ * On a reply: what the agent searched its memories of the person for (`search_memories`), and the memories it found. Null when it searched none.
1165
+ */
1166
+ memories: MessageMemories | null;
1147
1167
  /**
1148
1168
  * How the agent said it felt when it wrote this reply, when the agent reports moods. Null on user messages, on agents with emotion off, and on any reply where the model did not report a usable one.
1149
1169
  */
@@ -1186,6 +1206,28 @@ export type KnowledgeCitation = {
1186
1206
  score: number;
1187
1207
  title: string;
1188
1208
  };
1209
+ export type MessageMemories = {
1210
+ /**
1211
+ * The memories it found, best first: ids, titles and scores. Each one's story went to the model alone.
1212
+ */
1213
+ memories: Array<MemoryCitation>;
1214
+ /**
1215
+ * `found`, `none` (nothing alike enough), or `failed` (the search itself could not be done).
1216
+ */
1217
+ outcome: 'found' | 'none' | 'failed';
1218
+ /**
1219
+ * What the agent searched for, in its own words.
1220
+ */
1221
+ query: string;
1222
+ };
1223
+ export type MemoryCitation = {
1224
+ memory_id: string;
1225
+ /**
1226
+ * How alike the memory is to the search, 0 to 1.
1227
+ */
1228
+ score: number;
1229
+ title: string;
1230
+ };
1189
1231
  /**
1190
1232
  * A web page the reply read with the agent's `url_context` switch on.
1191
1233
  */
@@ -1337,10 +1379,6 @@ export type CompactionInfo = {
1337
1379
  * The last message this summary covers. Anything after it — the last few exchanges, kept word for word, then whatever is said next — is still sent to the model verbatim.
1338
1380
  */
1339
1381
  after_seq: number;
1340
- /**
1341
- * Durable facts written to long-term memory by this call. Zero when extraction was not asked for, or when there was nothing worth keeping.
1342
- */
1343
- facts_stored: number;
1344
1382
  input_tokens: number | null;
1345
1383
  /**
1346
1384
  * What produced the summary.
@@ -1357,13 +1395,59 @@ export type CompactionInfo = {
1357
1395
  */
1358
1396
  trigger: 'manual' | 'automatic' | 'idle';
1359
1397
  };
1398
+ /**
1399
+ * Takes no fields: send `{}` or no body. A compaction only summarises; to read the conversation for facts, `POST /v1/agent/sessions/{id}/extract`.
1400
+ */
1360
1401
  export type CompactRequest = {
1402
+ [key: string]: never;
1403
+ };
1404
+ /**
1405
+ * One reading of a conversation for durable facts about the person: what was said since the last reading.
1406
+ */
1407
+ export type FactsReadInfo = {
1361
1408
  /**
1362
- * Whether to also extract durable facts about the end user, in the same model call.
1363
- *
1364
- * Unset uses the agent's own setting.
1409
+ * Facts already remembered that this conversation said again; they stay in front of the agent first.
1410
+ */
1411
+ facts_confirmed: number;
1412
+ /**
1413
+ * New facts the reading found.
1414
+ */
1415
+ facts_found: number;
1416
+ /**
1417
+ * Facts already remembered that this conversation changed or said are no longer true: replaced by what is true now, or removed.
1418
+ */
1419
+ facts_revised: number;
1420
+ /**
1421
+ * New facts written to long-term memory: those found, less any already remembered in the same words.
1365
1422
  */
1366
- extract_facts?: boolean | null;
1423
+ facts_stored: number;
1424
+ input_tokens: number | null;
1425
+ /**
1426
+ * What read the conversation.
1427
+ */
1428
+ model: string | null;
1429
+ output_tokens: number | null;
1430
+ session_id: string;
1431
+ };
1432
+ /**
1433
+ * One reading of a conversation for memories: what was said since the last reading.
1434
+ */
1435
+ export type MemoriesWrittenInfo = {
1436
+ input_tokens: number | null;
1437
+ /**
1438
+ * New topics the reading kept.
1439
+ */
1440
+ memories_created: number;
1441
+ /**
1442
+ * Memories the conversation went on with, rewritten.
1443
+ */
1444
+ memories_updated: number;
1445
+ /**
1446
+ * What read the conversation.
1447
+ */
1448
+ model: string | null;
1449
+ output_tokens: number | null;
1450
+ session_id: string;
1367
1451
  };
1368
1452
  export type FactPage = {
1369
1453
  data: Array<FactInfo>;
@@ -1427,6 +1511,67 @@ export type FactsDeleted = {
1427
1511
  */
1428
1512
  facts_deleted: number;
1429
1513
  };
1514
+ export type MemoryPage = {
1515
+ data: Array<MemoryInfo>;
1516
+ /**
1517
+ * Pass as `cursor` for the next page; `null` when this is the last.
1518
+ */
1519
+ next_cursor: string | null;
1520
+ };
1521
+ /**
1522
+ * One memory: a topic of the person's life, kept across conversations.
1523
+ */
1524
+ export type MemoryInfo = {
1525
+ /**
1526
+ * The agent whose conversation first wrote it.
1527
+ */
1528
+ agent_id: string;
1529
+ /**
1530
+ * One of the writing agent's `memory_categories`, or the platform's.
1531
+ */
1532
+ category: string;
1533
+ /**
1534
+ * The topic's story so far, dated, ending with where it stands — rewritten whole by each conversation that comes back to it.
1535
+ */
1536
+ content: string;
1537
+ /**
1538
+ * How many conversations fed it.
1539
+ */
1540
+ conversation_count: number;
1541
+ created_at: string;
1542
+ /**
1543
+ * The first message it was written from.
1544
+ */
1545
+ first_talked_at: string;
1546
+ id: string;
1547
+ /**
1548
+ * The latest message it was written from.
1549
+ */
1550
+ last_talked_at: string;
1551
+ /**
1552
+ * `person`: every agent of yours that shares memories sees it. `agent`: only the agent that wrote it (`memories_scope`).
1553
+ */
1554
+ scope: 'person' | 'agent';
1555
+ /**
1556
+ * One line: where it stands now.
1557
+ */
1558
+ summary: string;
1559
+ /**
1560
+ * The topic, short.
1561
+ */
1562
+ title: string;
1563
+ updated_at: string;
1564
+ /**
1565
+ * Moves by one each time a conversation rewrites it.
1566
+ */
1567
+ version: number;
1568
+ };
1569
+ export type MemoriesDeleted = {
1570
+ /**
1571
+ * How many memories were deleted.
1572
+ */
1573
+ memories_deleted: number;
1574
+ };
1430
1575
  export type RelationPage = {
1431
1576
  data: Array<RelationInfo>;
1432
1577
  /**
@@ -1453,11 +1598,11 @@ export type AgentSummary = {
1453
1598
  */
1454
1599
  compact_instruction: string | null;
1455
1600
  /**
1456
- * Length cap on the summary, in tokens — the model's thinking included, which shares the budget. Unset uses the platform's `agents.memory.compaction.max_output_tokens` on the Limits page, twice it when the compaction extracts facts too.
1601
+ * Length cap on the summary, in tokens — the model's thinking included, which shares the budget. Unset uses the platform's `agents.memory.compaction.max_output_tokens` on the Limits page.
1457
1602
  */
1458
1603
  compact_max_output_tokens: number | null;
1459
1604
  /**
1460
- * Model for the summarising call. Unset uses the agent's own.
1605
+ * Model for the summarising call. Unset uses the agent's own. A compaction only summarises: facts are a call of their own (`fact_model`).
1461
1606
  */
1462
1607
  compact_model: string | null;
1463
1608
  /**
@@ -1484,18 +1629,26 @@ export type AgentSummary = {
1484
1629
  * The setting the conversation takes place in.
1485
1630
  */
1486
1631
  environment: string | null;
1487
- /**
1488
- * Whether a compaction also extracts durable facts about the user, in the same model call. A caller can always override this per request; this is what the automatic path uses.
1489
- */
1490
- extract_facts_on_compact: boolean;
1491
1632
  /**
1492
1633
  * What counts as worth remembering. Unset falls back to the organisation's default, then to a built-in instruction.
1493
1634
  */
1494
1635
  fact_instruction: string | null;
1636
+ /**
1637
+ * Length cap on a facts reading's answer, in tokens — the model's thinking included, which shares the budget. Unset sends none: the answer is a short list by its shape.
1638
+ */
1639
+ fact_max_output_tokens: number | null;
1640
+ /**
1641
+ * Model for reading a conversation for facts — the reading after a conversation goes quiet, and `POST /v1/agent/sessions/{id}/extract`. Unset uses the agent's own. Never compaction's: the two are separate calls.
1642
+ */
1643
+ fact_model: string | null;
1644
+ /**
1645
+ * Thinking level for the facts reading. Unset sends none, so the model's own default applies.
1646
+ */
1647
+ fact_thinking_level: 'minimal' | 'low' | 'medium' | 'high' | null;
1495
1648
  /**
1496
1649
  * Whether this agent remembers facts about the people it talks to. **On by default**, unlike most switches here.
1497
1650
  *
1498
- * Off, its conversations are never read for facts and its turns recall none — nothing is charged for either — and a compaction extracts nothing whatever it is asked. Facts already stored stay, and other agents still recall the ones they share. Turning it back on reads only what is said from then on.
1651
+ * Off, its conversations are never read for facts and its turns recall none — nothing is charged for either — and `POST /v1/agent/sessions/{id}/extract` is refused. Facts already stored stay, and other agents still recall the ones they share. Turning it back on reads only what is said from then on.
1499
1652
  */
1500
1653
  facts_enabled: boolean;
1501
1654
  /**
@@ -1514,6 +1667,10 @@ export type AgentSummary = {
1514
1667
  * The agent is not greeted twice: a conversation continued within a few minutes gets no fresh opening line, and `ready.greeting` says which before a frame arrives.
1515
1668
  */
1516
1669
  first_message: string | null;
1670
+ /**
1671
+ * Whether a written opening line (`first_message_generated` on) is shown the topics the agent remembers of the person — their titles, where each stands and when it was last talked about — so it can open with one ("How is Inolab Trials going?"). **On by default.** It is never shown their stories, and cannot search them: the opening is one model call. Off, it is shown the person's facts only. Nothing with `memories_enabled` off, and nothing for a scripted line.
1672
+ */
1673
+ first_message_memories: boolean;
1517
1674
  /**
1518
1675
  * Whether `first_message` is a direction for the model rather than the words themselves.
1519
1676
  *
@@ -1558,6 +1715,36 @@ export type AgentSummary = {
1558
1715
  * Cap on reply length. Unset means the model's own limit.
1559
1716
  */
1560
1717
  max_output_tokens: number | null;
1718
+ /**
1719
+ * Whether this agent keeps **memories** of the people it talks to — one per topic of their life, rewritten whenever a conversation comes back to it. **On by default**, as `facts_enabled`.
1720
+ *
1721
+ * Once a conversation has been quiet for the platform's `agents.memory.idle_minutes`, it is read for the topics worth keeping, after its facts, in a model call of its own charged to the key; a conversation in which the person said little is read for nothing and costs nothing. Off, its conversations are never read for memories. Memories already kept stay.
1722
+ */
1723
+ memories_enabled: boolean;
1724
+ /**
1725
+ * Whose memories this agent sees and adds to. `person` (the default, and what unset means): every agent of yours that shares, so the topic one agent started another continues. `agent`: its own only. A memory keeps the scope it was made under.
1726
+ */
1727
+ memories_scope: 'person' | 'agent' | null;
1728
+ /**
1729
+ * The categories a memory may take, in your words: at most 12 of 40 characters each; the last is where a memory that fits none goes. Unset is the platform's `agents.memory.memories.default_categories`.
1730
+ */
1731
+ memory_categories: Array<string> | null;
1732
+ /**
1733
+ * What is worth keeping as a memory. Unset uses the platform's built-in instruction, which leaves out health, beliefs and the like unless the person asked. The platform's own rules — no instructions, no claimed standing, no secrets — follow it whatever it says.
1734
+ */
1735
+ memory_instruction: string | null;
1736
+ /**
1737
+ * Length cap on a memory reading's answer, in tokens — the model's thinking included. Unset sends none.
1738
+ */
1739
+ memory_max_output_tokens: number | null;
1740
+ /**
1741
+ * Model for reading a conversation for memories. Unset uses the agent's own. Never `fact_model` or `compact_model`: each is its own call.
1742
+ */
1743
+ memory_model: string | null;
1744
+ /**
1745
+ * Thinking level for the memory reading. Unset sends none, so the model's own default applies.
1746
+ */
1747
+ memory_thinking_level: 'minimal' | 'low' | 'medium' | 'high' | null;
1561
1748
  /**
1562
1749
  * Gemini model id.
1563
1750
  */
@@ -1708,11 +1895,11 @@ export type AgentInfo = {
1708
1895
  */
1709
1896
  compact_instruction: string | null;
1710
1897
  /**
1711
- * Length cap on the summary, in tokens — the model's thinking included, which shares the budget. Unset uses the platform's `agents.memory.compaction.max_output_tokens` on the Limits page, twice it when the compaction extracts facts too.
1898
+ * Length cap on the summary, in tokens — the model's thinking included, which shares the budget. Unset uses the platform's `agents.memory.compaction.max_output_tokens` on the Limits page.
1712
1899
  */
1713
1900
  compact_max_output_tokens: number | null;
1714
1901
  /**
1715
- * Model for the summarising call. Unset uses the agent's own.
1902
+ * Model for the summarising call. Unset uses the agent's own. A compaction only summarises: facts are a call of their own (`fact_model`).
1716
1903
  */
1717
1904
  compact_model: string | null;
1718
1905
  /**
@@ -1739,18 +1926,26 @@ export type AgentInfo = {
1739
1926
  * The setting the conversation takes place in.
1740
1927
  */
1741
1928
  environment: string | null;
1742
- /**
1743
- * Whether a compaction also extracts durable facts about the user, in the same model call. A caller can always override this per request; this is what the automatic path uses.
1744
- */
1745
- extract_facts_on_compact: boolean;
1746
1929
  /**
1747
1930
  * What counts as worth remembering. Unset falls back to the organisation's default, then to a built-in instruction.
1748
1931
  */
1749
1932
  fact_instruction: string | null;
1933
+ /**
1934
+ * Length cap on a facts reading's answer, in tokens — the model's thinking included, which shares the budget. Unset sends none: the answer is a short list by its shape.
1935
+ */
1936
+ fact_max_output_tokens: number | null;
1937
+ /**
1938
+ * Model for reading a conversation for facts — the reading after a conversation goes quiet, and `POST /v1/agent/sessions/{id}/extract`. Unset uses the agent's own. Never compaction's: the two are separate calls.
1939
+ */
1940
+ fact_model: string | null;
1941
+ /**
1942
+ * Thinking level for the facts reading. Unset sends none, so the model's own default applies.
1943
+ */
1944
+ fact_thinking_level: 'minimal' | 'low' | 'medium' | 'high' | null;
1750
1945
  /**
1751
1946
  * Whether this agent remembers facts about the people it talks to. **On by default**, unlike most switches here.
1752
1947
  *
1753
- * Off, its conversations are never read for facts and its turns recall none — nothing is charged for either — and a compaction extracts nothing whatever it is asked. Facts already stored stay, and other agents still recall the ones they share. Turning it back on reads only what is said from then on.
1948
+ * Off, its conversations are never read for facts and its turns recall none — nothing is charged for either — and `POST /v1/agent/sessions/{id}/extract` is refused. Facts already stored stay, and other agents still recall the ones they share. Turning it back on reads only what is said from then on.
1754
1949
  */
1755
1950
  facts_enabled: boolean;
1756
1951
  /**
@@ -1769,6 +1964,10 @@ export type AgentInfo = {
1769
1964
  * The agent is not greeted twice: a conversation continued within a few minutes gets no fresh opening line, and `ready.greeting` says which before a frame arrives.
1770
1965
  */
1771
1966
  first_message: string | null;
1967
+ /**
1968
+ * Whether a written opening line (`first_message_generated` on) is shown the topics the agent remembers of the person — their titles, where each stands and when it was last talked about — so it can open with one ("How is Inolab Trials going?"). **On by default.** It is never shown their stories, and cannot search them: the opening is one model call. Off, it is shown the person's facts only. Nothing with `memories_enabled` off, and nothing for a scripted line.
1969
+ */
1970
+ first_message_memories: boolean;
1772
1971
  /**
1773
1972
  * Whether `first_message` is a direction for the model rather than the words themselves.
1774
1973
  *
@@ -1813,6 +2012,36 @@ export type AgentInfo = {
1813
2012
  * Cap on reply length. Unset means the model's own limit.
1814
2013
  */
1815
2014
  max_output_tokens: number | null;
2015
+ /**
2016
+ * Whether this agent keeps **memories** of the people it talks to — one per topic of their life, rewritten whenever a conversation comes back to it. **On by default**, as `facts_enabled`.
2017
+ *
2018
+ * Once a conversation has been quiet for the platform's `agents.memory.idle_minutes`, it is read for the topics worth keeping, after its facts, in a model call of its own charged to the key; a conversation in which the person said little is read for nothing and costs nothing. Off, its conversations are never read for memories. Memories already kept stay.
2019
+ */
2020
+ memories_enabled: boolean;
2021
+ /**
2022
+ * Whose memories this agent sees and adds to. `person` (the default, and what unset means): every agent of yours that shares, so the topic one agent started another continues. `agent`: its own only. A memory keeps the scope it was made under.
2023
+ */
2024
+ memories_scope: 'person' | 'agent' | null;
2025
+ /**
2026
+ * The categories a memory may take, in your words: at most 12 of 40 characters each; the last is where a memory that fits none goes. Unset is the platform's `agents.memory.memories.default_categories`.
2027
+ */
2028
+ memory_categories: Array<string> | null;
2029
+ /**
2030
+ * What is worth keeping as a memory. Unset uses the platform's built-in instruction, which leaves out health, beliefs and the like unless the person asked. The platform's own rules — no instructions, no claimed standing, no secrets — follow it whatever it says.
2031
+ */
2032
+ memory_instruction: string | null;
2033
+ /**
2034
+ * Length cap on a memory reading's answer, in tokens — the model's thinking included. Unset sends none.
2035
+ */
2036
+ memory_max_output_tokens: number | null;
2037
+ /**
2038
+ * Model for reading a conversation for memories. Unset uses the agent's own. Never `fact_model` or `compact_model`: each is its own call.
2039
+ */
2040
+ memory_model: string | null;
2041
+ /**
2042
+ * Thinking level for the memory reading. Unset sends none, so the model's own default applies.
2043
+ */
2044
+ memory_thinking_level: 'minimal' | 'low' | 'medium' | 'high' | null;
1816
2045
  /**
1817
2046
  * Gemini model id.
1818
2047
  */
@@ -1905,11 +2134,11 @@ export type AgentCreateRequest = {
1905
2134
  */
1906
2135
  compact_instruction?: string | null;
1907
2136
  /**
1908
- * Length cap on the summary, in tokens — the model's thinking included, which shares the budget. Unset uses the platform's `agents.memory.compaction.max_output_tokens` on the Limits page, twice it when the compaction extracts facts too.
2137
+ * Length cap on the summary, in tokens — the model's thinking included, which shares the budget. Unset uses the platform's `agents.memory.compaction.max_output_tokens` on the Limits page.
1909
2138
  */
1910
2139
  compact_max_output_tokens?: number | null;
1911
2140
  /**
1912
- * Model for the summarising call. Unset uses the agent's own.
2141
+ * Model for the summarising call. Unset uses the agent's own. A compaction only summarises: facts are a call of their own (`fact_model`).
1913
2142
  */
1914
2143
  compact_model?: string | null;
1915
2144
  /**
@@ -1936,18 +2165,26 @@ export type AgentCreateRequest = {
1936
2165
  * The setting the conversation takes place in.
1937
2166
  */
1938
2167
  environment?: string | null;
1939
- /**
1940
- * Whether a compaction also extracts durable facts about the user, in the same model call. A caller can always override this per request; this is what the automatic path uses.
1941
- */
1942
- extract_facts_on_compact?: boolean | null;
1943
2168
  /**
1944
2169
  * What counts as worth remembering. Unset falls back to the organisation's default, then to a built-in instruction.
1945
2170
  */
1946
2171
  fact_instruction?: string | null;
2172
+ /**
2173
+ * Length cap on a facts reading's answer, in tokens — the model's thinking included, which shares the budget. Unset sends none: the answer is a short list by its shape.
2174
+ */
2175
+ fact_max_output_tokens?: number | null;
2176
+ /**
2177
+ * Model for reading a conversation for facts — the reading after a conversation goes quiet, and `POST /v1/agent/sessions/{id}/extract`. Unset uses the agent's own. Never compaction's: the two are separate calls.
2178
+ */
2179
+ fact_model?: string | null;
2180
+ /**
2181
+ * Thinking level for the facts reading. Unset sends none, so the model's own default applies.
2182
+ */
2183
+ fact_thinking_level?: 'minimal' | 'low' | 'medium' | 'high' | null;
1947
2184
  /**
1948
2185
  * Whether this agent remembers facts about the people it talks to. **On by default**, unlike most switches here.
1949
2186
  *
1950
- * Off, its conversations are never read for facts and its turns recall none — nothing is charged for either — and a compaction extracts nothing whatever it is asked. Facts already stored stay, and other agents still recall the ones they share. Turning it back on reads only what is said from then on.
2187
+ * Off, its conversations are never read for facts and its turns recall none — nothing is charged for either — and `POST /v1/agent/sessions/{id}/extract` is refused. Facts already stored stay, and other agents still recall the ones they share. Turning it back on reads only what is said from then on.
1951
2188
  */
1952
2189
  facts_enabled?: boolean | null;
1953
2190
  /**
@@ -1966,6 +2203,10 @@ export type AgentCreateRequest = {
1966
2203
  * The agent is not greeted twice: a conversation continued within a few minutes gets no fresh opening line, and `ready.greeting` says which before a frame arrives.
1967
2204
  */
1968
2205
  first_message?: string | null;
2206
+ /**
2207
+ * Whether a written opening line (`first_message_generated` on) is shown the topics the agent remembers of the person — their titles, where each stands and when it was last talked about — so it can open with one ("How is Inolab Trials going?"). **On by default.** It is never shown their stories, and cannot search them: the opening is one model call. Off, it is shown the person's facts only. Nothing with `memories_enabled` off, and nothing for a scripted line.
2208
+ */
2209
+ first_message_memories?: boolean | null;
1969
2210
  /**
1970
2211
  * Whether `first_message` is a direction for the model rather than the words themselves.
1971
2212
  *
@@ -2010,6 +2251,36 @@ export type AgentCreateRequest = {
2010
2251
  * Cap on reply length. Unset means the model's own limit.
2011
2252
  */
2012
2253
  max_output_tokens?: number | null;
2254
+ /**
2255
+ * Whether this agent keeps **memories** of the people it talks to — one per topic of their life, rewritten whenever a conversation comes back to it. **On by default**, as `facts_enabled`.
2256
+ *
2257
+ * Once a conversation has been quiet for the platform's `agents.memory.idle_minutes`, it is read for the topics worth keeping, after its facts, in a model call of its own charged to the key; a conversation in which the person said little is read for nothing and costs nothing. Off, its conversations are never read for memories. Memories already kept stay.
2258
+ */
2259
+ memories_enabled?: boolean | null;
2260
+ /**
2261
+ * Whose memories this agent sees and adds to. `person` (the default, and what unset means): every agent of yours that shares, so the topic one agent started another continues. `agent`: its own only. A memory keeps the scope it was made under.
2262
+ */
2263
+ memories_scope?: 'person' | 'agent' | null;
2264
+ /**
2265
+ * The categories a memory may take, in your words: at most 12 of 40 characters each; the last is where a memory that fits none goes. Unset is the platform's `agents.memory.memories.default_categories`.
2266
+ */
2267
+ memory_categories?: Array<string> | null;
2268
+ /**
2269
+ * What is worth keeping as a memory. Unset uses the platform's built-in instruction, which leaves out health, beliefs and the like unless the person asked. The platform's own rules — no instructions, no claimed standing, no secrets — follow it whatever it says.
2270
+ */
2271
+ memory_instruction?: string | null;
2272
+ /**
2273
+ * Length cap on a memory reading's answer, in tokens — the model's thinking included. Unset sends none.
2274
+ */
2275
+ memory_max_output_tokens?: number | null;
2276
+ /**
2277
+ * Model for reading a conversation for memories. Unset uses the agent's own. Never `fact_model` or `compact_model`: each is its own call.
2278
+ */
2279
+ memory_model?: string | null;
2280
+ /**
2281
+ * Thinking level for the memory reading. Unset sends none, so the model's own default applies.
2282
+ */
2283
+ memory_thinking_level?: 'minimal' | 'low' | 'medium' | 'high' | null;
2013
2284
  /**
2014
2285
  * Gemini model id. Defaults to the platform's `agents.model` (`GET /v1/platform/limits`).
2015
2286
  */
@@ -2241,11 +2512,11 @@ export type AgentUpdate = {
2241
2512
  */
2242
2513
  compact_instruction?: string | null;
2243
2514
  /**
2244
- * Length cap on the summary, in tokens — the model's thinking included, which shares the budget. Unset uses the platform's `agents.memory.compaction.max_output_tokens` on the Limits page, twice it when the compaction extracts facts too.
2515
+ * Length cap on the summary, in tokens — the model's thinking included, which shares the budget. Unset uses the platform's `agents.memory.compaction.max_output_tokens` on the Limits page.
2245
2516
  */
2246
2517
  compact_max_output_tokens?: number | null;
2247
2518
  /**
2248
- * Model for the summarising call. Unset uses the agent's own.
2519
+ * Model for the summarising call. Unset uses the agent's own. A compaction only summarises: facts are a call of their own (`fact_model`).
2249
2520
  */
2250
2521
  compact_model?: string | null;
2251
2522
  /**
@@ -2272,18 +2543,26 @@ export type AgentUpdate = {
2272
2543
  * The setting the conversation takes place in.
2273
2544
  */
2274
2545
  environment?: string | null;
2275
- /**
2276
- * Whether a compaction also extracts durable facts about the user, in the same model call. A caller can always override this per request; this is what the automatic path uses.
2277
- */
2278
- extract_facts_on_compact?: boolean | null;
2279
2546
  /**
2280
2547
  * What counts as worth remembering. Unset falls back to the organisation's default, then to a built-in instruction.
2281
2548
  */
2282
2549
  fact_instruction?: string | null;
2550
+ /**
2551
+ * Length cap on a facts reading's answer, in tokens — the model's thinking included, which shares the budget. Unset sends none: the answer is a short list by its shape.
2552
+ */
2553
+ fact_max_output_tokens?: number | null;
2554
+ /**
2555
+ * Model for reading a conversation for facts — the reading after a conversation goes quiet, and `POST /v1/agent/sessions/{id}/extract`. Unset uses the agent's own. Never compaction's: the two are separate calls.
2556
+ */
2557
+ fact_model?: string | null;
2558
+ /**
2559
+ * Thinking level for the facts reading. Unset sends none, so the model's own default applies.
2560
+ */
2561
+ fact_thinking_level?: 'minimal' | 'low' | 'medium' | 'high' | null;
2283
2562
  /**
2284
2563
  * Whether this agent remembers facts about the people it talks to. **On by default**, unlike most switches here.
2285
2564
  *
2286
- * Off, its conversations are never read for facts and its turns recall none — nothing is charged for either — and a compaction extracts nothing whatever it is asked. Facts already stored stay, and other agents still recall the ones they share. Turning it back on reads only what is said from then on.
2565
+ * Off, its conversations are never read for facts and its turns recall none — nothing is charged for either — and `POST /v1/agent/sessions/{id}/extract` is refused. Facts already stored stay, and other agents still recall the ones they share. Turning it back on reads only what is said from then on.
2287
2566
  */
2288
2567
  facts_enabled?: boolean | null;
2289
2568
  /**
@@ -2302,6 +2581,10 @@ export type AgentUpdate = {
2302
2581
  * The agent is not greeted twice: a conversation continued within a few minutes gets no fresh opening line, and `ready.greeting` says which before a frame arrives.
2303
2582
  */
2304
2583
  first_message?: string | null;
2584
+ /**
2585
+ * Whether a written opening line (`first_message_generated` on) is shown the topics the agent remembers of the person — their titles, where each stands and when it was last talked about — so it can open with one ("How is Inolab Trials going?"). **On by default.** It is never shown their stories, and cannot search them: the opening is one model call. Off, it is shown the person's facts only. Nothing with `memories_enabled` off, and nothing for a scripted line.
2586
+ */
2587
+ first_message_memories?: boolean | null;
2305
2588
  /**
2306
2589
  * Whether `first_message` is a direction for the model rather than the words themselves.
2307
2590
  *
@@ -2346,6 +2629,36 @@ export type AgentUpdate = {
2346
2629
  * Cap on reply length. Unset means the model's own limit.
2347
2630
  */
2348
2631
  max_output_tokens?: number | null;
2632
+ /**
2633
+ * Whether this agent keeps **memories** of the people it talks to — one per topic of their life, rewritten whenever a conversation comes back to it. **On by default**, as `facts_enabled`.
2634
+ *
2635
+ * Once a conversation has been quiet for the platform's `agents.memory.idle_minutes`, it is read for the topics worth keeping, after its facts, in a model call of its own charged to the key; a conversation in which the person said little is read for nothing and costs nothing. Off, its conversations are never read for memories. Memories already kept stay.
2636
+ */
2637
+ memories_enabled?: boolean | null;
2638
+ /**
2639
+ * Whose memories this agent sees and adds to. `person` (the default, and what unset means): every agent of yours that shares, so the topic one agent started another continues. `agent`: its own only. A memory keeps the scope it was made under.
2640
+ */
2641
+ memories_scope?: 'person' | 'agent' | null;
2642
+ /**
2643
+ * The categories a memory may take, in your words: at most 12 of 40 characters each; the last is where a memory that fits none goes. Unset is the platform's `agents.memory.memories.default_categories`.
2644
+ */
2645
+ memory_categories?: Array<string> | null;
2646
+ /**
2647
+ * What is worth keeping as a memory. Unset uses the platform's built-in instruction, which leaves out health, beliefs and the like unless the person asked. The platform's own rules — no instructions, no claimed standing, no secrets — follow it whatever it says.
2648
+ */
2649
+ memory_instruction?: string | null;
2650
+ /**
2651
+ * Length cap on a memory reading's answer, in tokens — the model's thinking included. Unset sends none.
2652
+ */
2653
+ memory_max_output_tokens?: number | null;
2654
+ /**
2655
+ * Model for reading a conversation for memories. Unset uses the agent's own. Never `fact_model` or `compact_model`: each is its own call.
2656
+ */
2657
+ memory_model?: string | null;
2658
+ /**
2659
+ * Thinking level for the memory reading. Unset sends none, so the model's own default applies.
2660
+ */
2661
+ memory_thinking_level?: 'minimal' | 'low' | 'medium' | 'high' | null;
2349
2662
  /**
2350
2663
  * Gemini model id. `null` or empty returns it to the default, the platform's `agents.model` (`GET /v1/platform/limits`).
2351
2664
  */
@@ -5217,11 +5530,7 @@ export type ExtractSessionFactsErrors = {
5217
5530
  */
5218
5531
  404: ErrorResponse;
5219
5532
  /**
5220
- * Another compaction of this conversation finished first
5221
- */
5222
- 409: ErrorResponse;
5223
- /**
5224
- * Nothing new to compact since the last compaction, or the model's summary was empty or no shorter than what it would replace; nothing was charged
5533
+ * Nothing has been said since the conversation was last read, or the agent keeps no facts (`facts_enabled` off); nothing was charged
5225
5534
  */
5226
5535
  422: ErrorResponse;
5227
5536
  /**
@@ -5229,7 +5538,7 @@ export type ExtractSessionFactsErrors = {
5229
5538
  */
5230
5539
  429: ErrorResponse;
5231
5540
  /**
5232
- * The model provider failed or timed out
5541
+ * The model provider failed or timed out, or its answer could not be read
5233
5542
  */
5234
5543
  502: ErrorResponse;
5235
5544
  /**
@@ -5240,11 +5549,61 @@ export type ExtractSessionFactsErrors = {
5240
5549
  export type ExtractSessionFactsError = ExtractSessionFactsErrors[keyof ExtractSessionFactsErrors];
5241
5550
  export type ExtractSessionFactsResponses = {
5242
5551
  /**
5243
- * The facts pulled out of the conversation and stored
5552
+ * What the reading found and stored
5244
5553
  */
5245
- 200: CompactionInfo;
5554
+ 200: FactsReadInfo;
5246
5555
  };
5247
5556
  export type ExtractSessionFactsResponse = ExtractSessionFactsResponses[keyof ExtractSessionFactsResponses];
5557
+ export type WriteSessionMemoriesData = {
5558
+ body?: never;
5559
+ path: {
5560
+ session_id: string;
5561
+ };
5562
+ query?: never;
5563
+ url: '/v1/agent/sessions/{session_id}/memories';
5564
+ };
5565
+ export type WriteSessionMemoriesErrors = {
5566
+ /**
5567
+ * Missing or invalid credentials
5568
+ */
5569
+ 401: ErrorResponse;
5570
+ /**
5571
+ * The key has spent its credit — mint another; nothing was charged
5572
+ */
5573
+ 402: ErrorResponse;
5574
+ /**
5575
+ * The key is valid but its scopes do not cover this capability
5576
+ */
5577
+ 403: ErrorResponse;
5578
+ /**
5579
+ * Unknown session id
5580
+ */
5581
+ 404: ErrorResponse;
5582
+ /**
5583
+ * Nothing has been said since the conversation was last read for memories, or the agent keeps none (`memories_enabled` off); nothing was charged
5584
+ */
5585
+ 422: ErrorResponse;
5586
+ /**
5587
+ * Rate limit exceeded
5588
+ */
5589
+ 429: ErrorResponse;
5590
+ /**
5591
+ * The model provider failed or timed out, or its answer could not be read
5592
+ */
5593
+ 502: ErrorResponse;
5594
+ /**
5595
+ * The model provider is not configured
5596
+ */
5597
+ 503: ErrorResponse;
5598
+ };
5599
+ export type WriteSessionMemoriesError = WriteSessionMemoriesErrors[keyof WriteSessionMemoriesErrors];
5600
+ export type WriteSessionMemoriesResponses = {
5601
+ /**
5602
+ * What the reading wrote
5603
+ */
5604
+ 200: MemoriesWrittenInfo;
5605
+ };
5606
+ export type WriteSessionMemoriesResponse = WriteSessionMemoriesResponses[keyof WriteSessionMemoriesResponses];
5248
5607
  export type DeleteAllFactsData = {
5249
5608
  body?: never;
5250
5609
  path?: never;
@@ -5455,6 +5814,176 @@ export type UpdateFactResponses = {
5455
5814
  200: FactInfo;
5456
5815
  };
5457
5816
  export type UpdateFactResponse = UpdateFactResponses[keyof UpdateFactResponses];
5817
+ export type DeleteAllMemoriesData = {
5818
+ body?: never;
5819
+ path?: never;
5820
+ query?: {
5821
+ /**
5822
+ * Optional, and only ever the key's own end user — their `eu_...` id or your own id for them. Anybody else is a 403.
5823
+ */
5824
+ end_user_id?: string;
5825
+ };
5826
+ url: '/v1/agent/memories';
5827
+ };
5828
+ export type DeleteAllMemoriesErrors = {
5829
+ /**
5830
+ * Missing or invalid credentials
5831
+ */
5832
+ 401: ErrorResponse;
5833
+ /**
5834
+ * The key is valid but its scopes do not cover this capability
5835
+ */
5836
+ 403: ErrorResponse;
5837
+ /**
5838
+ * The request failed validation
5839
+ */
5840
+ 422: ErrorResponse;
5841
+ /**
5842
+ * Rate limit exceeded
5843
+ */
5844
+ 429: ErrorResponse;
5845
+ };
5846
+ export type DeleteAllMemoriesError = DeleteAllMemoriesErrors[keyof DeleteAllMemoriesErrors];
5847
+ export type DeleteAllMemoriesResponses = {
5848
+ /**
5849
+ * How many memories were deleted
5850
+ */
5851
+ 200: MemoriesDeleted;
5852
+ };
5853
+ export type DeleteAllMemoriesResponse = DeleteAllMemoriesResponses[keyof DeleteAllMemoriesResponses];
5854
+ export type ListMemoriesData = {
5855
+ body?: never;
5856
+ path?: never;
5857
+ query?: {
5858
+ /**
5859
+ * Optional, and only ever the key's own end user — their `eu_...` id or your own id for them. Anybody else is a 403.
5860
+ */
5861
+ end_user_id?: string;
5862
+ /**
5863
+ * Only the memories this agent's conversations wrote.
5864
+ */
5865
+ agent_id?: string;
5866
+ /**
5867
+ * Only the memories of this category.
5868
+ */
5869
+ category?: string;
5870
+ /**
5871
+ * Only the memories this conversation fed.
5872
+ */
5873
+ session_id?: string;
5874
+ /**
5875
+ * How many to answer, 1 to 100.
5876
+ */
5877
+ limit?: number;
5878
+ /**
5879
+ * The `next_cursor` of the page before.
5880
+ */
5881
+ cursor?: string;
5882
+ };
5883
+ url: '/v1/agent/memories';
5884
+ };
5885
+ export type ListMemoriesErrors = {
5886
+ /**
5887
+ * Missing or invalid credentials
5888
+ */
5889
+ 401: ErrorResponse;
5890
+ /**
5891
+ * The key is valid but its scopes do not cover this capability
5892
+ */
5893
+ 403: ErrorResponse;
5894
+ /**
5895
+ * The request failed validation
5896
+ */
5897
+ 422: ErrorResponse;
5898
+ /**
5899
+ * Rate limit exceeded
5900
+ */
5901
+ 429: ErrorResponse;
5902
+ };
5903
+ export type ListMemoriesError = ListMemoriesErrors[keyof ListMemoriesErrors];
5904
+ export type ListMemoriesResponses = {
5905
+ /**
5906
+ * One page of memories, last talked about first
5907
+ */
5908
+ 200: MemoryPage;
5909
+ };
5910
+ export type ListMemoriesResponse = ListMemoriesResponses[keyof ListMemoriesResponses];
5911
+ export type DeleteMemoryData = {
5912
+ body?: never;
5913
+ path: {
5914
+ memory_id: string;
5915
+ };
5916
+ query?: never;
5917
+ url: '/v1/agent/memories/{memory_id}';
5918
+ };
5919
+ export type DeleteMemoryErrors = {
5920
+ /**
5921
+ * Missing or invalid credentials
5922
+ */
5923
+ 401: ErrorResponse;
5924
+ /**
5925
+ * The key is valid but its scopes do not cover this capability
5926
+ */
5927
+ 403: ErrorResponse;
5928
+ /**
5929
+ * Unknown memory id
5930
+ */
5931
+ 404: ErrorResponse;
5932
+ /**
5933
+ * The request failed validation
5934
+ */
5935
+ 422: ErrorResponse;
5936
+ /**
5937
+ * Rate limit exceeded
5938
+ */
5939
+ 429: ErrorResponse;
5940
+ };
5941
+ export type DeleteMemoryError = DeleteMemoryErrors[keyof DeleteMemoryErrors];
5942
+ export type DeleteMemoryResponses = {
5943
+ /**
5944
+ * The memory is gone
5945
+ */
5946
+ 204: void;
5947
+ };
5948
+ export type DeleteMemoryResponse = DeleteMemoryResponses[keyof DeleteMemoryResponses];
5949
+ export type GetMemoryData = {
5950
+ body?: never;
5951
+ path: {
5952
+ memory_id: string;
5953
+ };
5954
+ query?: never;
5955
+ url: '/v1/agent/memories/{memory_id}';
5956
+ };
5957
+ export type GetMemoryErrors = {
5958
+ /**
5959
+ * Missing or invalid credentials
5960
+ */
5961
+ 401: ErrorResponse;
5962
+ /**
5963
+ * The key is valid but its scopes do not cover this capability
5964
+ */
5965
+ 403: ErrorResponse;
5966
+ /**
5967
+ * Unknown memory id
5968
+ */
5969
+ 404: ErrorResponse;
5970
+ /**
5971
+ * The request failed validation
5972
+ */
5973
+ 422: ErrorResponse;
5974
+ /**
5975
+ * Rate limit exceeded
5976
+ */
5977
+ 429: ErrorResponse;
5978
+ };
5979
+ export type GetMemoryError = GetMemoryErrors[keyof GetMemoryErrors];
5980
+ export type GetMemoryResponses = {
5981
+ /**
5982
+ * The memory
5983
+ */
5984
+ 200: MemoryInfo;
5985
+ };
5986
+ export type GetMemoryResponse = GetMemoryResponses[keyof GetMemoryResponses];
5458
5987
  export type ListRelationsData = {
5459
5988
  body?: never;
5460
5989
  path?: never;
@@ -6164,6 +6693,169 @@ export type UpdateEndUserFactResponses = {
6164
6693
  200: FactInfo;
6165
6694
  };
6166
6695
  export type UpdateEndUserFactResponse = UpdateEndUserFactResponses[keyof UpdateEndUserFactResponses];
6696
+ export type DeleteAllEndUserMemoriesData = {
6697
+ body?: never;
6698
+ path: {
6699
+ end_user_id: string;
6700
+ };
6701
+ query?: never;
6702
+ url: '/v1/end-users/{end_user_id}/memories';
6703
+ };
6704
+ export type DeleteAllEndUserMemoriesErrors = {
6705
+ /**
6706
+ * Missing or invalid credentials
6707
+ */
6708
+ 401: ErrorResponse;
6709
+ /**
6710
+ * The key is valid but its scopes do not cover this capability — a key limited to `tts` gets this from `/v1/images` rather than a 401
6711
+ */
6712
+ 403: ErrorResponse;
6713
+ /**
6714
+ * Unknown end user id
6715
+ */
6716
+ 404: ErrorResponse;
6717
+ /**
6718
+ * Rate limit exceeded
6719
+ */
6720
+ 429: ErrorResponse;
6721
+ };
6722
+ export type DeleteAllEndUserMemoriesError = DeleteAllEndUserMemoriesErrors[keyof DeleteAllEndUserMemoriesErrors];
6723
+ export type DeleteAllEndUserMemoriesResponses = {
6724
+ /**
6725
+ * How many memories were deleted
6726
+ */
6727
+ 200: MemoriesDeleted;
6728
+ };
6729
+ export type DeleteAllEndUserMemoriesResponse = DeleteAllEndUserMemoriesResponses[keyof DeleteAllEndUserMemoriesResponses];
6730
+ export type ListEndUserMemoriesData = {
6731
+ body?: never;
6732
+ path: {
6733
+ end_user_id: string;
6734
+ };
6735
+ query?: {
6736
+ /**
6737
+ * Only the memories this agent's conversations wrote.
6738
+ */
6739
+ agent_id?: string;
6740
+ /**
6741
+ * Only the memories of this category.
6742
+ */
6743
+ category?: string;
6744
+ /**
6745
+ * Only the memories this conversation fed.
6746
+ */
6747
+ session_id?: string;
6748
+ /**
6749
+ * How many to answer, 1 to 100.
6750
+ */
6751
+ limit?: number;
6752
+ /**
6753
+ * The `next_cursor` of the page before.
6754
+ */
6755
+ cursor?: string;
6756
+ };
6757
+ url: '/v1/end-users/{end_user_id}/memories';
6758
+ };
6759
+ export type ListEndUserMemoriesErrors = {
6760
+ /**
6761
+ * Missing or invalid credentials
6762
+ */
6763
+ 401: ErrorResponse;
6764
+ /**
6765
+ * The key is valid but its scopes do not cover this capability — a key limited to `tts` gets this from `/v1/images` rather than a 401
6766
+ */
6767
+ 403: ErrorResponse;
6768
+ /**
6769
+ * Unknown end user id
6770
+ */
6771
+ 404: ErrorResponse;
6772
+ /**
6773
+ * The request failed validation
6774
+ */
6775
+ 422: ErrorResponse;
6776
+ /**
6777
+ * Rate limit exceeded
6778
+ */
6779
+ 429: ErrorResponse;
6780
+ };
6781
+ export type ListEndUserMemoriesError = ListEndUserMemoriesErrors[keyof ListEndUserMemoriesErrors];
6782
+ export type ListEndUserMemoriesResponses = {
6783
+ /**
6784
+ * One page of memories, last talked about first
6785
+ */
6786
+ 200: MemoryPage;
6787
+ };
6788
+ export type ListEndUserMemoriesResponse = ListEndUserMemoriesResponses[keyof ListEndUserMemoriesResponses];
6789
+ export type DeleteEndUserMemoryData = {
6790
+ body?: never;
6791
+ path: {
6792
+ end_user_id: string;
6793
+ memory_id: string;
6794
+ };
6795
+ query?: never;
6796
+ url: '/v1/end-users/{end_user_id}/memories/{memory_id}';
6797
+ };
6798
+ export type DeleteEndUserMemoryErrors = {
6799
+ /**
6800
+ * Missing or invalid credentials
6801
+ */
6802
+ 401: ErrorResponse;
6803
+ /**
6804
+ * The key is valid but its scopes do not cover this capability — a key limited to `tts` gets this from `/v1/images` rather than a 401
6805
+ */
6806
+ 403: ErrorResponse;
6807
+ /**
6808
+ * Unknown end user id, or Unknown memory id
6809
+ */
6810
+ 404: ErrorResponse;
6811
+ /**
6812
+ * Rate limit exceeded
6813
+ */
6814
+ 429: ErrorResponse;
6815
+ };
6816
+ export type DeleteEndUserMemoryError = DeleteEndUserMemoryErrors[keyof DeleteEndUserMemoryErrors];
6817
+ export type DeleteEndUserMemoryResponses = {
6818
+ /**
6819
+ * The memory is gone
6820
+ */
6821
+ 204: void;
6822
+ };
6823
+ export type DeleteEndUserMemoryResponse = DeleteEndUserMemoryResponses[keyof DeleteEndUserMemoryResponses];
6824
+ export type GetEndUserMemoryData = {
6825
+ body?: never;
6826
+ path: {
6827
+ end_user_id: string;
6828
+ memory_id: string;
6829
+ };
6830
+ query?: never;
6831
+ url: '/v1/end-users/{end_user_id}/memories/{memory_id}';
6832
+ };
6833
+ export type GetEndUserMemoryErrors = {
6834
+ /**
6835
+ * Missing or invalid credentials
6836
+ */
6837
+ 401: ErrorResponse;
6838
+ /**
6839
+ * The key is valid but its scopes do not cover this capability — a key limited to `tts` gets this from `/v1/images` rather than a 401
6840
+ */
6841
+ 403: ErrorResponse;
6842
+ /**
6843
+ * Unknown end user id, or Unknown memory id
6844
+ */
6845
+ 404: ErrorResponse;
6846
+ /**
6847
+ * Rate limit exceeded
6848
+ */
6849
+ 429: ErrorResponse;
6850
+ };
6851
+ export type GetEndUserMemoryError = GetEndUserMemoryErrors[keyof GetEndUserMemoryErrors];
6852
+ export type GetEndUserMemoryResponses = {
6853
+ /**
6854
+ * The memory
6855
+ */
6856
+ 200: MemoryInfo;
6857
+ };
6858
+ export type GetEndUserMemoryResponse = GetEndUserMemoryResponses[keyof GetEndUserMemoryResponses];
6167
6859
  export type ListKnowledgeCategoriesData = {
6168
6860
  body?: never;
6169
6861
  path?: never;