@@ -82,7 +82,7 @@ func (r *AIService) Run(ctx context.Context, modelName string, params AIRunParam
82
82
// [ai.AIRunResponseObject], [ai.AIRunResponseTranslation],
83
83
// [ai.AIRunResponseSummarization] or [ai.AIRunResponseImageToText].
84
84
type AIRunResponseUnion interface {
85
- ImplementsAIAIRunResponseUnion ()
85
+ ImplementsAIRunResponseUnion ()
86
86
}
87
87
88
88
func init () {
@@ -138,7 +138,7 @@ func init() {
138
138
139
139
type AIRunResponseTextClassification []AIRunResponseTextClassificationItem
140
140
141
- func (r AIRunResponseTextClassification ) ImplementsAIAIRunResponseUnion () {}
141
+ func (r AIRunResponseTextClassification ) ImplementsAIRunResponseUnion () {}
142
142
143
143
type AIRunResponseTextClassificationItem struct {
144
144
// The classification label assigned to the text (e.g., 'POSITIVE' or 'NEGATIVE')
@@ -188,7 +188,7 @@ func (r aiRunResponseAudioJSON) RawJSON() string {
188
188
return r .raw
189
189
}
190
190
191
- func (r AIRunResponseAudio ) ImplementsAIAIRunResponseUnion () {}
191
+ func (r AIRunResponseAudio ) ImplementsAIRunResponseUnion () {}
192
192
193
193
type AIRunResponseTextEmbeddings struct {
194
194
// Embeddings of the requested text values
@@ -214,7 +214,7 @@ func (r aiRunResponseTextEmbeddingsJSON) RawJSON() string {
214
214
return r .raw
215
215
}
216
216
217
- func (r AIRunResponseTextEmbeddings ) ImplementsAIAIRunResponseUnion () {}
217
+ func (r AIRunResponseTextEmbeddings ) ImplementsAIRunResponseUnion () {}
218
218
219
219
type AIRunResponseAutomaticSpeechRecognition struct {
220
220
// The transcription
@@ -244,7 +244,7 @@ func (r aiRunResponseAutomaticSpeechRecognitionJSON) RawJSON() string {
244
244
return r .raw
245
245
}
246
246
247
- func (r AIRunResponseAutomaticSpeechRecognition ) ImplementsAIAIRunResponseUnion () {}
247
+ func (r AIRunResponseAutomaticSpeechRecognition ) ImplementsAIRunResponseUnion () {}
248
248
249
249
type AIRunResponseAutomaticSpeechRecognitionWord struct {
250
250
// The ending second when the word completes
@@ -275,7 +275,7 @@ func (r aiRunResponseAutomaticSpeechRecognitionWordJSON) RawJSON() string {
275
275
276
276
type AIRunResponseImageClassification []AIRunResponseImageClassificationItem
277
277
278
- func (r AIRunResponseImageClassification ) ImplementsAIAIRunResponseUnion () {}
278
+ func (r AIRunResponseImageClassification ) ImplementsAIRunResponseUnion () {}
279
279
280
280
type AIRunResponseImageClassificationItem struct {
281
281
// The predicted category or class for the input image based on analysis
@@ -305,7 +305,7 @@ func (r aiRunResponseImageClassificationItemJSON) RawJSON() string {
305
305
306
306
type AIRunResponseObjectDetection []AIRunResponseObjectDetectionItem
307
307
308
- func (r AIRunResponseObjectDetection ) ImplementsAIAIRunResponseUnion () {}
308
+ func (r AIRunResponseObjectDetection ) ImplementsAIRunResponseUnion () {}
309
309
310
310
type AIRunResponseObjectDetectionItem struct {
311
311
// Coordinates defining the bounding box around the detected object
@@ -395,7 +395,7 @@ func (r aiRunResponseObjectJSON) RawJSON() string {
395
395
return r .raw
396
396
}
397
397
398
- func (r AIRunResponseObject ) ImplementsAIAIRunResponseUnion () {}
398
+ func (r AIRunResponseObject ) ImplementsAIRunResponseUnion () {}
399
399
400
400
type AIRunResponseObjectToolCall struct {
401
401
// The arguments passed to be passed to the tool call request
@@ -473,7 +473,7 @@ func (r aiRunResponseTranslationJSON) RawJSON() string {
473
473
return r .raw
474
474
}
475
475
476
- func (r AIRunResponseTranslation ) ImplementsAIAIRunResponseUnion () {}
476
+ func (r AIRunResponseTranslation ) ImplementsAIRunResponseUnion () {}
477
477
478
478
type AIRunResponseSummarization struct {
479
479
// The summarized version of the input text
@@ -497,7 +497,7 @@ func (r aiRunResponseSummarizationJSON) RawJSON() string {
497
497
return r .raw
498
498
}
499
499
500
- func (r AIRunResponseSummarization ) ImplementsAIAIRunResponseUnion () {}
500
+ func (r AIRunResponseSummarization ) ImplementsAIRunResponseUnion () {}
501
501
502
502
type AIRunResponseImageToText struct {
503
503
Description string `json:"description"`
@@ -520,7 +520,7 @@ func (r aiRunResponseImageToTextJSON) RawJSON() string {
520
520
return r .raw
521
521
}
522
522
523
- func (r AIRunResponseImageToText ) ImplementsAIAIRunResponseUnion () {}
523
+ func (r AIRunResponseImageToText ) ImplementsAIRunResponseUnion () {}
524
524
525
525
type AIRunParams struct {
526
526
AccountID param.Field [string ] `path:"account_id,required"`
@@ -600,7 +600,7 @@ func (r AIRunParamsBody) MarshalJSON() (data []byte, err error) {
600
600
return apijson .MarshalRoot (r )
601
601
}
602
602
603
- func (r AIRunParamsBody ) implementsAIAIRunParamsBodyUnion () {}
603
+ func (r AIRunParamsBody ) implementsAIRunParamsBodyUnion () {}
604
604
605
605
// Satisfied by [ai.AIRunParamsBodyTextClassification],
606
606
// [ai.AIRunParamsBodyTextToImage], [ai.AIRunParamsBodyTextToSpeech],
@@ -611,7 +611,7 @@ func (r AIRunParamsBody) implementsAIAIRunParamsBodyUnion() {}
611
611
// [ai.AIRunParamsBodyTranslation], [ai.AIRunParamsBodySummarization],
612
612
// [ai.AIRunParamsBodyImageToText], [AIRunParamsBody].
613
613
type AIRunParamsBodyUnion interface {
614
- implementsAIAIRunParamsBodyUnion ()
614
+ implementsAIRunParamsBodyUnion ()
615
615
}
616
616
617
617
type AIRunParamsBodyTextClassification struct {
@@ -623,7 +623,7 @@ func (r AIRunParamsBodyTextClassification) MarshalJSON() (data []byte, err error
623
623
return apijson .MarshalRoot (r )
624
624
}
625
625
626
- func (r AIRunParamsBodyTextClassification ) implementsAIAIRunParamsBodyUnion () {}
626
+ func (r AIRunParamsBodyTextClassification ) implementsAIRunParamsBodyUnion () {}
627
627
628
628
type AIRunParamsBodyTextToImage struct {
629
629
// A text description of the image you want to generate
@@ -658,7 +658,7 @@ func (r AIRunParamsBodyTextToImage) MarshalJSON() (data []byte, err error) {
658
658
return apijson .MarshalRoot (r )
659
659
}
660
660
661
- func (r AIRunParamsBodyTextToImage ) implementsAIAIRunParamsBodyUnion () {}
661
+ func (r AIRunParamsBodyTextToImage ) implementsAIRunParamsBodyUnion () {}
662
662
663
663
type AIRunParamsBodyTextToSpeech struct {
664
664
// A text description of the image you want to generate
@@ -672,7 +672,7 @@ func (r AIRunParamsBodyTextToSpeech) MarshalJSON() (data []byte, err error) {
672
672
return apijson .MarshalRoot (r )
673
673
}
674
674
675
- func (r AIRunParamsBodyTextToSpeech ) implementsAIAIRunParamsBodyUnion () {}
675
+ func (r AIRunParamsBodyTextToSpeech ) implementsAIRunParamsBodyUnion () {}
676
676
677
677
type AIRunParamsBodyTextEmbeddings struct {
678
678
// The text to embed
@@ -683,19 +683,18 @@ func (r AIRunParamsBodyTextEmbeddings) MarshalJSON() (data []byte, err error) {
683
683
return apijson .MarshalRoot (r )
684
684
}
685
685
686
- func (r AIRunParamsBodyTextEmbeddings ) implementsAIAIRunParamsBodyUnion () {}
686
+ func (r AIRunParamsBodyTextEmbeddings ) implementsAIRunParamsBodyUnion () {}
687
687
688
688
// The text to embed
689
689
//
690
690
// Satisfied by [shared.UnionString], [ai.AIRunParamsBodyTextEmbeddingsTextArray].
691
691
type AIRunParamsBodyTextEmbeddingsTextUnion interface {
692
- ImplementsAIAIRunParamsBodyTextEmbeddingsTextUnion ()
692
+ ImplementsAIRunParamsBodyTextEmbeddingsTextUnion ()
693
693
}
694
694
695
695
type AIRunParamsBodyTextEmbeddingsTextArray []string
696
696
697
- func (r AIRunParamsBodyTextEmbeddingsTextArray ) ImplementsAIAIRunParamsBodyTextEmbeddingsTextUnion () {
698
- }
697
+ func (r AIRunParamsBodyTextEmbeddingsTextArray ) ImplementsAIRunParamsBodyTextEmbeddingsTextUnion () {}
699
698
700
699
type AIRunParamsBodyAutomaticSpeechRecognition struct {
701
700
// An array of integers that represent the audio data constrained to 8-bit unsigned
@@ -712,7 +711,7 @@ func (r AIRunParamsBodyAutomaticSpeechRecognition) MarshalJSON() (data []byte, e
712
711
return apijson .MarshalRoot (r )
713
712
}
714
713
715
- func (r AIRunParamsBodyAutomaticSpeechRecognition ) implementsAIAIRunParamsBodyUnion () {}
714
+ func (r AIRunParamsBodyAutomaticSpeechRecognition ) implementsAIRunParamsBodyUnion () {}
716
715
717
716
type AIRunParamsBodyImageClassification struct {
718
717
// An array of integers that represent the image data constrained to 8-bit unsigned
@@ -724,7 +723,7 @@ func (r AIRunParamsBodyImageClassification) MarshalJSON() (data []byte, err erro
724
723
return apijson .MarshalRoot (r )
725
724
}
726
725
727
- func (r AIRunParamsBodyImageClassification ) implementsAIAIRunParamsBodyUnion () {}
726
+ func (r AIRunParamsBodyImageClassification ) implementsAIRunParamsBodyUnion () {}
728
727
729
728
type AIRunParamsBodyObjectDetection struct {
730
729
// An array of integers that represent the image data constrained to 8-bit unsigned
@@ -736,7 +735,7 @@ func (r AIRunParamsBodyObjectDetection) MarshalJSON() (data []byte, err error) {
736
735
return apijson .MarshalRoot (r )
737
736
}
738
737
739
- func (r AIRunParamsBodyObjectDetection ) implementsAIAIRunParamsBodyUnion () {}
738
+ func (r AIRunParamsBodyObjectDetection ) implementsAIRunParamsBodyUnion () {}
740
739
741
740
type AIRunParamsBodyPrompt struct {
742
741
// The input text prompt for the model to generate a response.
@@ -776,7 +775,7 @@ func (r AIRunParamsBodyPrompt) MarshalJSON() (data []byte, err error) {
776
775
return apijson .MarshalRoot (r )
777
776
}
778
777
779
- func (r AIRunParamsBodyPrompt ) implementsAIAIRunParamsBodyUnion () {}
778
+ func (r AIRunParamsBodyPrompt ) implementsAIRunParamsBodyUnion () {}
780
779
781
780
type AIRunParamsBodyMessages struct {
782
781
// An array of message objects representing the conversation history.
@@ -813,7 +812,7 @@ func (r AIRunParamsBodyMessages) MarshalJSON() (data []byte, err error) {
813
812
return apijson .MarshalRoot (r )
814
813
}
815
814
816
- func (r AIRunParamsBodyMessages ) implementsAIAIRunParamsBodyUnion () {}
815
+ func (r AIRunParamsBodyMessages ) implementsAIRunParamsBodyUnion () {}
817
816
818
817
type AIRunParamsBodyMessagesMessage struct {
819
818
// The content of the message as a string.
@@ -850,12 +849,12 @@ func (r AIRunParamsBodyMessagesTool) MarshalJSON() (data []byte, err error) {
850
849
return apijson .MarshalRoot (r )
851
850
}
852
851
853
- func (r AIRunParamsBodyMessagesTool ) implementsAIAIRunParamsBodyMessagesToolUnion () {}
852
+ func (r AIRunParamsBodyMessagesTool ) implementsAIRunParamsBodyMessagesToolUnion () {}
854
853
855
854
// Satisfied by [ai.AIRunParamsBodyMessagesToolsObject],
856
855
// [ai.AIRunParamsBodyMessagesToolsObject], [AIRunParamsBodyMessagesTool].
857
856
type AIRunParamsBodyMessagesToolUnion interface {
858
- implementsAIAIRunParamsBodyMessagesToolUnion ()
857
+ implementsAIRunParamsBodyMessagesToolUnion ()
859
858
}
860
859
861
860
type AIRunParamsBodyMessagesToolsObject struct {
@@ -871,7 +870,7 @@ func (r AIRunParamsBodyMessagesToolsObject) MarshalJSON() (data []byte, err erro
871
870
return apijson .MarshalRoot (r )
872
871
}
873
872
874
- func (r AIRunParamsBodyMessagesToolsObject ) implementsAIAIRunParamsBodyMessagesToolUnion () {}
873
+ func (r AIRunParamsBodyMessagesToolsObject ) implementsAIRunParamsBodyMessagesToolUnion () {}
875
874
876
875
// Schema defining the parameters accepted by the tool.
877
876
type AIRunParamsBodyMessagesToolsObjectParameters struct {
@@ -912,7 +911,7 @@ func (r AIRunParamsBodyTranslation) MarshalJSON() (data []byte, err error) {
912
911
return apijson .MarshalRoot (r )
913
912
}
914
913
915
- func (r AIRunParamsBodyTranslation ) implementsAIAIRunParamsBodyUnion () {}
914
+ func (r AIRunParamsBodyTranslation ) implementsAIRunParamsBodyUnion () {}
916
915
917
916
type AIRunParamsBodySummarization struct {
918
917
// The text that you want the model to summarize
@@ -925,7 +924,7 @@ func (r AIRunParamsBodySummarization) MarshalJSON() (data []byte, err error) {
925
924
return apijson .MarshalRoot (r )
926
925
}
927
926
928
- func (r AIRunParamsBodySummarization ) implementsAIAIRunParamsBodyUnion () {}
927
+ func (r AIRunParamsBodySummarization ) implementsAIRunParamsBodyUnion () {}
929
928
930
929
type AIRunParamsBodyImageToText struct {
931
930
// An array of integers that represent the image data constrained to 8-bit unsigned
@@ -963,7 +962,7 @@ func (r AIRunParamsBodyImageToText) MarshalJSON() (data []byte, err error) {
963
962
return apijson .MarshalRoot (r )
964
963
}
965
964
966
- func (r AIRunParamsBodyImageToText ) implementsAIAIRunParamsBodyUnion () {}
965
+ func (r AIRunParamsBodyImageToText ) implementsAIRunParamsBodyUnion () {}
967
966
968
967
type AIRunResponseEnvelope struct {
969
968
// An array of classification results for the input text
0 commit comments