@collective-intelligence/ai 0.9.1 → 0.9.3

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/AGENTS.md CHANGED
@@ -19,7 +19,9 @@ API.
19
19
  `messageMetadataSchema: ciMessageMetadataSchema`.
20
20
  - Branch on the `kind` of a `data-evidence` part (`table`, `sources`, `links`,
21
21
  `summary`, `warnings`, `json`, `image`) and of a `data-run-status` part
22
- (`next_turn`, `running_turn`).
22
+ (`next_turn`, `running_turn`, `refused_turn`). A `refused_turn` part says
23
+ that the send's Agent turn ended before it started; `createChatClient`
24
+ fails it as `AiFailureError` reason `turn_refused`.
23
25
  - Answer a `ci_ask_user` tool part with `addToolOutput`, giving a
24
26
  `CiAskUserOutput`: `{ kind: "option", optionId }` or
25
27
  `{ kind: "free_text", text }`.
@@ -11,7 +11,8 @@ declare const ChatAttachmentsApi_base: HttpApiGroup.HttpApiGroup<"chatAttachment
11
11
  readonly correlationId: Schema.String;
12
12
  readonly error: Schema.Struct<{
13
13
  readonly details: Schema.optionalKey<Schema.Struct<{
14
- readonly reason: Schema.Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
14
+ readonly reason: Schema.Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
15
+ readonly runId: Schema.optionalKey<Schema.brand<Schema.String, "@collective-intelligence/ai/InvocationId">>;
15
16
  }>>;
16
17
  } & {
17
18
  readonly code: Schema.Literal<"conflict">;
@@ -104,7 +105,8 @@ declare const ChatAttachmentsApi_base: HttpApiGroup.HttpApiGroup<"chatAttachment
104
105
  readonly correlationId: Schema.String;
105
106
  readonly error: Schema.Struct<{
106
107
  readonly details: Schema.optionalKey<Schema.Struct<{
107
- readonly reason: Schema.Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
108
+ readonly reason: Schema.Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
109
+ readonly runId: Schema.optionalKey<Schema.brand<Schema.String, "@collective-intelligence/ai/InvocationId">>;
108
110
  }>>;
109
111
  } & {
110
112
  readonly code: Schema.Literal<"conflict">;
@@ -56,7 +56,8 @@ declare const ChatCatalogApi_base: HttpApiGroup.HttpApiGroup<"chatCatalog", Http
56
56
  readonly correlationId: Schema.String;
57
57
  readonly error: Schema.Struct<{
58
58
  readonly details: Schema.optionalKey<Schema.Struct<{
59
- readonly reason: Schema.Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
59
+ readonly reason: Schema.Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
60
+ readonly runId: Schema.optionalKey<Schema.brand<Schema.String, "@collective-intelligence/ai/InvocationId">>;
60
61
  }>>;
61
62
  } & {
62
63
  readonly code: Schema.Literal<"conflict">;
@@ -145,7 +146,8 @@ declare const ChatCatalogApi_base: HttpApiGroup.HttpApiGroup<"chatCatalog", Http
145
146
  readonly correlationId: Schema.String;
146
147
  readonly error: Schema.Struct<{
147
148
  readonly details: Schema.optionalKey<Schema.Struct<{
148
- readonly reason: Schema.Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
149
+ readonly reason: Schema.Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
150
+ readonly runId: Schema.optionalKey<Schema.brand<Schema.String, "@collective-intelligence/ai/InvocationId">>;
149
151
  }>>;
150
152
  } & {
151
153
  readonly code: Schema.Literal<"conflict">;
@@ -236,7 +238,8 @@ declare const ChatCatalogApi_base: HttpApiGroup.HttpApiGroup<"chatCatalog", Http
236
238
  readonly correlationId: Schema.String;
237
239
  readonly error: Schema.Struct<{
238
240
  readonly details: Schema.optionalKey<Schema.Struct<{
239
- readonly reason: Schema.Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
241
+ readonly reason: Schema.Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
242
+ readonly runId: Schema.optionalKey<Schema.brand<Schema.String, "@collective-intelligence/ai/InvocationId">>;
240
243
  }>>;
241
244
  } & {
242
245
  readonly code: Schema.Literal<"conflict">;
@@ -325,7 +328,8 @@ declare const ChatCatalogApi_base: HttpApiGroup.HttpApiGroup<"chatCatalog", Http
325
328
  readonly correlationId: Schema.String;
326
329
  readonly error: Schema.Struct<{
327
330
  readonly details: Schema.optionalKey<Schema.Struct<{
328
- readonly reason: Schema.Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
331
+ readonly reason: Schema.Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
332
+ readonly runId: Schema.optionalKey<Schema.brand<Schema.String, "@collective-intelligence/ai/InvocationId">>;
329
333
  }>>;
330
334
  } & {
331
335
  readonly code: Schema.Literal<"conflict">;
@@ -8,7 +8,8 @@ declare const ChatApi_base: HttpApiGroup.HttpApiGroup<"chat", HttpApiEndpoint.Ht
8
8
  readonly correlationId: import("effect/Schema").String;
9
9
  readonly error: import("effect/Schema").Struct<{
10
10
  readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
11
- readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
11
+ readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
12
+ readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
12
13
  }>>;
13
14
  } & {
14
15
  readonly code: import("effect/Schema").Literal<"conflict">;
@@ -120,7 +121,8 @@ declare const ChatApi_base: HttpApiGroup.HttpApiGroup<"chat", HttpApiEndpoint.Ht
120
121
  readonly correlationId: import("effect/Schema").String;
121
122
  readonly error: import("effect/Schema").Struct<{
122
123
  readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
123
- readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
124
+ readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
125
+ readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
124
126
  }>>;
125
127
  } & {
126
128
  readonly code: import("effect/Schema").Literal<"conflict">;
@@ -195,6 +197,7 @@ declare const ChatApi_base: HttpApiGroup.HttpApiGroup<"chat", HttpApiEndpoint.Ht
195
197
  readonly ok: import("effect/Schema").Literal<false>;
196
198
  }>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createConversation", "POST", "/chat/conversations", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
197
199
  readonly agentId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/AgentId">>;
200
+ readonly clientRequestId: import("effect/Schema").optionalKey<import("effect/Schema").String>;
198
201
  readonly projectId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ProjectId">>;
199
202
  readonly title: import("effect/Schema").optionalKey<import("effect/Schema").String>;
200
203
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
@@ -218,7 +221,8 @@ declare const ChatApi_base: HttpApiGroup.HttpApiGroup<"chat", HttpApiEndpoint.Ht
218
221
  readonly correlationId: import("effect/Schema").String;
219
222
  readonly error: import("effect/Schema").Struct<{
220
223
  readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
221
- readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
224
+ readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
225
+ readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
222
226
  }>>;
223
227
  } & {
224
228
  readonly code: import("effect/Schema").Literal<"conflict">;
@@ -297,7 +301,8 @@ declare const ChatApi_base: HttpApiGroup.HttpApiGroup<"chat", HttpApiEndpoint.Ht
297
301
  readonly correlationId: import("effect/Schema").String;
298
302
  readonly error: import("effect/Schema").Struct<{
299
303
  readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
300
- readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
304
+ readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
305
+ readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
301
306
  }>>;
302
307
  } & {
303
308
  readonly code: import("effect/Schema").Literal<"conflict">;
@@ -389,7 +394,8 @@ declare const ChatApi_base: HttpApiGroup.HttpApiGroup<"chat", HttpApiEndpoint.Ht
389
394
  readonly correlationId: import("effect/Schema").String;
390
395
  readonly error: import("effect/Schema").Struct<{
391
396
  readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
392
- readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
397
+ readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
398
+ readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
393
399
  }>>;
394
400
  } & {
395
401
  readonly code: import("effect/Schema").Literal<"conflict">;
@@ -501,7 +507,8 @@ declare const ChatApi_base: HttpApiGroup.HttpApiGroup<"chat", HttpApiEndpoint.Ht
501
507
  readonly correlationId: import("effect/Schema").String;
502
508
  readonly error: import("effect/Schema").Struct<{
503
509
  readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
504
- readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
510
+ readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
511
+ readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
505
512
  }>>;
506
513
  } & {
507
514
  readonly code: import("effect/Schema").Literal<"conflict">;
@@ -597,7 +604,8 @@ declare const ChatApi_base: HttpApiGroup.HttpApiGroup<"chat", HttpApiEndpoint.Ht
597
604
  readonly correlationId: import("effect/Schema").String;
598
605
  readonly error: import("effect/Schema").Struct<{
599
606
  readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
600
- readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
607
+ readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
608
+ readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
601
609
  }>>;
602
610
  } & {
603
611
  readonly code: import("effect/Schema").Literal<"conflict">;
@@ -684,7 +692,8 @@ declare const ChatApi_base: HttpApiGroup.HttpApiGroup<"chat", HttpApiEndpoint.Ht
684
692
  readonly correlationId: import("effect/Schema").String;
685
693
  readonly error: import("effect/Schema").Struct<{
686
694
  readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
687
- readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
695
+ readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
696
+ readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
688
697
  }>>;
689
698
  } & {
690
699
  readonly code: import("effect/Schema").Literal<"conflict">;
@@ -992,7 +1001,8 @@ declare const ChatApi_base: HttpApiGroup.HttpApiGroup<"chat", HttpApiEndpoint.Ht
992
1001
  readonly correlationId: import("effect/Schema").String;
993
1002
  readonly error: import("effect/Schema").Struct<{
994
1003
  readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
995
- readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
1004
+ readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
1005
+ readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
996
1006
  }>>;
997
1007
  } & {
998
1008
  readonly code: import("effect/Schema").Literal<"conflict">;
@@ -1094,7 +1104,8 @@ declare const ChatApi_base: HttpApiGroup.HttpApiGroup<"chat", HttpApiEndpoint.Ht
1094
1104
  readonly correlationId: import("effect/Schema").String;
1095
1105
  readonly error: import("effect/Schema").Struct<{
1096
1106
  readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
1097
- readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
1107
+ readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
1108
+ readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
1098
1109
  }>>;
1099
1110
  } & {
1100
1111
  readonly code: import("effect/Schema").Literal<"conflict">;
@@ -1183,7 +1194,8 @@ declare const ChatApi_base: HttpApiGroup.HttpApiGroup<"chat", HttpApiEndpoint.Ht
1183
1194
  readonly correlationId: import("effect/Schema").String;
1184
1195
  readonly error: import("effect/Schema").Struct<{
1185
1196
  readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
1186
- readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
1197
+ readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
1198
+ readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
1187
1199
  }>>;
1188
1200
  } & {
1189
1201
  readonly code: import("effect/Schema").Literal<"conflict">;
@@ -1287,7 +1299,8 @@ declare const ChatApi_base: HttpApiGroup.HttpApiGroup<"chat", HttpApiEndpoint.Ht
1287
1299
  readonly correlationId: import("effect/Schema").String;
1288
1300
  readonly error: import("effect/Schema").Struct<{
1289
1301
  readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
1290
- readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
1302
+ readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
1303
+ readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
1291
1304
  }>>;
1292
1305
  } & {
1293
1306
  readonly code: import("effect/Schema").Literal<"conflict">;
@@ -1399,7 +1412,8 @@ declare const ChatApi_base: HttpApiGroup.HttpApiGroup<"chat", HttpApiEndpoint.Ht
1399
1412
  readonly correlationId: import("effect/Schema").String;
1400
1413
  readonly error: import("effect/Schema").Struct<{
1401
1414
  readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
1402
- readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
1415
+ readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
1416
+ readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
1403
1417
  }>>;
1404
1418
  } & {
1405
1419
  readonly code: import("effect/Schema").Literal<"conflict">;
@@ -1481,7 +1495,8 @@ declare const ChatApi_base: HttpApiGroup.HttpApiGroup<"chat", HttpApiEndpoint.Ht
1481
1495
  readonly correlationId: import("effect/Schema").String;
1482
1496
  readonly error: import("effect/Schema").Struct<{
1483
1497
  readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
1484
- readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
1498
+ readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
1499
+ readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
1485
1500
  }>>;
1486
1501
  } & {
1487
1502
  readonly code: import("effect/Schema").Literal<"conflict">;
@@ -1593,7 +1608,8 @@ declare const ChatApi_base: HttpApiGroup.HttpApiGroup<"chat", HttpApiEndpoint.Ht
1593
1608
  readonly correlationId: import("effect/Schema").String;
1594
1609
  readonly error: import("effect/Schema").Struct<{
1595
1610
  readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
1596
- readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
1611
+ readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
1612
+ readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
1597
1613
  }>>;
1598
1614
  } & {
1599
1615
  readonly code: import("effect/Schema").Literal<"conflict">;
@@ -1696,7 +1712,8 @@ declare const ChatApi_base: HttpApiGroup.HttpApiGroup<"chat", HttpApiEndpoint.Ht
1696
1712
  readonly correlationId: import("effect/Schema").String;
1697
1713
  readonly error: import("effect/Schema").Struct<{
1698
1714
  readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
1699
- readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
1715
+ readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
1716
+ readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
1700
1717
  }>>;
1701
1718
  } & {
1702
1719
  readonly code: import("effect/Schema").Literal<"conflict">;
@@ -1775,7 +1792,8 @@ declare const ChatApi_base: HttpApiGroup.HttpApiGroup<"chat", HttpApiEndpoint.Ht
1775
1792
  readonly correlationId: import("effect/Schema").String;
1776
1793
  readonly error: import("effect/Schema").Struct<{
1777
1794
  readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
1778
- readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
1795
+ readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
1796
+ readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
1779
1797
  }>>;
1780
1798
  } & {
1781
1799
  readonly code: import("effect/Schema").Literal<"conflict">;
@@ -1860,12 +1878,14 @@ declare const ChatApi_base: HttpApiGroup.HttpApiGroup<"chat", HttpApiEndpoint.Ht
1860
1878
  readonly role: import("effect/Schema").Literals<readonly ["system", "user", "assistant"]>;
1861
1879
  }>;
1862
1880
  readonly messageId: import("effect/Schema").optionalKey<import("effect/Schema").String>;
1881
+ readonly steering: import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["steer", "reject"]>>;
1863
1882
  readonly trigger: import("effect/Schema").Literals<readonly ["submit-message", "regenerate-message"]>;
1864
1883
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").String>, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1865
1884
  readonly correlationId: import("effect/Schema").String;
1866
1885
  readonly error: import("effect/Schema").Struct<{
1867
1886
  readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
1868
- readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
1887
+ readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
1888
+ readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
1869
1889
  }>>;
1870
1890
  } & {
1871
1891
  readonly code: import("effect/Schema").Literal<"conflict">;
@@ -1964,7 +1984,8 @@ declare const ChatApi_base: HttpApiGroup.HttpApiGroup<"chat", HttpApiEndpoint.Ht
1964
1984
  readonly correlationId: import("effect/Schema").String;
1965
1985
  readonly error: import("effect/Schema").Struct<{
1966
1986
  readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
1967
- readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
1987
+ readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
1988
+ readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
1968
1989
  }>>;
1969
1990
  } & {
1970
1991
  readonly code: import("effect/Schema").Literal<"conflict">;
@@ -2043,7 +2064,8 @@ declare const ChatApi_base: HttpApiGroup.HttpApiGroup<"chat", HttpApiEndpoint.Ht
2043
2064
  readonly correlationId: import("effect/Schema").String;
2044
2065
  readonly error: import("effect/Schema").Struct<{
2045
2066
  readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
2046
- readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
2067
+ readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
2068
+ readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
2047
2069
  }>>;
2048
2070
  } & {
2049
2071
  readonly code: import("effect/Schema").Literal<"conflict">;
@@ -2143,7 +2165,8 @@ declare const ChatApi_base: HttpApiGroup.HttpApiGroup<"chat", HttpApiEndpoint.Ht
2143
2165
  readonly correlationId: import("effect/Schema").String;
2144
2166
  readonly error: import("effect/Schema").Struct<{
2145
2167
  readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
2146
- readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
2168
+ readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
2169
+ readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
2147
2170
  }>>;
2148
2171
  } & {
2149
2172
  readonly code: import("effect/Schema").Literal<"conflict">;
@@ -2234,7 +2257,8 @@ declare const ChatApi_base: HttpApiGroup.HttpApiGroup<"chat", HttpApiEndpoint.Ht
2234
2257
  readonly correlationId: import("effect/Schema").String;
2235
2258
  readonly error: import("effect/Schema").Struct<{
2236
2259
  readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
2237
- readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
2260
+ readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
2261
+ readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
2238
2262
  }>>;
2239
2263
  } & {
2240
2264
  readonly code: import("effect/Schema").Literal<"conflict">;
@@ -2316,7 +2340,8 @@ declare const ChatApi_base: HttpApiGroup.HttpApiGroup<"chat", HttpApiEndpoint.Ht
2316
2340
  readonly correlationId: import("effect/Schema").String;
2317
2341
  readonly error: import("effect/Schema").Struct<{
2318
2342
  readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
2319
- readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
2343
+ readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
2344
+ readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
2320
2345
  }>>;
2321
2346
  } & {
2322
2347
  readonly code: import("effect/Schema").Literal<"conflict">;