268 268
269 The nested Responses event type. Required when type is 'response.event'; forbidden for other event types.269 The nested Responses event type. Required when type is 'response.event'; forbidden for other event types.
270 270
271 - `delegation: optional ClientDelegation or Responses { responses, type } or null`271 - `delegation: optional ClientDelegation or Responses { responses, type } or Decisions { decisions, type } or null`
272 272
273 Who handles tasks delegated by the Live model. Omitted or null selects your application; use `responses` to let the API manage a Responses backend.273 Who handles tasks delegated by the Live model. Omitted or null selects your application; use `responses` or `decisions` to delegate to the corresponding API.
274 274
275 - `ClientDelegation object { type }`275 - `ClientDelegation object { type }`
276 276
888 888
889 - `"responses"`889 - `"responses"`
890 890
891 - `Decisions object { decisions, type }`
892
893 - `decisions: object { model, questions }`
894
895 - `model: string`
896
897 - `questions: array of Predicate { instructions, type, name } or Choice { choices, instructions, type, name } or Score { instructions, levels, type, name }`
898
899 Native Decision API questions evaluated together, in order.
900
901 - `Predicate object { instructions, type, name }`
902
903 Estimate how likely it is that a statement about the input is true.
904
905 - `instructions: string`
906
907 - `type: "predicate"`
908
909 The type of the object. Always `predicate`.
910
911 - `"predicate"`
912
913 - `name: optional string`
914
915 - `Choice object { choices, instructions, type, name }`
916
917 Choose from the supplied options based on the input.
918
919 - `choices: array of object { value, description }`
920
921 Provide between 2 and 255 choices. Each choice must be unique.
922
923 - `value: string or boolean`
924
925 Choice values are typed: a string and a boolean with the same text are distinct.
926
927 - `string`
928
929 - `boolean`
930
931 - `description: optional string`
932
933 - `instructions: string`
934
935 - `type: "choice"`
936
937 The type of the object. Always `choice`.
938
939 - `"choice"`
940
941 - `name: optional string`
942
943 - `Score object { instructions, levels, type, name }`
944
945 Rate the input against the supplied ordered levels.
946
947 - `instructions: string`
948
949 - `levels: array of object { label, description }`
950
951 - `label: string`
952
953 - `description: optional string`
954
955 - `type: "score"`
956
957 The type of the object. Always `score`.
958
959 - `"score"`
960
961 - `name: optional string`
962
963 - `type: "decisions"`
964
965 - `"decisions"`
966
891 - `input: optional array of InitialItem`967 - `input: optional array of InitialItem`
892 968
893 Ordered text-only history supplied before startup. Supports developer, user, and assistant messages with one text part each; at most 128 messages and 8,192 rendered tokens in total.969 Ordered text-only history supplied before startup. Supports developer, user, and assistant messages with one text part each; at most 128 messages and a configured rendered-token limit (8,192 by default).
894 970
895 - `Developer object { content, role, id, 2 more }`971 - `Developer object { content, role, id, 2 more }`
896 972
1044 1120
1045 Whether to store the session for later forking and recording download. Defaults to false for new sessions.1121 Whether to store the session for later forking and recording download. Defaults to false for new sessions.
1046 1122
1123 - `triggers: optional array of object { decisions, event_type, type }`
1124
1125 At most one Decisions trigger per transcript event type. Triggers run independently of delegation. On update, omit triggers to keep the current configuration, send a list to replace it, or send an empty list to disable triggers.
1126
1127 - `decisions: object { questions }`
1128
1129 Questions evaluated using the current transcript and the session's shared Decision items.
1130
1131 - `questions: array of Predicate { instructions, type, name } or Choice { choices, instructions, type, name } or Score { instructions, levels, type, name }`
1132
1133 Native Decision API questions evaluated together, in order.
1134
1135 - `Predicate object { instructions, type, name }`
1136
1137 Estimate how likely it is that a statement about the input is true.
1138
1139 - `instructions: string`
1140
1141 - `type: "predicate"`
1142
1143 The type of the object. Always `predicate`.
1144
1145 - `"predicate"`
1146
1147 - `name: optional string`
1148
1149 - `Choice object { choices, instructions, type, name }`
1150
1151 Choose from the supplied options based on the input.
1152
1153 - `choices: array of object { value, description }`
1154
1155 Provide between 2 and 255 choices. Each choice must be unique.
1156
1157 - `value: string or boolean`
1158
1159 Choice values are typed: a string and a boolean with the same text are distinct.
1160
1161 - `string`
1162
1163 - `boolean`
1164
1165 - `description: optional string`
1166
1167 - `instructions: string`
1168
1169 - `type: "choice"`
1170
1171 The type of the object. Always `choice`.
1172
1173 - `"choice"`
1174
1175 - `name: optional string`
1176
1177 - `Score object { instructions, levels, type, name }`
1178
1179 Rate the input against the supplied ordered levels.
1180
1181 - `instructions: string`
1182
1183 - `levels: array of object { label, description }`
1184
1185 - `label: string`
1186
1187 - `description: optional string`
1188
1189 - `type: "score"`
1190
1191 The type of the object. Always `score`.
1192
1193 - `"score"`
1194
1195 - `name: optional string`
1196
1197 - `event_type: "session.input_transcript.delta" or "session.output_transcript.delta"`
1198
1199 - `"session.input_transcript.delta"`
1200
1201 - `"session.output_transcript.delta"`
1202
1203 - `type: "decisions"`
1204
1205 - `"decisions"`
1206
1047- `type: "session.start"`1207- `type: "session.start"`
1048 1208
1049 The Live client event type. Always `session.start`.1209 The Live client event type. Always `session.start`.
1083 1243
1084### session.update1244### session.update
1085 1245
1086Update the delegation settings of an active Live session. The server acknowledges accepted changes with `session.updated`.1246Update the delegation settings or transcript triggers of an active Live session. The server acknowledges accepted changes with `session.updated`.
1087 1247
1088#### Schema1248#### Schema
1089 1249
1091 1251
1092- `session: SessionUpdateConfig`1252- `session: SessionUpdateConfig`
1093 1253
1094 Sparse delegation updates. Omitted settings retain their values. The delegation type cannot change, including resetting Responses delegation to null or client. Model, frontend instructions, audio, and startup input are immutable.1254 Sparse delegation and trigger updates. Omitted settings retain their values. The delegation type cannot change. Model, frontend instructions, audio, and startup input are immutable.
1095 1255
1096 - `delegation: optional ClientDelegation or Responses { type, responses } or null`1256 - `delegation: optional ClientDelegation or Responses { type, responses } or Decisions { type, decisions } or null`
1097 1257
1098 Delegation settings to update. The delegation type must match the current session; omitted settings retain their values.1258 Delegation settings to update. The delegation type must match the current session; omitted settings retain their values.
1099 1259
1713 1873
1714 - `"apply_patch"`1874 - `"apply_patch"`
1715 1875
1876 - `Decisions object { type, decisions }`
1877
1878 - `type: "decisions"`
1879
1880 - `"decisions"`
1881
1882 - `decisions: optional DecisionsDelegationUpdateConfig`
1883
1884 - `model: optional string`
1885
1886 - `questions: optional array of Predicate { instructions, type, name } or Choice { choices, instructions, type, name } or Score { instructions, levels, type, name }`
1887
1888 Native Decision API questions evaluated together, in order.
1889
1890 - `Predicate object { instructions, type, name }`
1891
1892 Estimate how likely it is that a statement about the input is true.
1893
1894 - `instructions: string`
1895
1896 - `type: "predicate"`
1897
1898 The type of the object. Always `predicate`.
1899
1900 - `"predicate"`
1901
1902 - `name: optional string`
1903
1904 - `Choice object { choices, instructions, type, name }`
1905
1906 Choose from the supplied options based on the input.
1907
1908 - `choices: array of object { value, description }`
1909
1910 Provide between 2 and 255 choices. Each choice must be unique.
1911
1912 - `value: string or boolean`
1913
1914 Choice values are typed: a string and a boolean with the same text are distinct.
1915
1916 - `string`
1917
1918 - `boolean`
1919
1920 - `description: optional string`
1921
1922 - `instructions: string`
1923
1924 - `type: "choice"`
1925
1926 The type of the object. Always `choice`.
1927
1928 - `"choice"`
1929
1930 - `name: optional string`
1931
1932 - `Score object { instructions, levels, type, name }`
1933
1934 Rate the input against the supplied ordered levels.
1935
1936 - `instructions: string`
1937
1938 - `levels: array of object { label, description }`
1939
1940 - `label: string`
1941
1942 - `description: optional string`
1943
1944 - `type: "score"`
1945
1946 The type of the object. Always `score`.
1947
1948 - `"score"`
1949
1950 - `name: optional string`
1951
1952 - `triggers: optional array of object { decisions, event_type, type }`
1953
1954 At most one Decisions trigger per transcript event type. Triggers run independently of delegation. On update, omit triggers to keep the current configuration, send a list to replace it, or send an empty list to disable triggers.
1955
1956 - `decisions: object { questions }`
1957
1958 Questions evaluated using the current transcript and the session's shared Decision items.
1959
1960 - `questions: array of Predicate { instructions, type, name } or Choice { choices, instructions, type, name } or Score { instructions, levels, type, name }`
1961
1962 Native Decision API questions evaluated together, in order.
1963
1964 - `Predicate object { instructions, type, name }`
1965
1966 Estimate how likely it is that a statement about the input is true.
1967
1968 - `instructions: string`
1969
1970 - `type: "predicate"`
1971
1972 The type of the object. Always `predicate`.
1973
1974 - `"predicate"`
1975
1976 - `name: optional string`
1977
1978 - `Choice object { choices, instructions, type, name }`
1979
1980 Choose from the supplied options based on the input.
1981
1982 - `choices: array of object { value, description }`
1983
1984 Provide between 2 and 255 choices. Each choice must be unique.
1985
1986 - `value: string or boolean`
1987
1988 Choice values are typed: a string and a boolean with the same text are distinct.
1989
1990 - `string`
1991
1992 - `boolean`
1993
1994 - `description: optional string`
1995
1996 - `instructions: string`
1997
1998 - `type: "choice"`
1999
2000 The type of the object. Always `choice`.
2001
2002 - `"choice"`
2003
2004 - `name: optional string`
2005
2006 - `Score object { instructions, levels, type, name }`
2007
2008 Rate the input against the supplied ordered levels.
2009
2010 - `instructions: string`
2011
2012 - `levels: array of object { label, description }`
2013
2014 - `label: string`
2015
2016 - `description: optional string`
2017
2018 - `type: "score"`
2019
2020 The type of the object. Always `score`.
2021
2022 - `"score"`
2023
2024 - `name: optional string`
2025
2026 - `event_type: "session.input_transcript.delta" or "session.output_transcript.delta"`
2027
2028 - `"session.input_transcript.delta"`
2029
2030 - `"session.output_transcript.delta"`
2031
2032 - `type: "decisions"`
2033
2034 - `"decisions"`
2035
1716- `type: "session.update"`2036- `type: "session.update"`
1717 2037
1718 The Live client event type. Always `session.update`.2038 The Live client event type. Always `session.update`.
1832}2152}
1833```2153```
1834 2154
2155<a id="session.output_audio.fixture.play"></a>
2156
2157### session.output_audio.fixture.play
2158
2159Play one complete audio fixture through the session output. Send this event over the primary WebSocket or a server sideband. Audio must be raw mono PCM16 little-endian at 24 kHz, regardless of the session audio format, and at most 30 seconds. The entire payload is validated before model speech is interrupted and input is muted. Only one fixture can be active. fixture.playing acknowledges acceptance and fixture.played reports server mixer drain. These notifications are not exact transport-media boundaries. Input arriving during playback is dropped and not replayed.
2160
2161#### Schema
2162
2163Schema name: `LiveOutputAudioFixturePlayParam`
2164
2165- `audio: string`
2166
2167 Base64-encoded raw mono PCM16 audio, little-endian, at 24 kHz. Do not include a WAV or other container header.
2168
2169- `type: "session.output_audio.fixture.play"`
2170
2171 - `"session.output_audio.fixture.play"`
2172
2173- `event_id: optional string or null`
2174
2175 Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.
2176
2177#### Example
2178
2179```json
2180{
2181 "type": "session.output_audio.fixture.play",
2182 "event_id": "evt_play_001",
2183 "audio": "AAAAAA=="
2184}
2185```
2186
1835<a id="session.instructions.append"></a>2187<a id="session.instructions.append"></a>
1836 2188
1837### session.instructions.append2189### session.instructions.append
1949}2301}
1950```2302```
1951 2303
1952<a id="response.item.create"></a>2304<a id="decision.create"></a>
1953 2305
1954### response.item.create2306### decision.create
1955 2307
1956Add an input item to the Live session’s Responses backend. Requires Responses delegation; use `response.create` to request a response.2308Evaluate the configured questions using the current conversation and Decision inputs. Reusing an event_id is rejected for the lifetime of the session.
1957 2309
1958#### Schema2310#### Schema
1959 2311
1960Schema name: `LiveResponseItemCreateParam`2312Schema name: `LiveDecisionCreateParam`
1961 2313
1962- `item: EasyInputMessage or Message { content, role, status, type } or ResponseOutputMessage or 30 more`2314- `event_id: string`
1963 2315
1964 An input item to append to the Responses backend conversation, such as a user message or a function tool result.2316- `type: "decision.create"`
1965 2317
1966 - `EasyInputMessage object { content, role, phase, type }`2318 - `"decision.create"`
1967 2319
1968 A message input to the model with a role indicating instruction following2320#### Example
1969 hierarchy. Instructions given with the `developer` or `system` role take
1970 precedence over instructions given with the `user` role. Messages with the
1971 `assistant` role are presumed to have been generated by the model in previous
1972 interactions.
1973 2321
1974 - `content: string or ResponseInputMessageContentList`2322```json
2323{
2324 "type": "decision.create",
2325 "event_id": "decision_1"
2326}
2327```
1975 2328
1976 Text, image, or audio input to the model, used to generate a response.2329<a id="decision.item.create"></a>
1977 Can also contain previous assistant responses.
1978 2330
1979 - `TextInput = string`2331### decision.item.create
1980 2332
1981 A text input to the model.2333Append an input item for future decisions without starting an evaluation or changing Live voice context.
1982 2334
1983 - `ResponseInputMessageContentList = array of ResponseInputContent`2335#### Schema
1984 2336
1985 A list of one or many input items to the model, containing different content2337Schema name: `LiveDecisionItemCreateParam`
1986 types.
1987 2338
1988 - `ResponseInputText object { text, type, prompt_cache_breakpoint }`2339- `item: object { content, role, id, type }`
1989 2340
1990 A text input to the model.2341 - `content: string or array of InputText { text, type } or InputImage { image_url, type, detail }`
2342
2343 The text input to the model.
2344
2345 - `string`
2346
2347 The text input to the model.
2348
2349 - `array of InputText { text, type } or InputImage { image_url, type, detail }`
2350
2351 - `InputText object { text, type }`
1991 2352
1992 - `text: string`2353 - `text: string`
1993 2354
1999 2360
2000 - `"input_text"`2361 - `"input_text"`
2001 2362
2002 - `prompt_cache_breakpoint: optional object { mode }`2363 - `InputImage object { image_url, type, detail }`
2003
2004 Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.
2005 2364
2006 - `mode: "explicit"`2365 - `image_url: string`
2007 2366
2008 The breakpoint mode. Always `explicit`.2367 An inline image encoded as a data URL.
2009 2368
2010 - `"explicit"`2369 - `type: "input_image"`
2011 2370
2012 - `ResponseInputImage object { detail, type, file_id, 2 more }`2371 The type of the input item. Always `input_image`.
2013 2372
2014 An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision).2373 - `"input_image"`
2015 2374
2016 - `detail: ImageDetail`2375 - `detail: optional "low" or "high" or "auto" or "original" or null`
2017 2376
2018 The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.2377 The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.
2019 2378
2025 2384
2026 - `"original"`2385 - `"original"`
2027 2386
2028 - `type: "input_image"`2387 - `role: "user"`
2029 2388
2030 The type of the input item. Always `input_image`.2389 The message role. Always `user`.
2390
2391 - `"user"`
2392
2393 - `id: optional string or null`
2394
2395 The unique ID of this message item.
2396
2397 - `type: optional "message"`
2398
2399 - `"message"`
2400
2401- `type: "decision.item.create"`
2402
2403 - `"decision.item.create"`
2404
2405- `event_id: optional string or null`
2406
2407 Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.
2408
2409#### Example
2410
2411```json
2412{
2413 "type": "decision.item.create",
2414 "event_id": "browser_1",
2415 "item": {
2416 "type": "message",
2417 "role": "user",
2418 "content": [
2419 {
2420 "type": "input_text",
2421 "text": "Wikipedia is open."
2422 }
2423 ]
2424 }
2425}
2426```
2427
2428<a id="decision.item.delete"></a>
2429
2430### decision.item.delete
2431
2432Delete an input item from future decisions without starting an evaluation or changing Live voice context.
2433
2434#### Schema
2435
2436Schema name: `LiveDecisionItemDeleteParam`
2437
2438- `item_id: string`
2439
2440- `type: "decision.item.delete"`
2441
2442 - `"decision.item.delete"`
2443
2444- `event_id: optional string or null`
2445
2446 Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.
2447
2448#### Example
2449
2450```json
2451{
2452 "type": "decision.item.delete",
2453 "event_id": "remove_browser_1",
2454 "item_id": "msg_browser_1"
2455}
2456```
2457
2458<a id="response.item.create"></a>
2459
2460### response.item.create
2461
2462Add an input item to the Live session’s Responses backend. Requires Responses delegation; use `response.create` to request a response.
2463
2464#### Schema
2465
2466Schema name: `LiveResponseItemCreateParam`
2467
2468- `item: EasyInputMessage or Message { content, role, status, type } or ResponseOutputMessage or 30 more`
2469
2470 An input item to append to the Responses backend conversation, such as a user message or a function tool result.
2471
2472 - `EasyInputMessage object { content, role, phase, type }`
2473
2474 A message input to the model with a role indicating instruction following
2475 hierarchy. Instructions given with the `developer` or `system` role take
2476 precedence over instructions given with the `user` role. Messages with the
2477 `assistant` role are presumed to have been generated by the model in previous
2478 interactions.
2479
2480 - `content: string or ResponseInputMessageContentList`
2481
2482 Text, image, or audio input to the model, used to generate a response.
2483 Can also contain previous assistant responses.
2484
2485 - `TextInput = string`
2486
2487 A text input to the model.
2488
2489 - `ResponseInputMessageContentList = array of ResponseInputContent`
2490
2491 A list of one or many input items to the model, containing different content
2492 types.
2493
2494 - `ResponseInputText object { text, type, prompt_cache_breakpoint }`
2495
2496 A text input to the model.
2497
2498 - `text: string`
2499
2500 The text input to the model.
2501
2502 - `type: "input_text"`
2503
2504 The type of the input item. Always `input_text`.
2505
2506 - `"input_text"`
2507
2508 - `prompt_cache_breakpoint: optional object { mode }`
2509
2510 Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.
2511
2512 - `mode: "explicit"`
2513
2514 The breakpoint mode. Always `explicit`.
2515
2516 - `"explicit"`
2517
2518 - `ResponseInputImage object { detail, type, file_id, 2 more }`
2519
2520 An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision).
2521
2522 - `detail: ImageDetail`
2523
2524 The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.
2525
2526 - `"low"`
2527
2528 - `"high"`
2529
2530 - `"auto"`
2531
2532 - `"original"`
2533
2534 - `type: "input_image"`
2535
2536 The type of the input item. Always `input_image`.
2031 2537
2032 - `"input_image"`2538 - `"input_image"`
2033 2539
6722 7228
6723 The nested Responses event type. Required when type is 'response.event'; forbidden for other event types.7229 The nested Responses event type. Required when type is 'response.event'; forbidden for other event types.
6724 7230
6725 - `delegation: optional ClientDelegation or Responses { responses, type } or null`7231 - `delegation: optional ClientDelegation or Responses { responses, type } or Decisions { decisions, type } or null`
6726 7232
6727 Who handles tasks delegated by the Live model. Omitted or null selects your application; use `responses` to let the API manage a Responses backend.7233 Who handles tasks delegated by the Live model. Omitted or null selects your application; use `responses` or `decisions` to delegate to the corresponding API.
6728 7234
6729 - `ClientDelegation object { type }`7235 - `ClientDelegation object { type }`
6730 7236
7342 7848
7343 - `"responses"`7849 - `"responses"`
7344 7850
7851 - `Decisions object { decisions, type }`
7852
7853 - `decisions: object { model, questions }`
7854
7855 - `model: string`
7856
7857 - `questions: array of Predicate { instructions, type, name } or Choice { choices, instructions, type, name } or Score { instructions, levels, type, name }`
7858
7859 Native Decision API questions evaluated together, in order.
7860
7861 - `Predicate object { instructions, type, name }`
7862
7863 Estimate how likely it is that a statement about the input is true.
7864
7865 - `instructions: string`
7866
7867 - `type: "predicate"`
7868
7869 The type of the object. Always `predicate`.
7870
7871 - `"predicate"`
7872
7873 - `name: optional string`
7874
7875 - `Choice object { choices, instructions, type, name }`
7876
7877 Choose from the supplied options based on the input.
7878
7879 - `choices: array of object { value, description }`
7880
7881 Provide between 2 and 255 choices. Each choice must be unique.
7882
7883 - `value: string or boolean`
7884
7885 Choice values are typed: a string and a boolean with the same text are distinct.
7886
7887 - `string`
7888
7889 - `boolean`
7890
7891 - `description: optional string`
7892
7893 - `instructions: string`
7894
7895 - `type: "choice"`
7896
7897 The type of the object. Always `choice`.
7898
7899 - `"choice"`
7900
7901 - `name: optional string`
7902
7903 - `Score object { instructions, levels, type, name }`
7904
7905 Rate the input against the supplied ordered levels.
7906
7907 - `instructions: string`
7908
7909 - `levels: array of object { label, description }`
7910
7911 - `label: string`
7912
7913 - `description: optional string`
7914
7915 - `type: "score"`
7916
7917 The type of the object. Always `score`.
7918
7919 - `"score"`
7920
7921 - `name: optional string`
7922
7923 - `type: "decisions"`
7924
7925 - `"decisions"`
7926
7345 - `input: optional array of InitialItem`7927 - `input: optional array of InitialItem`
7346 7928
7347 Ordered text-only history supplied before startup. Supports developer, user, and assistant messages with one text part each; at most 128 messages and 8,192 rendered tokens in total.7929 Ordered text-only history supplied before startup. Supports developer, user, and assistant messages with one text part each; at most 128 messages and a configured rendered-token limit (8,192 by default).
7348 7930
7349 - `Developer object { content, role, id, 2 more }`7931 - `Developer object { content, role, id, 2 more }`
7350 7932
7498 8080
7499 Whether to store the session for later forking and recording download. Defaults to false for new sessions.8081 Whether to store the session for later forking and recording download. Defaults to false for new sessions.
7500 8082
8083 - `triggers: optional array of object { decisions, event_type, type }`
8084
8085 At most one Decisions trigger per transcript event type. Triggers run independently of delegation. On update, omit triggers to keep the current configuration, send a list to replace it, or send an empty list to disable triggers.
8086
8087 - `decisions: object { questions }`
8088
8089 Questions evaluated using the current transcript and the session's shared Decision items.
8090
8091 - `questions: array of Predicate { instructions, type, name } or Choice { choices, instructions, type, name } or Score { instructions, levels, type, name }`
8092
8093 Native Decision API questions evaluated together, in order.
8094
8095 - `Predicate object { instructions, type, name }`
8096
8097 Estimate how likely it is that a statement about the input is true.
8098
8099 - `instructions: string`
8100
8101 - `type: "predicate"`
8102
8103 The type of the object. Always `predicate`.
8104
8105 - `"predicate"`
8106
8107 - `name: optional string`
8108
8109 - `Choice object { choices, instructions, type, name }`
8110
8111 Choose from the supplied options based on the input.
8112
8113 - `choices: array of object { value, description }`
8114
8115 Provide between 2 and 255 choices. Each choice must be unique.
8116
8117 - `value: string or boolean`
8118
8119 Choice values are typed: a string and a boolean with the same text are distinct.
8120
8121 - `string`
8122
8123 - `boolean`
8124
8125 - `description: optional string`
8126
8127 - `instructions: string`
8128
8129 - `type: "choice"`
8130
8131 The type of the object. Always `choice`.
8132
8133 - `"choice"`
8134
8135 - `name: optional string`
8136
8137 - `Score object { instructions, levels, type, name }`
8138
8139 Rate the input against the supplied ordered levels.
8140
8141 - `instructions: string`
8142
8143 - `levels: array of object { label, description }`
8144
8145 - `label: string`
8146
8147 - `description: optional string`
8148
8149 - `type: "score"`
8150
8151 The type of the object. Always `score`.
8152
8153 - `"score"`
8154
8155 - `name: optional string`
8156
8157 - `event_type: "session.input_transcript.delta" or "session.output_transcript.delta"`
8158
8159 - `"session.input_transcript.delta"`
8160
8161 - `"session.output_transcript.delta"`
8162
8163 - `type: "decisions"`
8164
8165 - `"decisions"`
8166
7501- `type: "session.started"`8167- `type: "session.started"`
7502 8168
7503 The event type, always `session.started`.8169 The event type, always `session.started`.
7752 8418
7753 The nested Responses event type. Required when type is 'response.event'; forbidden for other event types.8419 The nested Responses event type. Required when type is 'response.event'; forbidden for other event types.
7754 8420
7755 - `delegation: optional ClientDelegation or Responses { responses, type } or null`8421 - `delegation: optional ClientDelegation or Responses { responses, type } or Decisions { decisions, type } or null`
7756 8422
7757 Who handles tasks delegated by the Live model. Omitted or null selects your application; use `responses` to let the API manage a Responses backend.8423 Who handles tasks delegated by the Live model. Omitted or null selects your application; use `responses` or `decisions` to delegate to the corresponding API.
7758 8424
7759 - `ClientDelegation object { type }`8425 - `ClientDelegation object { type }`
7760 8426
8372 9038
8373 - `"responses"`9039 - `"responses"`
8374 9040
8375 - `input: optional array of InitialItem`9041 - `Decisions object { decisions, type }`
8376 9042
8377 Ordered text-only history supplied before startup. Supports developer, user, and assistant messages with one text part each; at most 128 messages and 8,192 rendered tokens in total.9043 - `decisions: object { model, questions }`
8378 9044
8379 - `Developer object { content, role, id, 2 more }`9045 - `model: string`
8380 9046
8381 A developer message included in the initial text history of a Live session.9047 - `questions: array of Predicate { instructions, type, name } or Choice { choices, instructions, type, name } or Score { instructions, levels, type, name }`
8382 9048
8383 - `content: array of object { text, type }`9049 Native Decision API questions evaluated together, in order.
8384 9050
8385 The message content. Supply exactly one text part for the initial Live conversation history.9051 - `Predicate object { instructions, type, name }`
8386 9052
8387 - `text: string`9053 Estimate how likely it is that a statement about the input is true.
8388 9054
8389 The message text to include in the Live session’s initial conversation history.9055 - `instructions: string`
8390 9056
8391 - `type: optional "input_text"`9057 - `type: "predicate"`
8392 9058
8393 The text content type. Always `input_text`.9059 The type of the object. Always `predicate`.
8394 9060
8395 - `"input_text"`9061 - `"predicate"`
8396 9062
8397 - `role: "developer"`9063 - `name: optional string`
8398 9064
8399 The author of this history message. Always `developer`.9065 - `Choice object { choices, instructions, type, name }`
8400 9066
8401 - `"developer"`9067 Choose from the supplied options based on the input.
8402 9068
8403 - `id: optional string or null`9069 - `choices: array of object { value, description }`
8404 9070
8405 An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.9071 Provide between 2 and 255 choices. Each choice must be unique.
8406 9072
8407 - `status: optional "incomplete" or "completed" or null`9073 - `value: string or boolean`
8408 9074
8409 The supplied message’s status. Live uses its text as history and does not resume an incomplete message.9075 Choice values are typed: a string and a boolean with the same text are distinct.
8410 9076
8411 - `"incomplete"`9077 - `string`
8412 9078
8413 - `"completed"`9079 - `boolean`
8414 9080
8415 - `type: optional "message"`9081 - `description: optional string`
8416 9082
8417 The history item type. Always `message`.9083 - `instructions: string`
8418 9084
8419 - `"message"`9085 - `type: "choice"`
8420 9086
8421 - `User object { content, role, id, 2 more }`9087 The type of the object. Always `choice`.
8422 9088
8423 A user message included in the initial text history of a Live session.9089 - `"choice"`
8424 9090
8425 - `content: array of object { text, type }`9091 - `name: optional string`
8426 9092
8427 The message content. Supply exactly one text part for the initial Live conversation history.9093 - `Score object { instructions, levels, type, name }`
8428 9094
8429 - `text: string`9095 Rate the input against the supplied ordered levels.
8430 9096
8431 The message text to include in the Live session’s initial conversation history.9097 - `instructions: string`
8432 9098
8433 - `type: optional "input_text"`9099 - `levels: array of object { label, description }`
8434 9100
8435 The text content type. Always `input_text`.9101 - `label: string`
9102
9103 - `description: optional string`
9104
9105 - `type: "score"`
9106
9107 The type of the object. Always `score`.
9108
9109 - `"score"`
9110
9111 - `name: optional string`
9112
9113 - `type: "decisions"`
9114
9115 - `"decisions"`
9116
9117 - `input: optional array of InitialItem`
9118
9119 Ordered text-only history supplied before startup. Supports developer, user, and assistant messages with one text part each; at most 128 messages and a configured rendered-token limit (8,192 by default).
9120
9121 - `Developer object { content, role, id, 2 more }`
9122
9123 A developer message included in the initial text history of a Live session.
9124
9125 - `content: array of object { text, type }`
9126
9127 The message content. Supply exactly one text part for the initial Live conversation history.
9128
9129 - `text: string`
9130
9131 The message text to include in the Live session’s initial conversation history.
9132
9133 - `type: optional "input_text"`
9134
9135 The text content type. Always `input_text`.
9136
9137 - `"input_text"`
9138
9139 - `role: "developer"`
9140
9141 The author of this history message. Always `developer`.
9142
9143 - `"developer"`
9144
9145 - `id: optional string or null`
9146
9147 An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.
9148
9149 - `status: optional "incomplete" or "completed" or null`
9150
9151 The supplied message’s status. Live uses its text as history and does not resume an incomplete message.
9152
9153 - `"incomplete"`
9154
9155 - `"completed"`
9156
9157 - `type: optional "message"`
9158
9159 The history item type. Always `message`.
9160
9161 - `"message"`
9162
9163 - `User object { content, role, id, 2 more }`
9164
9165 A user message included in the initial text history of a Live session.
9166
9167 - `content: array of object { text, type }`
9168
9169 The message content. Supply exactly one text part for the initial Live conversation history.
9170
9171 - `text: string`
9172
9173 The message text to include in the Live session’s initial conversation history.
9174
9175 - `type: optional "input_text"`
9176
9177 The text content type. Always `input_text`.
8436 9178
8437 - `"input_text"`9179 - `"input_text"`
8438 9180
8528 9270
8529 Whether to store the session for later forking and recording download. Defaults to false for new sessions.9271 Whether to store the session for later forking and recording download. Defaults to false for new sessions.
8530 9272
9273 - `triggers: optional array of object { decisions, event_type, type }`
9274
9275 At most one Decisions trigger per transcript event type. Triggers run independently of delegation. On update, omit triggers to keep the current configuration, send a list to replace it, or send an empty list to disable triggers.
9276
9277 - `decisions: object { questions }`
9278
9279 Questions evaluated using the current transcript and the session's shared Decision items.
9280
9281 - `questions: array of Predicate { instructions, type, name } or Choice { choices, instructions, type, name } or Score { instructions, levels, type, name }`
9282
9283 Native Decision API questions evaluated together, in order.
9284
9285 - `Predicate object { instructions, type, name }`
9286
9287 Estimate how likely it is that a statement about the input is true.
9288
9289 - `instructions: string`
9290
9291 - `type: "predicate"`
9292
9293 The type of the object. Always `predicate`.
9294
9295 - `"predicate"`
9296
9297 - `name: optional string`
9298
9299 - `Choice object { choices, instructions, type, name }`
9300
9301 Choose from the supplied options based on the input.
9302
9303 - `choices: array of object { value, description }`
9304
9305 Provide between 2 and 255 choices. Each choice must be unique.
9306
9307 - `value: string or boolean`
9308
9309 Choice values are typed: a string and a boolean with the same text are distinct.
9310
9311 - `string`
9312
9313 - `boolean`
9314
9315 - `description: optional string`
9316
9317 - `instructions: string`
9318
9319 - `type: "choice"`
9320
9321 The type of the object. Always `choice`.
9322
9323 - `"choice"`
9324
9325 - `name: optional string`
9326
9327 - `Score object { instructions, levels, type, name }`
9328
9329 Rate the input against the supplied ordered levels.
9330
9331 - `instructions: string`
9332
9333 - `levels: array of object { label, description }`
9334
9335 - `label: string`
9336
9337 - `description: optional string`
9338
9339 - `type: "score"`
9340
9341 The type of the object. Always `score`.
9342
9343 - `"score"`
9344
9345 - `name: optional string`
9346
9347 - `event_type: "session.input_transcript.delta" or "session.output_transcript.delta"`
9348
9349 - `"session.input_transcript.delta"`
9350
9351 - `"session.output_transcript.delta"`
9352
9353 - `type: "decisions"`
9354
9355 - `"decisions"`
9356
8531- `type: "session.updated"`9357- `type: "session.updated"`
8532 9358
8533 The event type, always `session.updated`.9359 The event type, always `session.updated`.
8642}9468}
8643```9469```
8644 9470
9471<a id="session.output_audio.fixture.playing"></a>
9472
9473### session.output_audio.fixture.playing
9474
9475The existing playback path has accepted the validated audio fixture. This acknowledgment does not identify when the listener receives the first sample. The optional client_event_id echoes the play command.
9476
9477#### Schema
9478
9479Schema name: `LiveOutputAudioFixturePlaying`
9480
9481- `event_id: string`
9482
9483 The unique ID of the Live server event.
9484
9485- `type: "session.output_audio.fixture.playing"`
9486
9487 - `"session.output_audio.fixture.playing"`
9488
9489- `client_event_id: optional string`
9490
9491 The event_id of the client command associated with this server event, when supplied.
9492
9493#### Example
9494
9495```json
9496{
9497 "type": "session.output_audio.fixture.playing",
9498 "event_id": "evt_playing_001",
9499 "client_event_id": "evt_play_001"
9500}
9501```
9502
9503<a id="session.output_audio.fixture.played"></a>
9504
9505### session.output_audio.fixture.played
9506
9507The complete audio fixture has drained from the server mixer and normal inference has resumed. Transport buffers may still contain audio; this event does not prove listener-side completion. The optional client_event_id echoes the play command. This event is not emitted for canceled or failed playback.
9508
9509#### Schema
9510
9511Schema name: `LiveOutputAudioFixturePlayed`
9512
9513- `event_id: string`
9514
9515 The unique ID of the Live server event.
9516
9517- `type: "session.output_audio.fixture.played"`
9518
9519 - `"session.output_audio.fixture.played"`
9520
9521- `client_event_id: optional string`
9522
9523 The event_id of the client command associated with this server event, when supplied.
9524
9525#### Example
9526
9527```json
9528{
9529 "type": "session.output_audio.fixture.played",
9530 "event_id": "evt_played_001",
9531 "client_event_id": "evt_play_001"
9532}
9533```
9534
8645<a id="session.instructions.appended"></a>9535<a id="session.instructions.appended"></a>
8646 9536
8647### session.instructions.appended9537### session.instructions.appended
8861}9751}
8862```9752```
8863 9753
8864<a id="session.output_transcript.delta"></a>9754<a id="session.output_transcript.delta"></a>
9755
9756### session.output_transcript.delta
9757
9758A transcript fragment for assistant output audio in the Live session. Accumulate fragments in delivery order; these events do not define complete turns or include a transcript-done event.
9759
9760#### Schema
9761
9762Schema name: `LiveOutputTranscriptDelta`
9763
9764- `delta: string`
9765
9766 The transcript text fragment for the audio in this time range. Append fragments in delivery order to build the transcript.
9767
9768- `end_ms: number`
9769
9770 The end of this event on the Live session timeline, in milliseconds from the beginning of the session. For appended context, this can equal start_ms.
9771
9772- `event_id: string`
9773
9774 The unique ID of the Live server event.
9775
9776- `start_ms: number`
9777
9778 The start of this event on the Live session timeline, in milliseconds from the beginning of the session.
9779
9780- `type: "session.output_transcript.delta"`
9781
9782 The event type, always `session.output_transcript.delta`.
9783
9784 - `"session.output_transcript.delta"`
9785
9786- `client_event_id: optional string`
9787
9788 The event_id of the client command associated with this server event, when supplied.
9789
9790#### Example
9791
9792```json
9793{
9794 "type": "session.output_transcript.delta",
9795 "event_id": "evt_output_transcript_001",
9796 "delta": "Would you like me to reserve that table?",
9797 "start_ms": 5400,
9798 "end_ms": 7200
9799}
9800```
9801
9802<a id="session.delegation.created"></a>
9803
9804### session.delegation.created
9805
9806Returned when the Live model delegates work to your application, Responses, or Decisions. Contains delegation metadata and the position on the session timeline where the work was delegated.
9807
9808#### Schema
9809
9810Schema name: `LiveDelegationCreated`
9811
9812- `delegation: object { id, target, type, response_id }`
9813
9814 The delegated work identifier and destination. This object contains metadata, not the task text.
9815
9816 - `id: string`
9817
9818 The unique ID of the delegation. Use this as delegation_id when replying to client-owned work or correlating backend events.
9819
9820 - `target: "client" or "responses" or "decisions"`
9821
9822 Where the Live model delegated the work: `client`, `responses`, or `decisions`.
9823
9824 - `"client" or "responses" or "decisions"`
9825
9826 Where the Live model delegated the work: `client`, `responses`, or `decisions`.
9827
9828 - `"client"`
9829
9830 - `"responses"`
9831
9832 - `"decisions"`
9833
9834 - `type: "delegation"`
9835
9836 The object type, always `delegation`.
9837
9838 - `"delegation"`
9839
9840 - `response_id: optional string`
9841
9842 The ID of the Responses API response associated with a Responses delegation. Omitted for client delegations.
9843
9844- `event_id: string`
9845
9846 The unique ID of the Live server event.
9847
9848- `offset_ms: number`
9849
9850 The position on the Live session timeline where the delegation was created, in milliseconds from the beginning of the session.
9851
9852- `type: "session.delegation.created"`
9853
9854 The event type, always `session.delegation.created`.
9855
9856 - `"session.delegation.created"`
9857
9858- `client_event_id: optional string`
9859
9860 The event_id of the client command associated with this server event, when supplied.
9861
9862#### Example
9863
9864```json
9865{
9866 "type": "session.delegation.created",
9867 "event_id": "evt_delegation_001",
9868 "offset_ms": 3600,
9869 "delegation": {
9870 "id": "del_abc123",
9871 "type": "delegation",
9872 "target": "client"
9873 }
9874}
9875```
9876
9877<a id="decision.event"></a>
9878
9879### decision.event
9880
9881A Decision API event for a Live delegation or transcript trigger. For a trigger, source_event_id identifies the transcript delta that caused this evaluation.
9882
9883#### Schema
9884
9885Schema name: `LiveDecisionEvent`
9886
9887- `delegation_id: string or null`
9888
9889 The Live delegation ID, or null for a transcript trigger.
9890
9891- `event: object { decision, type }`
9892
9893 - `decision: Decision`
9894
9895 The native Decision API response, including its model, ordered answers, and token usage.
9896
9897 - `answers: array of Predicate { name, probability, type } or Choice { choice, confidence, name, 2 more } or Score { confidence, name, probabilities, 2 more } or Refusal { name, type }`
9898
9899 Answers in question order. Any question can return a refusal instead of an answer; other questions can still receive answers. A refusal has `type: "refusal"` and the question's `name`, or `null` if it was unnamed.
9900
9901 - `Predicate object { name, probability, type }`
9902
9903 - `name: string or null`
9904
9905 - `probability: number`
9906
9907 - `type: "predicate"`
9908
9909 The type of the object. Always `predicate`.
9910
9911 - `"predicate"`
9912
9913 - `Choice object { choice, confidence, name, 2 more }`
9914
9915 - `choice: string or boolean`
9916
9917 Choice values are typed: a string and a boolean with the same text are distinct.
9918
9919 - `string`
9920
9921 - `boolean`
9922
9923 - `confidence: number`
9924
9925 - `name: string or null`
9926
9927 - `probabilities: array of object { probability, value }`
9928
9929 - `probability: number`
9930
9931 - `value: string or boolean`
9932
9933 Choice values are typed: a string and a boolean with the same text are distinct.
9934
9935 - `string`
9936
9937 - `boolean`
9938
9939 - `type: "choice"`
9940
9941 The type of the object. Always `choice`.
9942
9943 - `"choice"`
9944
9945 - `Score object { confidence, name, probabilities, 2 more }`
9946
9947 - `confidence: number`
9948
9949 - `name: string or null`
9950
9951 - `probabilities: array of object { label, probability, value }`
9952
9953 - `label: string`
9954
9955 - `probability: number`
9956
9957 - `value: number`
9958
9959 - `score: number`
9960
9961 - `type: "score"`
9962
9963 The type of the object. Always `score`.
9964
9965 - `"score"`
9966
9967 - `Refusal object { name, type }`
9968
9969 The model declined to answer this question. Other questions in the same request can still receive answers.
9970
9971 - `name: string or null`
9972
9973 - `type: "refusal"`
9974
9975 The type of the object. Always `refusal`.
9976
9977 - `"refusal"`
9978
9979 - `model: string`
9980
9981 The model used.
9982
9983 - `usage: object { input_tokens, input_tokens_details, output_tokens, 2 more }`
9984
9985 Token usage for the request.
9986
9987 - `input_tokens: number`
9988
9989 - `input_tokens_details: object { cache_write_tokens, cached_tokens }`
9990
9991 - `cache_write_tokens: number`
9992
9993 - `cached_tokens: number`
9994
9995 - `output_tokens: number`
9996
9997 - `output_tokens_details: object { reasoning_tokens }`
9998
9999 - `reasoning_tokens: number`
10000
10001 - `total_tokens: number`
10002
10003 - `type: "decision.completed"`
10004
10005 - `"decision.completed"`
10006
10007- `event_id: string`
10008
10009 The unique ID of this Live server event.
10010
10011- `source_event_id: string or null`
10012
10013 The event_id of the transcript delta that fired this trigger, or null for a delegation.
10014
10015- `source_event_type: "session.input_transcript.delta" or "session.output_transcript.delta" or null`
10016
10017 - `"session.input_transcript.delta" or "session.output_transcript.delta"`
10018
10019 - `"session.input_transcript.delta"`
10020
10021 - `"session.output_transcript.delta"`
10022
10023- `trigger_id: string or null`
10024
10025 The Live-assigned ID of this trigger firing, or null for a delegation.
10026
10027- `type: "decision.event"`
10028
10029 - `"decision.event"`
10030
10031#### Example
10032
10033```json
10034{
10035 "type": "decision.event",
10036 "event_id": "evt_decision_1",
10037 "delegation_id": "del_abc123",
10038 "trigger_id": null,
10039 "source_event_type": null,
10040 "source_event_id": null,
10041 "event": {
10042 "type": "decision.completed",
10043 "decision": {
10044 "model": "gpt-6-luna",
10045 "answers": [
10046 {
10047 "type": "predicate",
10048 "name": "damaged",
10049 "probability": 0.95
10050 }
10051 ],
10052 "usage": {
10053 "input_tokens": 42,
10054 "input_tokens_details": {
10055 "cached_tokens": 0,
10056 "cache_write_tokens": 0
10057 },
10058 "output_tokens": 0,
10059 "output_tokens_details": {
10060 "reasoning_tokens": 0
10061 },
10062 "total_tokens": 42
10063 }
10064 }
10065 }
10066}
10067```
10068
10069<a id="decision.item.created"></a>
10070
10071### decision.item.created
10072
10073An input item was appended for future decisions.
10074
10075#### Schema
10076
10077Schema name: `LiveDecisionItemCreated`
8865 10078
8866### session.output_transcript.delta10079- `event_id: string`
8867 10080
8868A transcript fragment for assistant output audio in the Live session. Accumulate fragments in delivery order; these events do not define complete turns or include a transcript-done event.10081 The unique ID of the Live server event.
8869 10082
8870#### Schema10083- `item: object { id, content, role, type }`
8871 10084
8872Schema name: `LiveOutputTranscriptDelta`10085 - `id: string`
8873 10086
8874- `delta: string`10087 The ID of the stored Decision input item.
8875 10088
8876 The transcript text fragment for the audio in this time range. Append fragments in delivery order to build the transcript.10089 - `content: string or array of InputText { text, type } or InputImage { image_url, type, detail }`
8877 10090
8878- `end_ms: number`10091 The text input to the model.
8879 10092
8880 The end of this event on the Live session timeline, in milliseconds from the beginning of the session. For appended context, this can equal start_ms.10093 - `string`
8881 10094
8882- `event_id: string`10095 The text input to the model.
8883 10096
8884 The unique ID of the Live server event.10097 - `array of InputText { text, type } or InputImage { image_url, type, detail }`
8885 10098
8886- `start_ms: number`10099 - `InputText object { text, type }`
8887 10100
8888 The start of this event on the Live session timeline, in milliseconds from the beginning of the session.10101 - `text: string`
8889 10102
8890- `type: "session.output_transcript.delta"`10103 The text input to the model.
8891 10104
8892 The event type, always `session.output_transcript.delta`.10105 - `type: "input_text"`
8893 10106
8894 - `"session.output_transcript.delta"`10107 The type of the input item. Always `input_text`.
8895 10108
8896- `client_event_id: optional string`10109 - `"input_text"`
8897 10110
8898 The event_id of the client command associated with this server event, when supplied.10111 - `InputImage object { image_url, type, detail }`
8899 10112
8900#### Example10113 - `image_url: string`
8901 10114
8902```json10115 An inline image encoded as a data URL.
8903{
8904 "type": "session.output_transcript.delta",
8905 "event_id": "evt_output_transcript_001",
8906 "delta": "Would you like me to reserve that table?",
8907 "start_ms": 5400,
8908 "end_ms": 7200
8909}
8910```
8911 10116
8912<a id="session.delegation.created"></a>10117 - `type: "input_image"`
8913 10118
8914### session.delegation.created10119 The type of the input item. Always `input_image`.
8915 10120
8916Returned when the Live model delegates work to your application or a Responses backend. Contains delegation metadata and the position on the session timeline where the work was delegated.10121 - `"input_image"`
8917 10122
8918#### Schema10123 - `detail: optional "low" or "high" or "auto" or "original" or null`
8919 10124
8920Schema name: `LiveDelegationCreated`10125 The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.
8921 10126
8922- `delegation: object { id, target, type, response_id }`10127 - `"low"`
8923 10128
8924 The delegated work identifier and destination. This object contains metadata, not the task text.10129 - `"high"`
8925 10130
8926 - `id: string`10131 - `"auto"`
8927 10132
8928 The unique ID of the delegation. Use this as delegation_id when replying to client-owned work or correlating Responses events.10133 - `"original"`
8929 10134
8930 - `target: "client" or "responses"`10135 - `role: "user"`
8931 10136
8932 Where the Live model delegated the work: `client` for your application, or `responses` for the configured Responses backend.10137 The message role. Always `user`.
8933 10138
8934 - `"client" or "responses"`10139 - `"user"`
8935 10140
8936 Where the Live model delegated the work: `client` for your application, or `responses` for the configured Responses backend.10141 - `type: optional "message"`
8937 10142
8938 - `"client"`10143 - `"message"`
8939 10144
8940 - `"responses"`10145- `type: "decision.item.created"`
8941 10146
8942 - `type: "delegation"`10147 - `"decision.item.created"`
8943 10148
8944 The object type, always `delegation`.10149- `client_event_id: optional string`
8945 10150
8946 - `"delegation"`10151 The event_id of the client command associated with this server event, when supplied.
8947 10152
8948 - `response_id: optional string`10153#### Example
8949 10154
8950 The ID of the Responses API response associated with a Responses delegation. Omitted for client delegations.10155```json
10156{
10157 "type": "decision.item.created",
10158 "event_id": "evt_item_1",
10159 "client_event_id": "browser_1",
10160 "item": {
10161 "id": "msg_browser_1",
10162 "type": "message",
10163 "role": "user",
10164 "content": [
10165 {
10166 "type": "input_text",
10167 "text": "Wikipedia is open."
10168 }
10169 ]
10170 }
10171}
10172```
8951 10173
8952- `event_id: string`10174<a id="decision.item.deleted"></a>
8953 10175
8954 The unique ID of the Live server event.10176### decision.item.deleted
8955 10177
8956- `offset_ms: number`10178An input item was removed from future decisions.
8957 10179
8958 The position on the Live session timeline where the delegation was created, in milliseconds from the beginning of the session.10180#### Schema
8959 10181
8960- `type: "session.delegation.created"`10182Schema name: `LiveDecisionItemDeleted`
8961 10183
8962 The event type, always `session.delegation.created`.10184- `event_id: string`
8963 10185
8964 - `"session.delegation.created"`10186 The unique ID of the Live server event.
10187
10188- `item_id: string`
10189
10190- `type: "decision.item.deleted"`
10191
10192 - `"decision.item.deleted"`
8965 10193
8966- `client_event_id: optional string`10194- `client_event_id: optional string`
8967 10195
8971 10199
8972```json10200```json
8973{10201{
8974 "type": "session.delegation.created",10202 "type": "decision.item.deleted",
8975 "event_id": "evt_delegation_001",10203 "event_id": "evt_item_deleted_1",
8976 "offset_ms": 3600,10204 "client_event_id": "remove_browser_1",
8977 "delegation": {10205 "item_id": "msg_browser_1"
8978 "id": "del_abc123",
8979 "type": "delegation",
8980 "target": "client"
8981 }
8982}10206}
8983```10207```
8984 10208
9320 10544
9321 The nested Responses event type. Required when type is 'response.event'; forbidden for other event types.10545 The nested Responses event type. Required when type is 'response.event'; forbidden for other event types.
9322 10546
9323 - `delegation: optional ClientDelegation or Responses { responses, type } or null`10547 - `delegation: optional ClientDelegation or Responses { responses, type } or Decisions { decisions, type } or null`
9324 10548
9325 Who handles tasks delegated by the Live model. Omitted or null selects your application; use `responses` to let the API manage a Responses backend.10549 Who handles tasks delegated by the Live model. Omitted or null selects your application; use `responses` or `decisions` to delegate to the corresponding API.
9326 10550
9327 - `ClientDelegation object { type }`10551 - `ClientDelegation object { type }`
9328 10552
9940 11164
9941 - `"responses"`11165 - `"responses"`
9942 11166
11167 - `Decisions object { decisions, type }`
11168
11169 - `decisions: object { model, questions }`
11170
11171 - `model: string`
11172
11173 - `questions: array of Predicate { instructions, type, name } or Choice { choices, instructions, type, name } or Score { instructions, levels, type, name }`
11174
11175 Native Decision API questions evaluated together, in order.
11176
11177 - `Predicate object { instructions, type, name }`
11178
11179 Estimate how likely it is that a statement about the input is true.
11180
11181 - `instructions: string`
11182
11183 - `type: "predicate"`
11184
11185 The type of the object. Always `predicate`.
11186
11187 - `"predicate"`
11188
11189 - `name: optional string`
11190
11191 - `Choice object { choices, instructions, type, name }`
11192
11193 Choose from the supplied options based on the input.
11194
11195 - `choices: array of object { value, description }`
11196
11197 Provide between 2 and 255 choices. Each choice must be unique.
11198
11199 - `value: string or boolean`
11200
11201 Choice values are typed: a string and a boolean with the same text are distinct.
11202
11203 - `string`
11204
11205 - `boolean`
11206
11207 - `description: optional string`
11208
11209 - `instructions: string`
11210
11211 - `type: "choice"`
11212
11213 The type of the object. Always `choice`.
11214
11215 - `"choice"`
11216
11217 - `name: optional string`
11218
11219 - `Score object { instructions, levels, type, name }`
11220
11221 Rate the input against the supplied ordered levels.
11222
11223 - `instructions: string`
11224
11225 - `levels: array of object { label, description }`
11226
11227 - `label: string`
11228
11229 - `description: optional string`
11230
11231 - `type: "score"`
11232
11233 The type of the object. Always `score`.
11234
11235 - `"score"`
11236
11237 - `name: optional string`
11238
11239 - `type: "decisions"`
11240
11241 - `"decisions"`
11242
9943 - `input: optional array of InitialItem`11243 - `input: optional array of InitialItem`
9944 11244
9945 Ordered text-only history supplied before startup. Supports developer, user, and assistant messages with one text part each; at most 128 messages and 8,192 rendered tokens in total.11245 Ordered text-only history supplied before startup. Supports developer, user, and assistant messages with one text part each; at most 128 messages and a configured rendered-token limit (8,192 by default).
9946 11246
9947 - `Developer object { content, role, id, 2 more }`11247 - `Developer object { content, role, id, 2 more }`
9948 11248
10096 11396
10097 Whether to store the session for later forking and recording download. Defaults to false for new sessions.11397 Whether to store the session for later forking and recording download. Defaults to false for new sessions.
10098 11398
11399 - `triggers: optional array of object { decisions, event_type, type }`
11400
11401 At most one Decisions trigger per transcript event type. Triggers run independently of delegation. On update, omit triggers to keep the current configuration, send a list to replace it, or send an empty list to disable triggers.
11402
11403 - `decisions: object { questions }`
11404
11405 Questions evaluated using the current transcript and the session's shared Decision items.
11406
11407 - `questions: array of Predicate { instructions, type, name } or Choice { choices, instructions, type, name } or Score { instructions, levels, type, name }`
11408
11409 Native Decision API questions evaluated together, in order.
11410
11411 - `Predicate object { instructions, type, name }`
11412
11413 Estimate how likely it is that a statement about the input is true.
11414
11415 - `instructions: string`
11416
11417 - `type: "predicate"`
11418
11419 The type of the object. Always `predicate`.
11420
11421 - `"predicate"`
11422
11423 - `name: optional string`
11424
11425 - `Choice object { choices, instructions, type, name }`
11426
11427 Choose from the supplied options based on the input.
11428
11429 - `choices: array of object { value, description }`
11430
11431 Provide between 2 and 255 choices. Each choice must be unique.
11432
11433 - `value: string or boolean`
11434
11435 Choice values are typed: a string and a boolean with the same text are distinct.
11436
11437 - `string`
11438
11439 - `boolean`
11440
11441 - `description: optional string`
11442
11443 - `instructions: string`
11444
11445 - `type: "choice"`
11446
11447 The type of the object. Always `choice`.
11448
11449 - `"choice"`
11450
11451 - `name: optional string`
11452
11453 - `Score object { instructions, levels, type, name }`
11454
11455 Rate the input against the supplied ordered levels.
11456
11457 - `instructions: string`
11458
11459 - `levels: array of object { label, description }`
11460
11461 - `label: string`
11462
11463 - `description: optional string`
11464
11465 - `type: "score"`
11466
11467 The type of the object. Always `score`.
11468
11469 - `"score"`
11470
11471 - `name: optional string`
11472
11473 - `event_type: "session.input_transcript.delta" or "session.output_transcript.delta"`
11474
11475 - `"session.input_transcript.delta"`
11476
11477 - `"session.output_transcript.delta"`
11478
11479 - `type: "decisions"`
11480
11481 - `"decisions"`
11482
10099- `type: "session.closed"`11483- `type: "session.closed"`
10100 11484
10101 The event type, always `session.closed`.11485 The event type, always `session.closed`.
10255}11639}
10256```11640```
10257 11641
10258<a id="session.output_audio.fixture.playing"></a>
10259
10260### session.output_audio.fixture.playing
10261
10262The existing playback path has accepted the validated audio fixture. This acknowledgment does not identify when the listener receives the first sample. The optional client_event_id echoes the play command.
10263
10264#### Schema
10265
10266Schema name: `LiveOutputAudioFixturePlaying`
10267
10268- `event_id: string`
10269
10270 The unique ID of the Live server event.
10271
10272- `type: "session.output_audio.fixture.playing"`
10273
10274 - `"session.output_audio.fixture.playing"`
10275
10276- `client_event_id: optional string`
10277
10278 The event_id of the client command associated with this server event, when supplied.
10279
10280#### Example
10281
10282```json
10283{
10284 "type": "session.output_audio.fixture.playing",
10285 "event_id": "evt_play_started_001",
10286 "client_event_id": "evt_play_001"
10287}
10288```
10289
10290<a id="session.output_audio.fixture.played"></a>
10291
10292### session.output_audio.fixture.played
10293
10294The complete audio fixture has drained from the server mixer and normal inference has resumed. Transport buffers may still contain audio; this event does not prove listener-side completion. The optional client_event_id echoes the play command. This event is not emitted for canceled or failed playback.
10295
10296#### Schema
10297
10298Schema name: `LiveOutputAudioFixturePlayed`
10299
10300- `event_id: string`
10301
10302 The unique ID of the Live server event.
10303
10304- `type: "session.output_audio.fixture.played"`
10305
10306 - `"session.output_audio.fixture.played"`
10307
10308- `client_event_id: optional string`
10309
10310 The event_id of the client command associated with this server event, when supplied.
10311
10312#### Example
10313
10314```json
10315{
10316 "type": "session.output_audio.fixture.played",
10317 "event_id": "evt_played_001",
10318 "client_event_id": "evt_play_001"
10319}
10320```
10321
10322<a id="server-events-session.input_audio.append"></a>11642<a id="server-events-session.input_audio.append"></a>
10323 11643
10324### session.input_audio.append11644### session.input_audio.append