@@ -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 ,
@@ -454,7 +455,7 @@ export interface PromptConfiguration {
454455export namespace PromptConfiguration {
455456 export interface Message {
456457 content : Array <
457- | Message . TextContentBlockSchema
458+ | Message . TextContentBlock
458459 | Message . ImageBase64ContentBlock
459460 | Message . ToolCallContentBlock
460461 | Message . ToolResultContentBlock
@@ -464,7 +465,7 @@ export namespace PromptConfiguration {
464465 }
465466
466467 export namespace Message {
467- export interface TextContentBlockSchema {
468+ export interface TextContentBlock {
468469 text : string ;
469470
470471 type : 'TEXT' ;
@@ -538,14 +539,9 @@ export namespace PromptConfiguration {
538539 maxTokens : number | null ;
539540
540541 /**
541- * Example: "gpt-3.5-turbo"
542+ * The name of the model for the provider.
542543 */
543- modelName : string ;
544-
545- /**
546- * The provider of the provided model.
547- */
548- modelProvider : 'ANTHROPIC' | 'OPENAI' ;
544+ name : string ;
549545
550546 parallelToolCalls : boolean ;
551547
@@ -554,6 +550,11 @@ export namespace PromptConfiguration {
554550 */
555551 presencePenalty : number ;
556552
553+ /**
554+ * The LLM model provider.
555+ */
556+ provider : 'ANTHROPIC' | 'OPENAI' ;
557+
557558 /**
558559 * Example: PromptResponseFormat.TEXT
559560 */
@@ -630,7 +631,7 @@ export interface PromptCreateParams {
630631export namespace PromptCreateParams {
631632 export interface Message {
632633 content : Array <
633- | Message . TextContentBlockSchema
634+ | Message . TextContentBlock
634635 | Message . ImageBase64ContentBlock
635636 | Message . ToolCallContentBlock
636637 | Message . ToolResultContentBlock
@@ -642,7 +643,7 @@ export namespace PromptCreateParams {
642643 }
643644
644645 export namespace Message {
645- export interface TextContentBlockSchema {
646+ export interface TextContentBlock {
646647 text : string ;
647648
648649 type : 'TEXT' ;
@@ -716,14 +717,9 @@ export namespace PromptCreateParams {
716717 maxTokens : number | null ;
717718
718719 /**
719- * Example: "gpt-3.5-turbo"
720+ * The name of the model for the provider.
720721 */
721- modelName : string ;
722-
723- /**
724- * The provider of the provided model.
725- */
726- modelProvider : 'ANTHROPIC' | 'OPENAI' ;
722+ name : string ;
727723
728724 parallelToolCalls : boolean ;
729725
@@ -732,6 +728,11 @@ export namespace PromptCreateParams {
732728 */
733729 presencePenalty : number ;
734730
731+ /**
732+ * The LLM model provider.
733+ */
734+ provider : 'ANTHROPIC' | 'OPENAI' ;
735+
735736 /**
736737 * Example: PromptResponseFormat.TEXT
737738 */
@@ -780,7 +781,7 @@ export interface PromptUpdateParams {
780781export namespace PromptUpdateParams {
781782 export interface Message {
782783 content : Array <
783- | Message . TextContentBlockSchema
784+ | Message . TextContentBlock
784785 | Message . ImageBase64ContentBlock
785786 | Message . ToolCallContentBlock
786787 | Message . ToolResultContentBlock
@@ -792,7 +793,7 @@ export namespace PromptUpdateParams {
792793 }
793794
794795 export namespace Message {
795- export interface TextContentBlockSchema {
796+ export interface TextContentBlock {
796797 text : string ;
797798
798799 type : 'TEXT' ;
@@ -866,14 +867,9 @@ export namespace PromptUpdateParams {
866867 maxTokens : number | null ;
867868
868869 /**
869- * Example: "gpt-3.5-turbo"
870- */
871- modelName : string ;
872-
873- /**
874- * The provider of the provided model.
870+ * The name of the model for the provider.
875871 */
876- modelProvider : 'ANTHROPIC' | 'OPENAI' ;
872+ name : string ;
877873
878874 parallelToolCalls : boolean ;
879875
@@ -882,6 +878,11 @@ export namespace PromptUpdateParams {
882878 */
883879 presencePenalty : number ;
884880
881+ /**
882+ * The LLM model provider.
883+ */
884+ provider : 'ANTHROPIC' | 'OPENAI' ;
885+
885886 /**
886887 * Example: PromptResponseFormat.TEXT
887888 */
@@ -944,7 +945,7 @@ export interface PromptGetParametersParams {
944945export namespace PromptGetParametersParams {
945946 export interface AppendMessage {
946947 content : Array <
947- | AppendMessage . TextContentBlockSchema
948+ | AppendMessage . TextContentBlock
948949 | AppendMessage . ImageBase64ContentBlock
949950 | AppendMessage . ToolCallContentBlock
950951 | AppendMessage . ToolResultContentBlock
@@ -954,7 +955,7 @@ export namespace PromptGetParametersParams {
954955 }
955956
956957 export namespace AppendMessage {
957- export interface TextContentBlockSchema {
958+ export interface TextContentBlock {
958959 text : string ;
959960
960961 type : 'TEXT' ;
@@ -1018,7 +1019,7 @@ export namespace PromptGetParametersParams {
10181019
10191020 export interface OverrideMessage {
10201021 content : Array <
1021- | OverrideMessage . TextContentBlockSchema
1022+ | OverrideMessage . TextContentBlock
10221023 | OverrideMessage . ImageBase64ContentBlock
10231024 | OverrideMessage . ToolCallContentBlock
10241025 | OverrideMessage . ToolResultContentBlock
@@ -1028,7 +1029,7 @@ export namespace PromptGetParametersParams {
10281029 }
10291030
10301031 export namespace OverrideMessage {
1031- export interface TextContentBlockSchema {
1032+ export interface TextContentBlock {
10321033 text : string ;
10331034
10341035 type : 'TEXT' ;
0 commit comments