Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
"Slug": "create-live",
"Description": "Create a Live WebRTC session or place an outbound SIP call. Start with the\n[Live prompting guide](https://developers.openai.com/api/docs/guides/live-prompting) for session configuration\nand [Telephony and SIP](https://developers.openai.com/api/docs/guides/voice-sip?api=live#place-an-outbound-call)\nfor trunk setup and call monitoring.\n\nSet transport.type to \u0060webrtc\u0060 and supply an SDP offer, or set it to \u0060sip\u0060\nand supply an E.164 destination and trunk credentials. Outbound SIP calling\nmust be enabled for your organization.\nRinging is limited to 3 minutes and connected calls to 2 hours; these limits\nare not configurable in the request.\n\nReturns \u0060201 Created\u0060 after session initialization. WebRTC responses include an\nSDP answer. SIP responses do not wait for the callee to answer. Attach a\nsideband connection using session.id to monitor SIP call progress.\n\nEach SIP request creates a new call. If a request times out or the connection\nfails, retry with caution: the original request may have succeeded, and a\nretry can place another call.",
"Language": "http",
"Code": "### Create session\n# @name create-live\nPOST {{host}}/live/sessions\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json, text/plain\n\n{\n \u0022session\u0022: {\n \u0022model\u0022: \u0022gpt-live-1\u0022,\n \u0022instructions\u0022: \u0022string\u0022,\n \u0022audio\u0022: {\n \u0022output\u0022: {}\n },\n \u0022delegation\u0022: {\n \u0022type\u0022: \u0022client\u0022\n },\n \u0022triggers\u0022: [\n {}\n ],\n \u0022store\u0022: true,\n \u0022input\u0022: [\n {}\n ],\n \u0022client\u0022: {\n \u0022data_channel\u0022: {}\n }\n },\n \u0022transport\u0022: {\n \u0022type\u0022: \u0022webrtc\u0022,\n \u0022sdp\u0022: \u0022string\u0022\n }\n}\n\n## Responses\n# 201\n# Description: Returns 201 Created with a WebRTC answer or an initialized outbound SIP session. A SIP response does not mean the callee has answered.\n# Content-Type: application/json\n# 400\n# Description: Invalid Live session request.\n# Content-Type: application/json, text/plain\n# 413\n# Description: The Live session request exceeds the supported size limit.\n# Content-Type: application/json, text/plain\n# 429\n# Description: The session could not start because a rate or quota limit was exceeded.\n# Content-Type: application/json\n# 500\n# Description: An internal error occurred. The response body is plain text.\n# Content-Type: text/plain\n# 502\n# Description: The SIP gateway could not initialize the outbound call.\n# Content-Type: text/plain\n# 503\n# Description: The session is temporarily unavailable.\n# Content-Type: application/json, text/plain\n# 504\n# Description: SIP session initialization timed out. The error code is sip_setup_timeout.\n# Content-Type: application/json",
"Code": "### Create session\n# @name create-live\nPOST {{host}}/live/sessions\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json, text/plain\n\n{\n \u0022session\u0022: {\n \u0022model\u0022: \u0022gpt-live-1\u0022,\n \u0022instructions\u0022: \u0022string\u0022,\n \u0022audio\u0022: {\n \u0022output\u0022: {}\n },\n \u0022delegation\u0022: {\n \u0022acknowledgement_delay_ms\u0022: 0,\n \u0022type\u0022: \u0022client\u0022\n },\n \u0022triggers\u0022: [\n {}\n ],\n \u0022store\u0022: true,\n \u0022input\u0022: [\n {}\n ],\n \u0022client\u0022: {\n \u0022data_channel\u0022: {}\n }\n },\n \u0022transport\u0022: {\n \u0022type\u0022: \u0022webrtc\u0022,\n \u0022sdp\u0022: \u0022string\u0022\n }\n}\n\n## Responses\n# 201\n# Description: Returns 201 Created with a WebRTC answer or an initialized outbound SIP session. A SIP response does not mean the callee has answered.\n# Content-Type: application/json\n# 400\n# Description: Invalid Live session request.\n# Content-Type: application/json, text/plain\n# 413\n# Description: The Live session request exceeds the supported size limit.\n# Content-Type: application/json, text/plain\n# 429\n# Description: The session could not start because a rate or quota limit was exceeded.\n# Content-Type: application/json\n# 500\n# Description: An internal error occurred. The response body is plain text.\n# Content-Type: text/plain\n# 502\n# Description: The SIP gateway could not initialize the outbound call.\n# Content-Type: text/plain\n# 503\n# Description: The session is temporarily unavailable.\n# Content-Type: application/json, text/plain\n# 504\n# Description: SIP session initialization timed out. The error code is sip_setup_timeout.\n# Content-Type: application/json",
"Format": "http",
"OperationId": "create-live",
"Setup": null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ namespace tryAGI.OpenAI
/// </summary>
public sealed partial class LiveClientDelegationParam
{
/// <summary>
/// Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400 for Decisions sessions and 0 (request immediately) for other sessions. Omission in a session update preserves the current value. Updates apply to subsequent delegations.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("acknowledgement_delay_ms")]
public int? AcknowledgementDelayMs { get; set; }

/// <summary>
/// The delegation owner. Always `client` for tasks handled by your application.<br/>
/// Default Value: client
Expand All @@ -26,6 +32,9 @@ public sealed partial class LiveClientDelegationParam
/// <summary>
/// Initializes a new instance of the <see cref="LiveClientDelegationParam" /> class.
/// </summary>
/// <param name="acknowledgementDelayMs">
/// Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400 for Decisions sessions and 0 (request immediately) for other sessions. Omission in a session update preserves the current value. Updates apply to subsequent delegations.
/// </param>
/// <param name="type">
/// The delegation owner. Always `client` for tasks handled by your application.<br/>
/// Default Value: client
Expand All @@ -34,8 +43,10 @@ public sealed partial class LiveClientDelegationParam
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public LiveClientDelegationParam(
int? acknowledgementDelayMs,
global::tryAGI.OpenAI.LiveClientDelegationParamType type = global::tryAGI.OpenAI.LiveClientDelegationParamType.Client)
{
this.AcknowledgementDelayMs = acknowledgementDelayMs;
this.Type = type;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ namespace tryAGI.OpenAI
/// </summary>
public sealed partial class LiveDecisionsDelegationParam
{
/// <summary>
/// Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400. Updates apply to subsequent delegations.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("acknowledgement_delay_ms")]
public int? AcknowledgementDelayMs { get; set; }

/// <summary>
/// Default Value: decisions
/// </summary>
Expand All @@ -33,6 +39,9 @@ public sealed partial class LiveDecisionsDelegationParam
/// Initializes a new instance of the <see cref="LiveDecisionsDelegationParam" /> class.
/// </summary>
/// <param name="decisions"></param>
/// <param name="acknowledgementDelayMs">
/// Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400. Updates apply to subsequent delegations.
/// </param>
/// <param name="type">
/// Default Value: decisions
/// </param>
Expand All @@ -41,8 +50,10 @@ public sealed partial class LiveDecisionsDelegationParam
#endif
public LiveDecisionsDelegationParam(
global::tryAGI.OpenAI.LiveDecisionsSettingsInputParam decisions,
int? acknowledgementDelayMs,
global::tryAGI.OpenAI.LiveDecisionsDelegationParamType type = global::tryAGI.OpenAI.LiveDecisionsDelegationParamType.Decisions)
{
this.AcknowledgementDelayMs = acknowledgementDelayMs;
this.Type = type;
this.Decisions = decisions ?? throw new global::System.ArgumentNullException(nameof(decisions));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ namespace tryAGI.OpenAI
/// </summary>
public sealed partial class LiveDecisionsDelegationParam2
{
/// <summary>
/// Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400. Updates apply to subsequent delegations.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("acknowledgement_delay_ms")]
public int? AcknowledgementDelayMs { get; set; }

/// <summary>
/// Default Value: decisions
/// </summary>
Expand All @@ -33,6 +39,9 @@ public sealed partial class LiveDecisionsDelegationParam2
/// Initializes a new instance of the <see cref="LiveDecisionsDelegationParam2" /> class.
/// </summary>
/// <param name="decisions"></param>
/// <param name="acknowledgementDelayMs">
/// Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400. Updates apply to subsequent delegations.
/// </param>
/// <param name="type">
/// Default Value: decisions
/// </param>
Expand All @@ -41,8 +50,10 @@ public sealed partial class LiveDecisionsDelegationParam2
#endif
public LiveDecisionsDelegationParam2(
global::tryAGI.OpenAI.LiveDecisionsSettingsInputParam2 decisions,
int? acknowledgementDelayMs,
global::tryAGI.OpenAI.LiveDecisionsDelegationParam2Type type = global::tryAGI.OpenAI.LiveDecisionsDelegationParam2Type.Decisions)
{
this.AcknowledgementDelayMs = acknowledgementDelayMs;
this.Type = type;
this.Decisions = decisions ?? throw new global::System.ArgumentNullException(nameof(decisions));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ namespace tryAGI.OpenAI
/// </summary>
public sealed partial class LiveDecisionsDelegationUpdateParam
{
/// <summary>
/// Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400 for Decisions sessions and 0 (request immediately) for other sessions. Omission in a session update preserves the current value. Updates apply to subsequent delegations.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("acknowledgement_delay_ms")]
public int? AcknowledgementDelayMs { get; set; }

/// <summary>
/// Default Value: decisions
/// </summary>
Expand All @@ -31,6 +37,9 @@ public sealed partial class LiveDecisionsDelegationUpdateParam
/// <summary>
/// Initializes a new instance of the <see cref="LiveDecisionsDelegationUpdateParam" /> class.
/// </summary>
/// <param name="acknowledgementDelayMs">
/// Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400 for Decisions sessions and 0 (request immediately) for other sessions. Omission in a session update preserves the current value. Updates apply to subsequent delegations.
/// </param>
/// <param name="decisions"></param>
/// <param name="type">
/// Default Value: decisions
Expand All @@ -39,9 +48,11 @@ public sealed partial class LiveDecisionsDelegationUpdateParam
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public LiveDecisionsDelegationUpdateParam(
int? acknowledgementDelayMs,
global::tryAGI.OpenAI.LiveDecisionsSettingsUpdateParam? decisions,
global::tryAGI.OpenAI.LiveDecisionsDelegationUpdateParamType type = global::tryAGI.OpenAI.LiveDecisionsDelegationUpdateParamType.Decisions)
{
this.AcknowledgementDelayMs = acknowledgementDelayMs;
this.Type = type;
this.Decisions = decisions;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ namespace tryAGI.OpenAI
/// </summary>
public sealed partial class LiveResponsesDelegationParam
{
/// <summary>
/// Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400 for Decisions sessions and 0 (request immediately) for other sessions. Omission in a session update preserves the current value. Updates apply to subsequent delegations.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("acknowledgement_delay_ms")]
public int? AcknowledgementDelayMs { get; set; }

/// <summary>
/// The delegation owner. Always `responses` for tasks handled by the Responses API.<br/>
/// Default Value: responses
Expand Down Expand Up @@ -36,6 +42,9 @@ public sealed partial class LiveResponsesDelegationParam
/// <param name="responses">
/// Backend model, prompt, and tools used when the Live session delegates a task to Responses.
/// </param>
/// <param name="acknowledgementDelayMs">
/// Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400 for Decisions sessions and 0 (request immediately) for other sessions. Omission in a session update preserves the current value. Updates apply to subsequent delegations.
/// </param>
/// <param name="type">
/// The delegation owner. Always `responses` for tasks handled by the Responses API.<br/>
/// Default Value: responses
Expand All @@ -45,8 +54,10 @@ public sealed partial class LiveResponsesDelegationParam
#endif
public LiveResponsesDelegationParam(
global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParam responses,
int? acknowledgementDelayMs,
global::tryAGI.OpenAI.LiveResponsesDelegationParamType type = global::tryAGI.OpenAI.LiveResponsesDelegationParamType.Responses)
{
this.AcknowledgementDelayMs = acknowledgementDelayMs;
this.Type = type;
this.Responses = responses ?? throw new global::System.ArgumentNullException(nameof(responses));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ namespace tryAGI.OpenAI
/// </summary>
public sealed partial class LiveResponsesDelegationUpdateParam
{
/// <summary>
/// Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400 for Decisions sessions and 0 (request immediately) for other sessions. Omission in a session update preserves the current value. Updates apply to subsequent delegations.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("acknowledgement_delay_ms")]
public int? AcknowledgementDelayMs { get; set; }

/// <summary>
/// The delegation owner. Always `responses` for tasks handled by the Responses API.<br/>
/// Default Value: responses
Expand All @@ -32,6 +38,9 @@ public sealed partial class LiveResponsesDelegationUpdateParam
/// <summary>
/// Initializes a new instance of the <see cref="LiveResponsesDelegationUpdateParam" /> class.
/// </summary>
/// <param name="acknowledgementDelayMs">
/// Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400 for Decisions sessions and 0 (request immediately) for other sessions. Omission in a session update preserves the current value. Updates apply to subsequent delegations.
/// </param>
/// <param name="responses">
/// Responses backend settings to update. Omitted settings keep their existing values.
/// </param>
Expand All @@ -43,9 +52,11 @@ public sealed partial class LiveResponsesDelegationUpdateParam
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public LiveResponsesDelegationUpdateParam(
int? acknowledgementDelayMs,
global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParam? responses,
global::tryAGI.OpenAI.LiveResponsesDelegationUpdateParamType type = global::tryAGI.OpenAI.LiveResponsesDelegationUpdateParamType.Responses)
{
this.AcknowledgementDelayMs = acknowledgementDelayMs;
this.Type = type;
this.Responses = responses;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ internal static partial class SourceGenerationContextComponent_6D3F114B31FAA4C1
internal static readonly global::tryAGI.OpenAI.SourceGenerationContextMetadataScope MetadataScope = new(
new SharedMetadataResolver(),
new global::System.Func<global::tryAGI.OpenAI.SourceGenerationContextMetadataScope>[] {
static () => global::tryAGI.OpenAI.SourceGenerationContextComponent_05DF4B606BE5CE64.MetadataScope, static () => global::tryAGI.OpenAI.SourceGenerationContextComponent_93FEEC443EBD5B9E.MetadataScope,
static () => global::tryAGI.OpenAI.SourceGenerationContextComponent_05DF4B606BE5CE64.MetadataScope, static () => global::tryAGI.OpenAI.SourceGenerationContextComponent_6DA88C34BA124C41.MetadataScope, static () => global::tryAGI.OpenAI.SourceGenerationContextComponent_93FEEC443EBD5B9E.MetadataScope,
}, ContributeConverters);
internal static global::System.Text.Json.Serialization.JsonSerializerContext Default => MetadataScope.Default;

Expand Down
Loading
Loading