Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.01 KB

Send-RealtimeSessionEvent.md

File metadata and controls

50 lines (35 loc) · 1.01 KB
external help file Module Name online version schema
PSOpenAI-help.xml
PSOpenAI
2.0.0

Send-RealtimeSessionEvent

SYNOPSIS

Send any client event to the server.

SYNTAX

Send-RealtimeSessionEvent 
    [-Message] <String>

DESCRIPTION

Sends an arbitrary message expressed as a JSON string to the session. This is useful for sending custom events that PSOpenAI does not support in its functions.

EXAMPLES

Example 1

PS C:\> Send-RealtimeSessionEvent -Message '{"event_id": "event_567", "type": "response.cancel"}'

PARAMETERS

-Message

JSON-formatted message.

Type: String
Required: True
Position: 0
Accept pipeline input: True (ByValue)

INPUTS

OUTPUTS

NOTES

RELATED LINKS

https://platform.openai.com/docs/api-reference/realtime-client-events