An asynchronous function that runs at the beginning of every session. It configures the session
by returning a SessionConfig object, which contains parameters like VAD (voice
activity detection), STT (speech-to-text), TTS (text-to-speech), the initial messages of the session, etc.
Arbitrary fields that you can specify when you call the startSession API endpoint. Makes it possible to include fields that are specific to the session or to your users. Learn how to set these fields in the Starting Sessions guide.
Example input parameter:
{ "custom_data": { "my_user_id": "abc123" }}
Returns
object
required
Hide properties
object
required
A list of messages containing the conversation so far. Make this an empty array if you want the conversation to start from scratch.
Show properties
string
required
The contents of the message.
string
required
The role of the speaker. Either ‘system’, ‘user’, ‘assistant’, or ‘tool’.
string (Optional)
An optional name for the speaker. Some LLMs, such as OpenAI’s, can use this field to differentiate between participants of the same role.
string (Optional)
Tool call that this message is responding to. Only present if the role is "tool".
VAD.Silero
required
The voice activity detection (VAD) provider and its settings. Currently, only Silero is supported.
Show properties
float
default:"0.05"
The minimum duration (in seconds) of speech needed before the VAD decides speech has started.
float
default:"0.55"
The duration (in seconds) of silence required before the VAD concludes that speech has ended.
float
default:"0.5"
The duration (in seconds) of audio to include before detected speech begins. This helps retain audio leading up to the first speech frames.
float
default:"60.0"
The maximum duration (in seconds) of speech that will be buffered. Once this limit is reached, additional incoming speech data for the current segment will be ignored.
float
default:"0.5"
The threshold for deciding if audio is speech. A value closer to 1.0 requires stronger confidence of speech, while a value closer to 0.0 is more permissive.
int
default:"16000"
The audio sample rate (in Hz) used by Silero. Must be either 8,000 Hz or 16,000 Hz.
STT.OpenAI | STT.Azure | STT.Deepgram
required
The speech-to-text (STT) provider and its settings.
Show possible types
STT.OpenAI
OpenAI’s speech-to-text provider.
Show properties
string
required
Your OpenAI API key.
string
default:"en"
The language of the input audio. Supplying the input language in ISO-639-1 format will improve accuracy and latency. Defaults to "en" (English).
string
default:"whisper-1"
The OpenAI model that will perform the speech-to-text.
STT.Azure
Microsoft Azure’s speech-to-text provider.
Show properties
string
required
Your Azure Speech API key.
string
required
The Azure region that hosts your resource (e.g. "eastus").
int
default:"16000"
The sample rate for the stream.
int
default:"1"
The number of audio channels.
array
default:"[\"en-US\"]"
An array of strings containing the potential source languages. The language is specified in BCP-47 format.
STT.Deepgram
Deepgram’s speech-to-text provider.
Show properties
string
required
Your Deepgram API key.
string
default:"nova-2-general"
The AI model used to process submitted audio. Learn More
string
default:"en-US"
The BCP-47 language tag that hints at the primary spoken language. Learn More.
bool
default:"true"
Specifies whether the streaming endpoint should provide ongoing transcription updates as more audio is received. When set to true, the endpoint sends continuous updates, meaning transcription results may evolve over time. Learn More.
bool
default:"true"
Indicates whether to add punctuation and capitalization to the transcript. Learn More.
bool
default:"true"
Indicates whether to apply formatting to transcript output. When set to true, additional formatting will be applied to transcripts to improve readability. Learn More.
int
default:"16000"
Sample rate of submitted streaming audio. Required (and only read) when a value is provided for encoding. Learn More.
bool
default:"true"
Only relevant when smart_format is true. If a speaker begins saying a number while no_delay is false and Smart Format is enabled, Deepgram will wait to return a transcription until the speaker has finished and continues on to non-numerical speech. This behavior ensures numbers have the best possible formatting and are not broken up over multiple chunks.
int
default:"25"
Indicates how long Deepgram will wait to detect whether a speaker has finished speaking or pauses for a significant period of time. When set to true, the streaming endpoint immediately finalizes the transcription for the processed time range and returns the transcript with a speech_final parameter set to true. Learn More.
bool
default:"true"
Indicates whether to include filler words like “uh” and “um” in transcript output. When set to true, these words will be included. Learn More.
array of (string, float)
default:"[]"
Unique proper nouns or specialized terms you want the model to include in its predictions, which aren’t part of the model’s default vocabulary. Learn More.
bool
default:"false"
Indicates whether to remove profanity from the transcript. Learn More.
Defines the style for voice settings. This parameter is available on V2+ models.
bool or null
default:"false"
Defines the use speaker boost for voice settings. This parameter is available on V2+ models.
string
default:"eleven_turbo_v2_5"
Identifier of the ElevenLabs model that will be used.
string
default:"mp3_22050_32"
The output format of the generated audio.
bool
default:"false"
Whether to enable/disable parsing of SSML tags within the provided text. For best results, we recommend enabling SSML tags so that fully contained messages are sent to the websockets endpoint, otherwise this may result in additional latency.
array of int
default:"[80, 120, 200, 260]"
Schedule for chunk lengths, ranging from 50 to 500.
TTS.OpenAI
OpenAI’s text-to-speech provider.
Show properties
string
required
Your OpenAI API key.
string
default:"tts-1"
One of the available OpenAI TTS models.
string
default:"alloy"
The voice to use when generating the audio.
float
default:"1.0"
The speed of the generated audio. Select a value from 0.25 to 4.0.
TTS.Google
Google’s text-to-speech provider.
Show properties
object
required
Your Google credentials as a dictionary.
string
default:"en-US"
The language code of the voice to use when generating the audio.
string
default:"neutral"
The gender of the speaker. Valid values are: “male”, “female”, “neutral”, or the empty string "". Use an empty string if it doesn’t matter which gender the selected voice will have.
string
default:""
The name of the voice. If both the name and the gender are not set, the service will choose a voice based on the other parameters such as language_code.
string
default:"linear16"
Configuration to set up audio encoder. The encoding determines the output audio format that we’d like. Valid values: “linear16”, “wav”, or “mp3”.
int
default:"24000"
Audio sample rate (in hertz) for this audio.
int
default:"0"
Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 semitones from the original pitch. -20 means decrease 20 semitones from the original pitch.
string
default:""
An identifier which selects ‘audio effects’ profiles that are applied on (post synthesized) text to speech. Effects are applied on top of each other in the order they are given. See audio profiles in Google’s documentation for current supported profile ids.
float
default:"1.0"
Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal native speed supported by the specific voice. 2.0 is twice as fast, and 0.5 is half as fast.
TTS.Azure
Microsoft Azure’s text-to-speech provider.
Show properties
string
required
Your Azure Speech API key.
string
required
The Azure region that hosts your resource (e.g. "eastus").
int
default:"24000"
Audio sample rate (in hertz) for this audio. Valid values are: 8000, 16000, 22050, 24000, 44100, 48000.
Specify changes to pitch, contour, range, rate, and volume for the text to speech output. Learn more
Show ProsodyConfig
str | float | null
default:"null"
Indicates the speaking rate of the text. The rate changes should be within 0.5 to 2 times the original audio. You can express rate as:
A number that acts as a multiplier of the default. For example, a value of 1 results in no change in the original rate. A value of 0.5 results in a halving of the original rate. A value of 2 results in twice the original rate.
A string:
"x-slow" (equivalently 0.5)
"slow" (equivalently 0.64)
"medium" (equivalently 1, default value)
"fast" (equivalently 1.55)
"x-fast" (equivalently 2)
str | float | null
default:"null"
Indicates the volume level of the speaking voice. You can express the volume as:
A number in the range of 0.0 to 100.0, from quietest to loudest, such as 75. The default value is 100.
A string:
“silent” (equivalently 0)
“x-soft” (equivalently 20)
“soft” (equivalently 40)
“medium” (equivalently 60)
“loud” (equivalently 80)
“x-loud” (equivalently 100, default value)
str | null
default:"null"
Indicates the baseline pitch for the text. The pitch changes should be within 0.5 to 1.5 times the original audio. You can express the pitch as:
The audio encoding format. Currently, only "pcm_s16le" is supported.
string or array of float
default:"c2ac25f9-ecc4-4f56-9095-651354df60c0"
Either the string ID of the voice or a 192-dimensional vector (i.e. a list of 192 numbers) that represents the voice.
float or null
default:"null"
Either a number between -1.0 and 1.0 or a natural language description of speed (“fastest”, “fast”, “normal”, “slow”, “slowest”). If you specify a number, 0.0 is the default speed, -1.0 is the slowest speed, and 1.0 is the fastest speed.
Allows you to control the tradeoff between stability and latency. Setting this to "balanced" reduces latency, but may be less stable.
bool
default:"true"
Enables normalization of the input text, which improves stability for numbers, dates, and URLs.
object
required
Arbitrary fields that will be available throughout the session (e.g. in the llm_response_handler). Allows you to define custom data related to the user or session. Must be JSON serializable.
string (Optional)
An optional string representing a system or agent message to pre-send to the session.
bool
Whether user speech can interrupt the agent mid-speech. Defaults to true.
float
Minimum amount of time (in seconds) of user speech that must be detected before the agent’s speech is interrupted. Defaults to 0.5.
int
Minimum number of words spoken by the user that are required to interrupt agent speech. Defaults to 0.
float
Specifies the minimum endpointing delay for STT. Defaults to 0.5.
int
Maximum number of nested function calls allowed. Defaults to 1.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Jay","colors":{"primary":"#6c757d","light":"#1E90FF","dark":"#495057"},"favicon":"logo.svg","logo":null,"appearance":{"default":"dark","strict":true},"background":{"decoration":null,"color":{"light":"#ffffff","dark":"#111111"}},"navbar":{"links":[{"label":"Community","href":"https://discord.gg/mD4PpXuvss"}],"primary":{"type":"button","label":"Dashboard","href":"https://jay.so/dashboard"}},"footer":{"socials":{},"links":[{"header":"Company","items":[{"label":"Documentation","href":"https://docs.jay.so"},{"label":"Community","href":"https://discord.gg/mD4PpXuvss"}]},{"header":"Legal","items":[{"label":"Privacy Policy","href":"/privacy"},{"label":"Terms of Service","href":"/terms"}]}]},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"voice","hasAudioNarration":false,"actualSubdomain":"voice","customDomains":["docs.jay.so"],"gitSource":{"type":"github","owner":"token-js","repo":"jay","deployBranch":"main","contentDirectory":"services/website/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae92403277fb1e04545483d:success","clientVersion":"0.0.4352","searchFilterCounts":[{"language":"default","tag":"References","count":4},{"language":"default","tag":"Get Started","count":2},{"language":"default","tag":"Guides","count":2}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-access","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"references/configure-session","slug":"/references/configure-session","pageMetadata":{"title":"Configure Session","description":null,"href":"/references/configure-session"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`configure_session`,children:_jsx(_components.code,{children:`configure_session`})}),`\n`,_jsxs(_components.p,{children:[`An asynchronous function that runs at the beginning of every session. It configures the session\nby returning a `,_jsx(_components.a,{href:`https://docs.jay.so/references/configure-session#param-session-config`,children:_jsx(_components.code,{children:`SessionConfig`})}),` object, which contains parameters like VAD (voice\nactivity detection), STT (speech-to-text), TTS (text-to-speech), the initial messages of the session, etc.`]}),`\n`,_jsx(Heading,{level:`2`,id:`example-usage`,children:`Example usage`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`18`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`18`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` jay_ai `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ConfigureSessionInput, SessionConfig`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` def`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` configure_session`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`input`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: ConfigureSessionInput):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` user_timezone `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` input`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"custom_data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`][`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"my_user_timezone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` SessionConfig(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` initial_messages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"system\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"You are a helpful assistant.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` vad`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`VAD`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.Silero(),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` stt`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`STT`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.Deepgram(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`os.environ[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"DEEPGRAM_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` tts`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`TTS`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.OpenAI(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`os.environ[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"OPENAI_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` session_data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"my_user_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"test-12345\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"my_user_timezone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: user_timezone`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`parameters`,children:`Parameters`}),`\n`,_jsx(ResponseField,{name:`input`,type:`object`,required:true,id:`param-input`,children:_jsx(Expandable,{title:`properties`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`custom_data`,type:`object`,required:true,id:`param-custom-data`,children:_jsxs(_components.p,{children:[`Arbitrary fields that you can specify when you call the `,_jsx(_components.code,{children:`startSession`}),` API endpoint. Makes it possible to include fields that are specific to the session or to your users. Learn how to set these fields in the `,_jsx(_components.a,{href:`https://docs.jay.so/guides/starting-sessions`,children:`Starting Sessions guide`}),`.`]})})})}),`\n`,_jsxs(_components.p,{children:[`Example `,_jsx(_components.code,{children:`input`}),` parameter:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"custom_data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"my_user_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"abc123\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`returns`,children:`Returns`}),`\n`,_jsx(ResponseField,{name:`SessionConfig`,type:`object`,required:true,id:`param-session-config`,children:_jsxs(Expandable,{title:`properties`,defaultOpen:`true`,children:[_jsxs(ResponseField,{name:`initial_messages`,type:`object`,required:true,id:`param-initial-messages`,children:[_jsx(_components.p,{children:`A list of messages containing the conversation so far. Make this an empty array if you want the conversation to start from scratch.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`content`,type:`string`,required:true,id:`param-content`,children:_jsx(_components.p,{children:`The contents of the message.`})}),_jsx(ResponseField,{name:`role`,type:`string`,required:true,id:`param-role`,children:_jsx(_components.p,{children:`The role of the speaker. Either ‘system’, ‘user’, ‘assistant’, or ‘tool’.`})}),_jsx(ResponseField,{name:`name`,type:`string (Optional)`,id:`param-name`,children:_jsx(_components.p,{children:`An optional name for the speaker. Some LLMs, such as OpenAI’s, can use this field to differentiate between participants of the same role.`})}),_jsx(ResponseField,{name:`tool_call_id`,type:`string (Optional)`,id:`param-tool-call-id`,children:_jsxs(_components.p,{children:[`Tool call that this message is responding to. Only present if the `,_jsx(_components.code,{children:`role`}),` is `,_jsx(_components.code,{children:`\"tool\"`}),`.`]})})]})]}),_jsxs(ResponseField,{name:`vad`,type:`VAD.Silero`,required:true,id:`param-vad`,children:[_jsx(_components.p,{children:`The voice activity detection (VAD) provider and its settings. Currently, only Silero is supported.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`min_speech_duration`,type:`float`,default:`0.05`,id:`param-min-speech-duration`,children:_jsx(_components.p,{children:`The minimum duration (in seconds) of speech needed before the VAD decides speech has started.`})}),_jsx(ResponseField,{name:`min_silence_duration`,type:`float`,default:`0.55`,id:`param-min-silence-duration`,children:_jsx(_components.p,{children:`The duration (in seconds) of silence required before the VAD concludes that speech has ended.`})}),_jsx(ResponseField,{name:`prefix_padding_duration`,type:`float`,default:`0.5`,id:`param-prefix-padding-duration`,children:_jsx(_components.p,{children:`The duration (in seconds) of audio to include before detected speech begins. This helps retain audio leading up to the first speech frames.`})}),_jsx(ResponseField,{name:`max_buffered_speech`,type:`float`,default:`60.0`,id:`param-max-buffered-speech`,children:_jsx(_components.p,{children:`The maximum duration (in seconds) of speech that will be buffered. Once this limit is reached, additional incoming speech data for the current segment will be ignored.`})}),_jsx(ResponseField,{name:`activation_threshold`,type:`float`,default:`0.5`,id:`param-activation-threshold`,children:_jsx(_components.p,{children:`The threshold for deciding if audio is speech. A value closer to 1.0 requires stronger confidence of speech, while a value closer to 0.0 is more permissive.`})}),_jsx(ResponseField,{name:`sample_rate`,type:`int`,default:`16000`,id:`param-sample-rate`,children:_jsx(_components.p,{children:`The audio sample rate (in Hz) used by Silero. Must be either 8,000 Hz or 16,000 Hz.`})})]})]}),_jsxs(ResponseField,{name:`stt`,type:`STT.OpenAI | STT.Azure | STT.Deepgram`,required:true,id:`param-stt`,children:[_jsx(_components.p,{children:`The speech-to-text (STT) provider and its settings.`}),_jsxs(Expandable,{title:`possible types`,children:[_jsxs(ResponseField,{name:`OpenAI`,type:`STT.OpenAI`,id:`param-open-ai`,children:[_jsx(_components.p,{children:`OpenAI’s speech-to-text provider.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`api_key`,type:`string`,required:true,id:`param-api-key`,children:_jsx(_components.p,{children:`Your OpenAI API key.`})}),_jsx(ResponseField,{name:`language`,type:`string`,default:`en`,id:`param-language`,children:_jsxs(_components.p,{children:[`The language of the input audio. Supplying the input language in `,_jsx(_components.a,{href:`https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes`,children:`ISO-639-1`}),` format will improve accuracy and latency. Defaults to `,_jsx(_components.code,{children:`\"en\"`}),` (English).`]})}),_jsx(ResponseField,{name:`model`,type:`string`,default:`whisper-1`,id:`param-model`,children:_jsx(_components.p,{children:`The OpenAI model that will perform the speech-to-text.`})})]})]}),_jsxs(ResponseField,{name:`Azure`,type:`STT.Azure`,id:`param-azure`,children:[_jsx(_components.p,{children:`Microsoft Azure’s speech-to-text provider.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`api_key`,type:`string`,required:true,id:`param-api-key-1`,children:_jsx(_components.p,{children:`Your Azure Speech API key.`})}),_jsx(ResponseField,{name:`region`,type:`string`,required:true,id:`param-region`,children:_jsxs(_components.p,{children:[`The Azure region that hosts your resource (e.g. `,_jsx(_components.code,{children:`\"eastus\"`}),`).`]})}),_jsx(ResponseField,{name:`sample_rate`,type:`int`,default:`16000`,id:`param-sample-rate-1`,children:_jsx(_components.p,{children:`The sample rate for the stream.`})}),_jsx(ResponseField,{name:`num_channels`,type:`int`,default:`1`,id:`param-num-channels`,children:_jsx(_components.p,{children:`The number of audio channels.`})}),_jsx(ResponseField,{name:`languages`,type:`array`,default:`[\"en-US\"]`,id:`param-languages`,children:_jsxs(_components.p,{children:[`An array of strings containing the potential source languages. The language is specified in `,_jsx(_components.a,{href:`https://www.rfc-editor.org/info/bcp47`,children:`BCP-47`}),` format.`]})})]})]}),_jsxs(ResponseField,{name:`Deepgram`,type:`STT.Deepgram`,id:`param-deepgram`,children:[_jsx(_components.p,{children:`Deepgram’s speech-to-text provider.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`api_key`,type:`string`,required:true,id:`param-api-key-2`,children:_jsx(_components.p,{children:`Your Deepgram API key.`})}),_jsx(ResponseField,{name:`model`,type:`string`,default:`nova-2-general`,id:`param-model-1`,children:_jsxs(_components.p,{children:[`The AI model used to process submitted audio. `,_jsx(_components.a,{href:`https://developers.deepgram.com/docs/model`,children:`Learn More`})]})}),_jsx(ResponseField,{name:`language`,type:`string`,default:`en-US`,id:`param-language-1`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`https://www.rfc-editor.org/info/bcp47`,children:`BCP-47`}),` language tag that hints at the primary spoken language. `,_jsx(_components.a,{href:`https://developers.deepgram.com/docs/language`,children:`Learn More`}),`.`]})}),_jsx(ResponseField,{name:`interim_results`,type:`bool`,default:`true`,id:`param-interim-results`,children:_jsxs(_components.p,{children:[`Specifies whether the streaming endpoint should provide ongoing transcription updates as more audio is received. When set to `,_jsx(_components.code,{children:`true`}),`, the endpoint sends continuous updates, meaning transcription results may evolve over time. `,_jsx(_components.a,{href:`https://developers.deepgram.com/docs/interim-results`,children:`Learn More`}),`.`]})}),_jsx(ResponseField,{name:`punctuate`,type:`bool`,default:`true`,id:`param-punctuate`,children:_jsxs(_components.p,{children:[`Indicates whether to add punctuation and capitalization to the transcript. `,_jsx(_components.a,{href:`https://developers.deepgram.com/docs/punctuation`,children:`Learn More`}),`.`]})}),_jsx(ResponseField,{name:`smart_format`,type:`bool`,default:`true`,id:`param-smart-format`,children:_jsxs(_components.p,{children:[`Indicates whether to apply formatting to transcript output. When set to `,_jsx(_components.code,{children:`true`}),`, additional formatting will be applied to transcripts to improve readability. `,_jsx(_components.a,{href:`https://developers.deepgram.com/docs/smart-format`,children:`Learn More`}),`.`]})}),_jsx(ResponseField,{name:`sample_rate`,type:`int`,default:`16000`,id:`param-sample-rate-2`,children:_jsxs(_components.p,{children:[`Sample rate of submitted streaming audio. Required (and only read) when a value is provided for encoding. `,_jsx(_components.a,{href:`https://developers.deepgram.com/docs/sample-rate`,children:`Learn More`}),`.`]})}),_jsx(ResponseField,{name:`no_delay`,type:`bool`,default:`true`,id:`param-no-delay`,children:_jsxs(_components.p,{children:[`Only relevant when `,_jsx(_components.code,{children:`smart_format`}),` is `,_jsx(_components.code,{children:`true`}),`. If a speaker begins saying a number while `,_jsx(_components.code,{children:`no_delay`}),` is `,_jsx(_components.code,{children:`false`}),` and Smart Format is enabled, Deepgram will wait to return a transcription until the speaker has finished and continues on to non-numerical speech. This behavior ensures numbers have the best possible formatting and are not broken up over multiple chunks.`]})}),_jsx(ResponseField,{name:`endpointing_ms`,type:`int`,default:`25`,id:`param-endpointing-ms`,children:_jsxs(_components.p,{children:[`Indicates how long Deepgram will wait to detect whether a speaker has finished speaking or pauses for a significant period of time. When set to `,_jsx(_components.code,{children:`true`}),`, the streaming endpoint immediately finalizes the transcription for the processed time range and returns the transcript with a `,_jsx(_components.code,{children:`speech_final`}),` parameter set to `,_jsx(_components.code,{children:`true`}),`. `,_jsx(_components.a,{href:`https://developers.deepgram.com/docs/endpointing`,children:`Learn More`}),`.`]})}),_jsx(ResponseField,{name:`filler_words`,type:`bool`,default:`true`,id:`param-filler-words`,children:_jsxs(_components.p,{children:[`Indicates whether to include filler words like “uh” and “um” in transcript output. When set to `,_jsx(_components.code,{children:`true`}),`, these words will be included. `,_jsx(_components.a,{href:`https://developers.deepgram.com/docs/filler-words`,children:`Learn More`}),`.`]})}),_jsx(ResponseField,{name:`keywords`,type:`array of (string, float)`,default:`[]`,id:`param-keywords`,children:_jsxs(_components.p,{children:[`Unique proper nouns or specialized terms you want the model to include in its predictions, which aren’t part of the model’s default vocabulary. `,_jsx(_components.a,{href:`https://developers.deepgram.com/docs/keywords`,children:`Learn More`}),`.`]})}),_jsx(ResponseField,{name:`profanity_filter`,type:`bool`,default:`false`,id:`param-profanity-filter`,children:_jsxs(_components.p,{children:[`Indicates whether to remove profanity from the transcript. `,_jsx(_components.a,{href:`https://developers.deepgram.com/docs/profanity-filter`,children:`Learn More`}),`.`]})})]})]})]})]}),_jsxs(ResponseField,{name:`tts`,type:`TTS.OpenAI | TTS.ElevenLabs | TTS.Google | TTS.Azure | TTS.Deepgram | TTS.Cartesia | TTS.FishAudio`,required:true,id:`param-tts`,children:[_jsx(_components.p,{children:`The text-to-speech (TTS) provider and its settings.`}),_jsxs(Expandable,{title:`possible types`,children:[_jsxs(ResponseField,{name:`ElevenLabs`,type:`TTS.ElevenLabs`,id:`param-eleven-labs`,children:[_jsx(_components.p,{children:`ElevenLabs’ text-to-speech provider.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`api_key`,type:`string`,required:true,id:`param-api-key-3`,children:_jsx(_components.p,{children:`Your ElevenLabs API key.`})}),_jsxs(ResponseField,{name:`voice`,type:`Voice`,default:`DEFAULT_VOICE`,id:`param-voice`,children:[_jsx(_components.p,{children:`The voice to use. Defaults to:`}),_jsx(CodeBlock,{numberOfLines:`9`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`DEFAULT_VOICE = Voice(`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` id=\"EXAVITQu4vr4xnSDxMaL\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` name=\"Bella\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` category=\"premade\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` settings=VoiceSettings(`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` stability=0.71, similarity_boost=0.5, style=0.0, use_speaker_boost=True`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` ),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(Expandable,{title:`Voice`,children:[_jsx(ResponseField,{name:`id`,type:`string`,required:true,id:`param-id`,children:_jsxs(_components.p,{children:[`Voice ID to use. You can use `,_jsx(_components.a,{href:`https://api.elevenlabs.io/v1/voices`,children:_jsx(_components.code,{children:`https://api.elevenlabs.io/v1/voices`})}),` to list all the available voices.`]})}),_jsx(ResponseField,{name:`name`,type:`string`,required:true,id:`param-name-1`,children:_jsx(_components.p,{children:`The name of the ElevenLabs voice (e.g. “Sarah”).`})}),_jsx(ResponseField,{name:`category`,type:`string`,required:true,id:`param-category`,children:_jsxs(_components.p,{children:[`The category of ElevenLabs voice (e.g. “professional”). See the `,_jsxs(_components.a,{href:`https://elevenlabs.io/docs/api-reference/voices/get-all#response.body.voices.category`,children:[`full list of valid ElevenLabs `,_jsx(_components.code,{children:`category`}),` fields`]})]})}),_jsx(ResponseField,{name:`settings`,type:`VoiceSettings or null`,default:`null`,id:`param-settings`,children:_jsxs(Expandable,{title:`VoiceSettings`,children:[_jsx(ResponseField,{name:`stability`,type:`float`,required:true,id:`param-stability`,children:_jsx(_components.p,{children:`Defines the stability for voice settings.`})}),_jsx(ResponseField,{name:`similarity_boost`,type:`float`,required:true,id:`param-similarity-boost`,children:_jsx(_components.p,{children:`Defines the similarity boost for voice settings.`})}),_jsx(ResponseField,{name:`style`,type:`float or null`,default:`null`,id:`param-style`,children:_jsx(_components.p,{children:`Defines the style for voice settings. This parameter is available on V2+ models.`})}),_jsx(ResponseField,{name:`use_speaker_boost`,type:`bool or null`,default:`false`,id:`param-use-speaker-boost`,children:_jsx(_components.p,{children:`Defines the use speaker boost for voice settings. This parameter is available on V2+ models.`})})]})})]})]}),_jsx(ResponseField,{name:`model`,type:`string`,default:`eleven_turbo_v2_5`,id:`param-model-2`,children:_jsx(_components.p,{children:`Identifier of the ElevenLabs model that will be used.`})}),_jsx(ResponseField,{name:`encoding`,type:`string`,default:`mp3_22050_32`,id:`param-encoding`,children:_jsx(_components.p,{children:`The output format of the generated audio.`})}),_jsx(ResponseField,{name:`enable_ssml_parsing`,type:`bool`,default:`false`,id:`param-enable-ssml-parsing`,children:_jsx(_components.p,{children:`Whether to enable/disable parsing of SSML tags within the provided text. For best results, we recommend enabling SSML tags so that fully contained messages are sent to the websockets endpoint, otherwise this may result in additional latency.`})}),_jsx(ResponseField,{name:`chunk_length_schedule`,type:`array of int`,default:`[80, 120, 200, 260]`,id:`param-chunk-length-schedule`,children:_jsx(_components.p,{children:`Schedule for chunk lengths, ranging from 50 to 500.`})})]})]}),_jsxs(ResponseField,{name:`OpenAI`,type:`TTS.OpenAI`,id:`param-open-ai-1`,children:[_jsx(_components.p,{children:`OpenAI’s text-to-speech provider.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`api_key`,type:`string`,required:true,id:`param-api-key-4`,children:_jsx(_components.p,{children:`Your OpenAI API key.`})}),_jsx(ResponseField,{name:`model`,type:`string`,default:`tts-1`,id:`param-model-3`,children:_jsx(_components.p,{children:`One of the available OpenAI TTS models.`})}),_jsx(ResponseField,{name:`voice`,type:`string`,default:`alloy`,id:`param-voice-1`,children:_jsx(_components.p,{children:`The voice to use when generating the audio.`})}),_jsx(ResponseField,{name:`speed`,type:`float`,default:`1.0`,id:`param-speed`,children:_jsx(_components.p,{children:`The speed of the generated audio. Select a value from 0.25 to 4.0.`})})]})]}),_jsxs(ResponseField,{name:`Google`,type:`TTS.Google`,id:`param-google`,children:[_jsx(_components.p,{children:`Google’s text-to-speech provider.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`credentials`,type:`object`,required:true,id:`param-credentials`,children:_jsx(_components.p,{children:`Your Google credentials as a dictionary.`})}),_jsx(ResponseField,{name:`language`,type:`string`,default:`en-US`,id:`param-language-2`,children:_jsx(_components.p,{children:`The language code of the voice to use when generating the audio.`})}),_jsx(ResponseField,{name:`gender`,type:`string`,default:`neutral`,id:`param-gender`,children:_jsx(_components.p,{children:`The gender of the speaker. Valid values are: “male”, “female”, “neutral”, or the empty string \"\". Use an empty string if it doesn’t matter which gender the selected voice will have.`})}),_jsx(ResponseField,{name:`voice_name`,type:`string`,default:``,id:`param-voice-name`,children:_jsxs(_components.p,{children:[`The name of the voice. If both the name and the gender are not set, the service will choose a voice based on the other parameters such as `,_jsx(_components.code,{children:`language_code`}),`.`]})}),_jsx(ResponseField,{name:`encoding`,type:`string`,default:`linear16`,id:`param-encoding-1`,children:_jsx(_components.p,{children:`Configuration to set up audio encoder. The encoding determines the output audio format that we’d like. Valid values: “linear16”, “wav”, or “mp3”.`})}),_jsx(ResponseField,{name:`sample_rate`,type:`int`,default:`24000`,id:`param-sample-rate-3`,children:_jsx(_components.p,{children:`Audio sample rate (in hertz) for this audio.`})}),_jsx(ResponseField,{name:`pitch`,type:`int`,default:`0`,id:`param-pitch`,children:_jsx(_components.p,{children:`Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 semitones from the original pitch. -20 means decrease 20 semitones from the original pitch.`})}),_jsx(ResponseField,{name:`effects_profile_id`,type:`string`,default:``,id:`param-effects-profile-id`,children:_jsxs(_components.p,{children:[`An identifier which selects ‘audio effects’ profiles that are applied on (post synthesized) text to speech. Effects are applied on top of each other in the order they are given. See `,_jsx(_components.a,{href:`https://cloud.google.com/text-to-speech/docs/audio-profiles`,children:`audio profiles`}),` in Google’s documentation for current supported profile ids.`]})}),_jsx(ResponseField,{name:`speaking_rate`,type:`float`,default:`1.0`,id:`param-speaking-rate`,children:_jsx(_components.p,{children:`Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal native speed supported by the specific voice. 2.0 is twice as fast, and 0.5 is half as fast.`})})]})]}),_jsxs(ResponseField,{name:`Azure`,type:`TTS.Azure`,id:`param-azure-1`,children:[_jsx(_components.p,{children:`Microsoft Azure’s text-to-speech provider.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`api_key`,type:`string`,required:true,id:`param-api-key-5`,children:_jsx(_components.p,{children:`Your Azure Speech API key.`})}),_jsx(ResponseField,{name:`region`,type:`string`,required:true,id:`param-region-1`,children:_jsxs(_components.p,{children:[`The Azure region that hosts your resource (e.g. `,_jsx(_components.code,{children:`\"eastus\"`}),`).`]})}),_jsx(ResponseField,{name:`sample_rate`,type:`int`,default:`24000`,id:`param-sample-rate-4`,children:_jsx(_components.p,{children:`Audio sample rate (in hertz) for this audio. Valid values are: 8000, 16000, 22050, 24000, 44100, 48000.`})}),_jsx(ResponseField,{name:`voice`,type:`string or null`,default:`null`,id:`param-voice-2`,children:_jsxs(_components.p,{children:[`The name of the voice to use. `,_jsx(_components.a,{href:`https://learn.microsoft.com/en-us/azure/ai-services/speech-service/language-support?tabs=tts`,children:`Explore Azure voices`}),`.`]})}),_jsx(ResponseField,{name:`language`,type:`string or null`,default:`null`,id:`param-language-3`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`https://www.rfc-editor.org/info/bcp47`,children:`BCP-47`}),` language tag of the voice.`]})}),_jsxs(ResponseField,{name:`prosody`,type:`ProsodyConfig or null`,default:`null`,id:`param-prosody`,children:[_jsxs(_components.p,{children:[`Specify changes to pitch, contour, range, rate, and volume for the text to speech output. `,_jsx(_components.a,{href:`https://learn.microsoft.com/en-us/azure/ai-services/speech-service/speech-synthesis-markup-voice#adjust-prosody`,children:`Learn more`})]}),_jsxs(Expandable,{title:`ProsodyConfig`,children:[_jsxs(ResponseField,{name:`rate`,type:`str | float | null`,default:`null`,id:`param-rate`,children:[_jsx(_components.p,{children:`Indicates the speaking rate of the text. The rate changes should be within 0.5 to 2 times the original audio. You can express rate as:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`A number that acts as a multiplier of the default. For example, a value of 1 results in no change in the original rate. A value of 0.5 results in a halving of the original rate. A value of 2 results in twice the original rate.`}),`\n`,_jsxs(_components.li,{children:[`A string:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`\"x-slow\"`}),` (equivalently 0.5)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`\"slow\"`}),` (equivalently 0.64)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`\"medium\"`}),` (equivalently 1, default value)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`\"fast\"`}),` (equivalently 1.55)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`\"x-fast\"`}),` (equivalently 2)`]}),`\n`]}),`\n`]}),`\n`]})]}),_jsxs(ResponseField,{name:`volume`,type:`str | float | null`,default:`null`,id:`param-volume`,children:[_jsx(_components.p,{children:`Indicates the volume level of the speaking voice. You can express the volume as:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`A number in the range of 0.0 to 100.0, from quietest to loudest, such as 75. The default value is 100.`}),`\n`,_jsxs(_components.li,{children:[`A string:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`“`,_jsx(_components.code,{children:`silent`}),`” (equivalently 0)`]}),`\n`,_jsxs(_components.li,{children:[`“`,_jsx(_components.code,{children:`x-soft`}),`” (equivalently 20)`]}),`\n`,_jsxs(_components.li,{children:[`“`,_jsx(_components.code,{children:`soft`}),`” (equivalently 40)`]}),`\n`,_jsxs(_components.li,{children:[`“`,_jsx(_components.code,{children:`medium`}),`” (equivalently 60)`]}),`\n`,_jsxs(_components.li,{children:[`“`,_jsx(_components.code,{children:`loud`}),`” (equivalently 80)`]}),`\n`,_jsxs(_components.li,{children:[`“`,_jsx(_components.code,{children:`x-loud`}),`” (equivalently 100, default value)`]}),`\n`]}),`\n`]}),`\n`]})]}),_jsxs(ResponseField,{name:`pitch`,type:`str | null`,default:`null`,id:`param-pitch-1`,children:[_jsx(_components.p,{children:`Indicates the baseline pitch for the text. The pitch changes should be within 0.5 to 1.5 times the original audio. You can express the pitch as:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`\"x-low\"`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`\"low\"`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`\"medium\"`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`\"high\"`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`\"x-high\"`})}),`\n`]})]})]})]}),_jsx(ResponseField,{name:`endpoint_id`,type:`string or null`,default:`null`,id:`param-endpoint-id`,children:_jsxs(_components.p,{children:[`The ID of a custom endpoint. `,_jsx(_components.a,{href:`https://learn.microsoft.com/en-us/azure/ai-services/speech-service/how-to-speech-synthesis?tabs=browserjs%2Cterminal\u0026pivots=programming-language-python#use-a-custom-endpoint`,children:`Learn more`})]})})]})]}),_jsxs(ResponseField,{name:`Deepgram`,type:`TTS.Deepgram`,id:`param-deepgram-1`,children:[_jsx(_components.p,{children:`Deepgram’s text-to-speech provider.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`api_key`,type:`string`,required:true,id:`param-api-key-6`,children:_jsx(_components.p,{children:`Your Deepgram API key.`})}),_jsx(ResponseField,{name:`model`,type:`string`,default:`aura-asteria-en`,id:`param-model-4`,children:_jsxs(_components.p,{children:[`The AI model used to process submitted audio. `,_jsx(_components.a,{href:`https://developers.deepgram.com/docs/model`,children:`Learn more`}),`.`]})}),_jsx(ResponseField,{name:`encoding`,type:`string`,default:`linear16`,id:`param-encoding-2`,children:_jsxs(_components.p,{children:[`Expected encoding of the submitted streaming audio. `,_jsx(_components.a,{href:`https://developers.deepgram.com/docs/encoding`,children:`Learn more`}),`.`]})}),_jsx(ResponseField,{name:`sample_rate`,type:`int`,default:`24000`,id:`param-sample-rate-5`,children:_jsxs(_components.p,{children:[`Sample rate of submitted streaming audio. `,_jsx(_components.a,{href:`https://developers.deepgram.com/docs/sample-rate`,children:`Learn more`}),`.`]})})]})]}),_jsxs(ResponseField,{name:`Cartesia`,type:`TTS.Cartesia`,id:`param-cartesia`,children:[_jsx(_components.p,{children:`Cartesia’s text-to-speech provider.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`api_key`,type:`string`,required:true,id:`param-api-key-7`,children:_jsx(_components.p,{children:`Your Cartesia API key.`})}),_jsx(ResponseField,{name:`model`,type:`string`,default:`sonic-english`,id:`param-model-5`,children:_jsxs(_components.p,{children:[`The ID of the model to use for the generation. See `,_jsx(_components.a,{href:`https://docs.cartesia.ai/build-with-sonic/models`,children:`Cartesia’s available models`}),`.`]})}),_jsx(ResponseField,{name:`language`,type:`string`,default:`en`,id:`param-language-4`,children:_jsxs(_components.p,{children:[`The language that the given voice should speak the transcript in. See `,_jsx(_components.a,{href:`https://docs.cartesia.ai/build-with-sonic/models`,children:`Cartesia’s available languages`}),`.`]})}),_jsx(ResponseField,{name:`encoding`,type:`string`,default:`pcm_s16le`,id:`param-encoding-3`,children:_jsxs(_components.p,{children:[`The audio encoding format. Currently, only `,_jsx(_components.code,{children:`\"pcm_s16le\"`}),` is supported.`]})}),_jsx(ResponseField,{name:`voice`,type:`string or array of float`,default:`c2ac25f9-ecc4-4f56-9095-651354df60c0`,id:`param-voice-3`,children:_jsx(_components.p,{children:`Either the string ID of the voice or a 192-dimensional vector (i.e. a list of 192 numbers) that represents the voice.`})}),_jsx(ResponseField,{name:`speed`,type:`float or null`,default:`null`,id:`param-speed-1`,children:_jsx(_components.p,{children:`Either a number between -1.0 and 1.0 or a natural language description of speed (“fastest”, “fast”, “normal”, “slow”, “slowest”). If you specify a number, 0.0 is the default speed, -1.0 is the slowest speed, and 1.0 is the fastest speed.`})}),_jsx(ResponseField,{name:`emotion`,type:`array of string or null`,default:`null`,id:`param-emotion`,children:_jsxs(_components.p,{children:[`The emotion of the speaker (e.g. “positivity:high”). See `,_jsx(_components.a,{href:`https://docs.cartesia.ai/build-with-sonic/capability-guides/control-speed-and-emotion#emotion-options`,children:`Cartesia’s emotion guide`}),`.`]})}),_jsx(ResponseField,{name:`sample_rate`,type:`int`,default:`24000`,id:`param-sample-rate-6`,children:_jsx(_components.p,{children:`Sample rate (in hertz) for this audio.`})})]})]}),_jsxs(ResponseField,{name:`FishAudio`,type:`TTS.FishAudio`,id:`param-fish-audio`,children:[_jsx(_components.p,{children:`FishAudio text-to-speech provider.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`api_key`,type:`string`,required:true,id:`param-api-key-8`,children:_jsx(_components.p,{children:`Your FishAudio API key.`})}),_jsx(ResponseField,{name:`model_id`,type:`string`,default:`802e3bc2b27e49c2995d23ef70e6ac89`,id:`param-model-id`,children:_jsxs(_components.p,{children:[`Identifier of the FishAudio voice model to use. Defaults to energetic male voice: `,_jsx(_components.a,{href:`https://fish.audio/m/802e3bc2b27e49c2995d23ef70e6ac89/`,children:`https://fish.audio/m/802e3bc2b27e49c2995d23ef70e6ac89/`})]})}),_jsx(ResponseField,{name:`latency`,type:`string`,default:`balanced`,id:`param-latency`,children:_jsxs(_components.p,{children:[`Allows you to control the tradeoff between stability and latency. Setting this to `,_jsx(_components.code,{children:`\"balanced\"`}),` reduces latency, but may be less stable.`]})}),_jsx(ResponseField,{name:`normalize`,type:`bool`,default:`true`,id:`param-normalize`,children:_jsx(_components.p,{children:`Enables normalization of the input text, which improves stability for numbers, dates, and URLs.`})})]})]})]})]}),_jsx(ResponseField,{name:`session_data`,type:`object`,required:true,id:`param-session-data`,children:_jsxs(_components.p,{children:[`Arbitrary fields that will be available throughout the session (e.g. in the `,_jsx(_components.code,{children:`llm_response_handler`}),`). Allows you to define custom data related to the user or session. Must be JSON serializable.`]})}),_jsx(ResponseField,{name:`first_message`,type:`string (Optional)`,id:`param-first-message`,children:_jsx(_components.p,{children:`An optional string representing a system or agent message to pre-send to the session.`})}),_jsx(ResponseField,{name:`allow_interruptions`,type:`bool`,id:`param-allow-interruptions`,children:_jsxs(_components.p,{children:[`Whether user speech can interrupt the agent mid-speech. Defaults to `,_jsx(_components.code,{children:`true`}),`.`]})}),_jsx(ResponseField,{name:`interrupt_time_threshold`,type:`float`,id:`param-interrupt-time-threshold`,children:_jsxs(_components.p,{children:[`Minimum amount of time (in seconds) of user speech that must be detected before the agent’s speech is interrupted. Defaults to `,_jsx(_components.code,{children:`0.5`}),`.`]})}),_jsx(ResponseField,{name:`interrupt_word_threshold`,type:`int`,id:`param-interrupt-word-threshold`,children:_jsxs(_components.p,{children:[`Minimum number of words spoken by the user that are required to interrupt agent speech. Defaults to `,_jsx(_components.code,{children:`0`}),`.`]})}),_jsx(ResponseField,{name:`min_endpointing_delay`,type:`float`,id:`param-min-endpointing-delay`,children:_jsxs(_components.p,{children:[`Specifies the minimum endpointing delay for STT. Defaults to `,_jsx(_components.code,{children:`0.5`}),`.`]})}),_jsx(ResponseField,{name:`max_nested_function_calls`,type:`int`,id:`param-max-nested-function-calls`,children:_jsxs(_components.p,{children:[`Maximum number of nested function calls allowed. Defaults to `,_jsx(_components.code,{children:`1`}),`.`]})})]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Configure Session","description":null,"href":"/references/configure-session"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"configure_session","slug":"configure_session","depth":1,"children":[]},{"title":"Example usage","slug":"example-usage","depth":2,"children":[]},{"title":"Parameters","slug":"parameters","depth":2,"children":[]},{"title":"Returns","slug":"returns","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"voice","siteName":"Jay","title":"Configure Session - Jay","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T05:45:31.562Z","originalFileLocation":"references/configure-session.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Jay\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/voice/Cw0PavXk-qut-KEZ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/voice/Cw0PavXk-qut-KEZ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/voice/Cw0PavXk-qut-KEZ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/voice/Cw0PavXk-qut-KEZ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/voice/Cw0PavXk-qut-KEZ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/voice/Cw0PavXk-qut-KEZ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/voice/Cw0PavXk-qut-KEZ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/voice/Cw0PavXk-qut-KEZ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/voice/Cw0PavXk-qut-KEZ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Configure Session - Jay\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Jay\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.jay.so/references/configure-session\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://voice.mintlify.site/_mintlify/api/og/v2?division=References\u0026amp;title=Configure+Session\u0026amp;theme=7d836672970412e681976e94\u0026amp;signature=4b740b323ccfc11075deaff89ffab717fcbbf00c3ce6c73d992c1630872aa695\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Configure Session - Jay\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://voice.mintlify.site/_mintlify/api/og/v2?division=References\u0026amp;title=Configure+Session\u0026amp;theme=7d836672970412e681976e94\u0026amp;signature=4b740b323ccfc11075deaff89ffab717fcbbf00c3ce6c73d992c1630872aa695\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/voice/Cw0PavXk-qut-KEZ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Jay\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6c757d\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.jay.so/references/configure-session\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/references/configure-session.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.jay.so/#organization\",\"name\":\"Jay\",\"url\":\"https://docs.jay.so\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.jay.so#website\",\"name\":\"Jay\",\"url\":\"https://docs.jay.so\",\"publisher\":{\"@id\":\"https://docs.jay.so/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.jay.so/references/configure-session#webpage\",\"url\":\"https://docs.jay.so/references/configure-session\",\"name\":\"Configure Session\",\"dateModified\":\"2026-01-07T05:45:31.562Z\",\"isPartOf\":{\"@id\":\"https://docs.jay.so#website\"},\"breadcrumb\":{\"@id\":\"https://docs.jay.so/references/configure-session#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.jay.so/references/configure-session#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"References\",\"item\":\"https://docs.jay.so/references/agent\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Configure Session\",\"item\":\"https://docs.jay.so/references/configure-session\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.jay.so/references/configure-session#article\",\"headline\":\"Configure Session\",\"name\":\"Configure Session\",\"url\":\"https://docs.jay.so/references/configure-session\",\"mainEntityOfPage\":{\"@id\":\"https://docs.jay.so/references/configure-session#webpage\"},\"dateModified\":\"2026-01-07T05:45:31.562Z\",\"publisher\":{\"@id\":\"https://docs.jay.so/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.jay.so#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Jay\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Jay\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/references/configure-session.md","siteName":"Jay","nav":{"global":null,"groups":[{"group":"Get Started","pages":[{"title":"Quickstart","mode":"wide","href":"/get-started/quickstart"},{"title":"Agent Overview","href":"/get-started/agent-overview"}]},{"group":"Guides","pages":[{"title":"Starting Sessions","href":"/guides/starting-sessions"},{"title":"Function Calling","href":"/guides/function-calling"}]},{"group":"References","pages":[{"title":"Agent","description":null,"href":"/references/agent"},{"title":"Configure Session","href":"/references/configure-session"},{"title":"LLM Response Handler","description":null,"href":"/references/llm-response-handler"},{"title":"Event Handlers","href":"/references/event-handlers"}]}]},"basePath":"","title":"Configure Session - Jay","deploymentId":"dpl_5nNsUVHqbVdUHouroPPzwztSbjmH","buildId":"dpl_5nNsUVHqbVdUHouroPPzwztSbjmH","dynamics":[],"chunks":[]}