@@ -47,9 +47,10 @@ export class Prompts extends APIResource {
4747 }
4848
4949 /**
50- * Fetches the model configuration parameters for a specified prompt, including
51- * penalty settings, response format, and the model messages rendered with the
52- * given variables mapped to the set LLM provider.
50+ * Fetches the configured model parameters and messages rendered with the provided
51+ * variables mapped to the set LLM provider. This endpoint abstracts the need to
52+ * handle mapping between different providers, while still allowing direct calls to
53+ * the providers.
5354 */
5455 getParameters (
5556 id : string ,
@@ -452,7 +453,7 @@ export interface PromptConfiguration {
452453export namespace PromptConfiguration {
453454 export interface Message {
454455 content : Array <
455- | Message . TextContentBlockSchema
456+ | Message . TextContentBlock
456457 | Message . ImageBase64ContentBlock
457458 | Message . ToolCallContentBlock
458459 | Message . ToolResultContentBlock
@@ -462,7 +463,7 @@ export namespace PromptConfiguration {
462463 }
463464
464465 export namespace Message {
465- export interface TextContentBlockSchema {
466+ export interface TextContentBlock {
466467 text : string ;
467468
468469 type : 'TEXT' ;
@@ -536,14 +537,9 @@ export namespace PromptConfiguration {
536537 maxTokens : number | null ;
537538
538539 /**
539- * Example: "gpt-3.5-turbo"
540+ * The name of the model for the provider.
540541 */
541- modelName : string ;
542-
543- /**
544- * The provider of the provided model.
545- */
546- modelProvider : 'ANTHROPIC' | 'OPENAI' ;
542+ name : string ;
547543
548544 parallelToolCalls : boolean ;
549545
@@ -552,6 +548,11 @@ export namespace PromptConfiguration {
552548 */
553549 presencePenalty : number ;
554550
551+ /**
552+ * The LLM model provider.
553+ */
554+ provider : 'ANTHROPIC' | 'OPENAI' ;
555+
555556 /**
556557 * Example: PromptResponseFormat.TEXT
557558 */
@@ -628,7 +629,7 @@ export interface PromptCreateParams {
628629export namespace PromptCreateParams {
629630 export interface Message {
630631 content : Array <
631- | Message . TextContentBlockSchema
632+ | Message . TextContentBlock
632633 | Message . ImageBase64ContentBlock
633634 | Message . ToolCallContentBlock
634635 | Message . ToolResultContentBlock
@@ -640,7 +641,7 @@ export namespace PromptCreateParams {
640641 }
641642
642643 export namespace Message {
643- export interface TextContentBlockSchema {
644+ export interface TextContentBlock {
644645 text : string ;
645646
646647 type : 'TEXT' ;
@@ -714,14 +715,9 @@ export namespace PromptCreateParams {
714715 maxTokens : number | null ;
715716
716717 /**
717- * Example: "gpt-3.5-turbo"
718+ * The name of the model for the provider.
718719 */
719- modelName : string ;
720-
721- /**
722- * The provider of the provided model.
723- */
724- modelProvider : 'ANTHROPIC' | 'OPENAI' ;
720+ name : string ;
725721
726722 parallelToolCalls : boolean ;
727723
@@ -730,6 +726,11 @@ export namespace PromptCreateParams {
730726 */
731727 presencePenalty : number ;
732728
729+ /**
730+ * The LLM model provider.
731+ */
732+ provider : 'ANTHROPIC' | 'OPENAI' ;
733+
733734 /**
734735 * Example: PromptResponseFormat.TEXT
735736 */
@@ -778,7 +779,7 @@ export interface PromptUpdateParams {
778779export namespace PromptUpdateParams {
779780 export interface Message {
780781 content : Array <
781- | Message . TextContentBlockSchema
782+ | Message . TextContentBlock
782783 | Message . ImageBase64ContentBlock
783784 | Message . ToolCallContentBlock
784785 | Message . ToolResultContentBlock
@@ -790,7 +791,7 @@ export namespace PromptUpdateParams {
790791 }
791792
792793 export namespace Message {
793- export interface TextContentBlockSchema {
794+ export interface TextContentBlock {
794795 text : string ;
795796
796797 type : 'TEXT' ;
@@ -864,14 +865,9 @@ export namespace PromptUpdateParams {
864865 maxTokens : number | null ;
865866
866867 /**
867- * Example: "gpt-3.5-turbo"
868- */
869- modelName : string ;
870-
871- /**
872- * The provider of the provided model.
868+ * The name of the model for the provider.
873869 */
874- modelProvider : 'ANTHROPIC' | 'OPENAI' ;
870+ name : string ;
875871
876872 parallelToolCalls : boolean ;
877873
@@ -880,6 +876,11 @@ export namespace PromptUpdateParams {
880876 */
881877 presencePenalty : number ;
882878
879+ /**
880+ * The LLM model provider.
881+ */
882+ provider : 'ANTHROPIC' | 'OPENAI' ;
883+
883884 /**
884885 * Example: PromptResponseFormat.TEXT
885886 */
@@ -942,7 +943,7 @@ export interface PromptGetParametersParams {
942943export namespace PromptGetParametersParams {
943944 export interface AppendMessage {
944945 content : Array <
945- | AppendMessage . TextContentBlockSchema
946+ | AppendMessage . TextContentBlock
946947 | AppendMessage . ImageBase64ContentBlock
947948 | AppendMessage . ToolCallContentBlock
948949 | AppendMessage . ToolResultContentBlock
@@ -952,7 +953,7 @@ export namespace PromptGetParametersParams {
952953 }
953954
954955 export namespace AppendMessage {
955- export interface TextContentBlockSchema {
956+ export interface TextContentBlock {
956957 text : string ;
957958
958959 type : 'TEXT' ;
@@ -1016,7 +1017,7 @@ export namespace PromptGetParametersParams {
10161017
10171018 export interface OverrideMessage {
10181019 content : Array <
1019- | OverrideMessage . TextContentBlockSchema
1020+ | OverrideMessage . TextContentBlock
10201021 | OverrideMessage . ImageBase64ContentBlock
10211022 | OverrideMessage . ToolCallContentBlock
10221023 | OverrideMessage . ToolResultContentBlock
@@ -1026,7 +1027,7 @@ export namespace PromptGetParametersParams {
10261027 }
10271028
10281029 export namespace OverrideMessage {
1029- export interface TextContentBlockSchema {
1030+ export interface TextContentBlock {
10301031 text : string ;
10311032
10321033 type : 'TEXT' ;
0 commit comments