@@ -159,6 +159,9 @@ type LeMURBaseParams struct {
159159type LeMURBaseResponse struct {
160160 // The ID of the LeMUR request
161161 RequestID * string `json:"request_id,omitempty"`
162+
163+ // The usage numbers for the LeMUR request
164+ Usage LeMURUsage `json:"usage,omitempty"`
162165}
163166
164167// The model that is used for the final prompt after compression is performed.
@@ -225,6 +228,15 @@ type LeMURTaskResponse struct {
225228 LeMURBaseResponse
226229}
227230
231+ // The usage numbers for the LeMUR request
232+ type LeMURUsage struct {
233+ // The number of input tokens used by the model
234+ InputTokens * int64 `json:"input_tokens,omitempty"`
235+
236+ // The number of output tokens generated by the model
237+ OutputTokens * int64 `json:"output_tokens,omitempty"`
238+ }
239+
228240type ListTranscriptParams struct {
229241 // Get transcripts that were created after this transcript ID
230242 AfterID * string `url:"after_id,omitempty"`
@@ -247,8 +259,10 @@ type ListTranscriptParams struct {
247259
248260// Details of the transcript page. Transcripts are sorted from newest to oldest. The previous URL always points to a page with older transcripts.
249261type PageDetails struct {
262+ // The URL used to retrieve the current page of transcripts
250263 CurrentURL * string `json:"current_url,omitempty"`
251264
265+ // The number of results this page is limited to
252266 Limit * int64 `json:"limit,omitempty"`
253267
254268 // The URL to the next page of transcripts. The next URL always points to a page with newer transcripts.
@@ -257,6 +271,7 @@ type PageDetails struct {
257271 // The URL to the next page of transcripts. The previous URL always points to a page with older transcripts.
258272 PrevURL * string `json:"prev_url,omitempty"`
259273
274+ // The actual number of results in the page
260275 ResultCount * int64 `json:"result_count,omitempty"`
261276}
262277
@@ -270,6 +285,7 @@ type ParagraphsResponse struct {
270285 Paragraphs []TranscriptParagraph `json:"paragraphs,omitempty"`
271286}
272287
288+ // The type of PII to redact
273289type PIIPolicy string
274290
275291type PurgeLeMURRequestDataResponse struct {
@@ -314,7 +330,7 @@ type SentencesResponse struct {
314330
315331type Sentiment string
316332
317- // The result of the sentiment analysis model
333+ // The result of the Sentiment Analysis model
318334type SentimentAnalysisResult struct {
319335 // The confidence score for the detected sentiment of the sentence, from 0 to 1
320336 Confidence * float64 `json:"confidence,omitempty"`
@@ -420,7 +436,7 @@ type Transcript struct {
420436 AutoHighlights * bool `json:"auto_highlights,omitempty"`
421437
422438 // An array of results for the Key Phrases model, if it is enabled.
423- // See [Key phrases ](https://www.assemblyai.com/docs/models/key-phrases) for more information.
439+ // See [Key Phrases ](https://www.assemblyai.com/docs/models/key-phrases) for more information.
424440 AutoHighlightsResult AutoHighlightsResult `json:"auto_highlights_result,omitempty"`
425441
426442 // The word boost parameter value
@@ -513,7 +529,7 @@ type Transcript struct {
513529 SentimentAnalysis * bool `json:"sentiment_analysis,omitempty"`
514530
515531 // An array of results for the Sentiment Analysis model, if it is enabled.
516- // See [Sentiment analysis ](https://www.assemblyai.com/docs/models/sentiment-analysis) for more information.
532+ // See [Sentiment Analysis ](https://www.assemblyai.com/docs/models/sentiment-analysis) for more information.
517533 SentimentAnalysisResults []SentimentAnalysisResult `json:"sentiment_analysis_results,omitempty"`
518534
519535 // Whether [Speaker diarization](https://www.assemblyai.com/docs/models/speaker-diarization) is enabled, can be true or false
@@ -570,7 +586,7 @@ type Transcript struct {
570586 // The status code we received from your server when delivering your webhook, if a webhook URL was provided
571587 WebhookStatusCode * int64 `json:"webhook_status_code,omitempty"`
572588
573- // The URL to which we send webhooks upon trancription completion
589+ // The URL to which we send webhooks upon transcription completion
574590 WebhookURL * string `json:"webhook_url,omitempty"`
575591
576592 // The list of custom vocabulary to boost transcription probability for
@@ -632,7 +648,7 @@ type TranscriptOptionalParams struct {
632648 // Enable [Auto Chapters](https://www.assemblyai.com/docs/models/auto-chapters), can be true or false
633649 AutoChapters * bool `json:"auto_chapters,omitempty"`
634650
635- // Whether Key Phrases is enabled , either true or false
651+ // Enable Key Phrases, either true or false
636652 AutoHighlights * bool `json:"auto_highlights,omitempty"`
637653
638654 // The word boost parameter value
@@ -641,13 +657,13 @@ type TranscriptOptionalParams struct {
641657 // Enable [Content Moderation](https://www.assemblyai.com/docs/models/content-moderation), can be true or false
642658 ContentSafety * bool `json:"content_safety,omitempty"`
643659
644- // The confidence threshold for content moderation . Values must be between 25 and 100.
660+ // The confidence threshold for the Content Moderation model . Values must be between 25 and 100.
645661 ContentSafetyConfidence * int64 `json:"content_safety_confidence,omitempty"`
646662
647663 // Customize how words are spelled and formatted using to and from values
648664 CustomSpelling []TranscriptCustomSpelling `json:"custom_spelling,omitempty"`
649665
650- // Whether custom topics is enabled , either true or false
666+ // Enable custom topics, either true or false
651667 CustomTopics * bool `json:"custom_topics,omitempty"`
652668
653669 // Transcribe Filler Words, like "umm", in your media file; can be true or false
@@ -672,7 +688,7 @@ type TranscriptOptionalParams struct {
672688 // The default value is 'en_us'.
673689 LanguageCode TranscriptLanguageCode `json:"language_code,omitempty"`
674690
675- // Whether [Automatic language detection](https://www.assemblyai.com/docs/models/speech-recognition#automatic-language-detection) was enabled in the transcription request , either true or false.
691+ // Enable [Automatic language detection](https://www.assemblyai.com/docs/models/speech-recognition#automatic-language-detection), either true or false.
676692 LanguageDetection * bool `json:"language_detection,omitempty"`
677693
678694 // Enable Automatic Punctuation, can be true or false
@@ -718,7 +734,7 @@ type TranscriptOptionalParams struct {
718734 // The type of summary
719735 SummaryType SummaryType `json:"summary_type,omitempty"`
720736
721- // The list of custom topics provided, if custom topics is enabled
737+ // The list of custom topics
722738 Topics []string `json:"topics,omitempty"`
723739
724740 // The header name which should be sent back with webhook calls
@@ -727,7 +743,7 @@ type TranscriptOptionalParams struct {
727743 // Specify a header name and value to send back with a webhook call for added security
728744 WebhookAuthHeaderValue * string `json:"webhook_auth_header_value,omitempty"`
729745
730- // The URL to which AssemblyAI send webhooks upon trancription completion
746+ // The URL to which AssemblyAI send webhooks upon transcription completion
731747 WebhookURL * string `json:"webhook_url,omitempty"`
732748
733749 // The list of custom vocabulary to boost transcription probability for
0 commit comments