Skip to content

Commit

Permalink
Automated SDK generation @ aws-cloudformation-user-guide 19dc52cd3f20…
Browse files Browse the repository at this point in the history
…07d6d268b65b739ffb5ebf8c1e76 (#1993)

*Automated PR*
  • Loading branch information
pulumi-bot authored Jan 21, 2025
1 parent fbe0b08 commit 344bbf6
Show file tree
Hide file tree
Showing 47 changed files with 3,553 additions and 160 deletions.
2 changes: 1 addition & 1 deletion .docs.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2bd0dbd05c1fb10774e9f755d87cede090b46e19
2a28a32b8166d9c424d34fa9a3eef3a6d28ca191
269 changes: 268 additions & 1 deletion aws-cloudformation-schema/aws-bedrock-promptversion.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"PromptTemplateType" : {
"type" : "string",
"description" : "Prompt template type",
"enum" : [ "TEXT" ]
"enum" : [ "TEXT", "CHAT" ]
},
"PromptVariant" : {
"type" : "object",
Expand All @@ -32,6 +32,9 @@
},
"InferenceConfiguration" : {
"$ref" : "#/definitions/PromptInferenceConfiguration"
},
"GenAiResource" : {
"$ref" : "#/definitions/PromptGenAiResource"
}
},
"required" : [ "Name", "TemplateType", "TemplateConfiguration" ],
Expand Down Expand Up @@ -61,6 +64,45 @@
"required" : [ "Text" ],
"additionalProperties" : false
},
"ChatPromptTemplateConfiguration" : {
"type" : "object",
"description" : "Configuration for chat prompt template",
"properties" : {
"Messages" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/Message"
},
"minItems" : 0,
"description" : "List of messages for chat prompt template",
"insertionOrder" : true
},
"System" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/SystemContentBlock"
},
"minItems" : 0,
"description" : "Configuration for chat prompt template",
"insertionOrder" : true
},
"ToolConfiguration" : {
"$ref" : "#/definitions/ToolConfiguration"
},
"InputVariables" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/PromptInputVariable"
},
"maxItems" : 5,
"minItems" : 0,
"description" : "List of input variables",
"insertionOrder" : true
}
},
"required" : [ "Messages" ],
"additionalProperties" : false
},
"PromptTemplateConfiguration" : {
"description" : "Prompt template configuration",
"oneOf" : [ {
Expand All @@ -73,8 +115,205 @@
},
"required" : [ "Text" ],
"additionalProperties" : false
}, {
"type" : "object",
"title" : "Chat",
"properties" : {
"Chat" : {
"$ref" : "#/definitions/ChatPromptTemplateConfiguration"
}
},
"required" : [ "Chat" ],
"additionalProperties" : false
} ]
},
"ConversationRole" : {
"type" : "string",
"description" : "Conversation roles for the chat prompt",
"enum" : [ "user", "assistant" ]
},
"ContentBlock" : {
"description" : "Configuration for chat prompt template",
"oneOf" : [ {
"title" : "Text",
"type" : "object",
"properties" : {
"Text" : {
"type" : "string",
"minLength" : 1,
"description" : "Configuration for chat prompt template"
}
},
"required" : [ "Text" ],
"additionalProperties" : false
} ]
},
"SystemContentBlock" : {
"description" : "Configuration for chat prompt template",
"oneOf" : [ {
"title" : "Text",
"type" : "object",
"properties" : {
"Text" : {
"type" : "string",
"minLength" : 1,
"description" : "Configuration for chat prompt template"
}
},
"required" : [ "Text" ],
"additionalProperties" : false
} ]
},
"Message" : {
"type" : "object",
"description" : "Chat prompt Message",
"properties" : {
"Role" : {
"$ref" : "#/definitions/ConversationRole"
},
"Content" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/ContentBlock"
},
"minItems" : 1,
"description" : "List of Content Blocks",
"insertionOrder" : true
}
},
"required" : [ "Role", "Content" ],
"additionalProperties" : false
},
"ToolInputSchema" : {
"description" : "Tool input schema",
"oneOf" : [ {
"type" : "object",
"title" : "Json",
"properties" : {
"Json" : {
"type" : "object"
}
},
"description" : "Tool input schema json",
"required" : [ "Json" ],
"additionalProperties" : false
} ]
},
"ToolSpecification" : {
"type" : "object",
"description" : "Tool specification",
"properties" : {
"Name" : {
"type" : "string",
"pattern" : "^[a-zA-Z][a-zA-Z0-9_]*$",
"minLength" : 1,
"maxLength" : 64,
"description" : "Tool name"
},
"Description" : {
"type" : "string",
"minLength" : 1
},
"InputSchema" : {
"$ref" : "#/definitions/ToolInputSchema"
}
},
"required" : [ "Name", "InputSchema" ],
"additionalProperties" : false
},
"Tool" : {
"description" : "Tool details",
"oneOf" : [ {
"type" : "object",
"title" : "ToolSpec",
"properties" : {
"ToolSpec" : {
"$ref" : "#/definitions/ToolSpecification"
}
},
"required" : [ "ToolSpec" ],
"additionalProperties" : false
} ]
},
"AutoToolChoice" : {
"type" : "object",
"description" : "Auto Tool choice",
"additionalProperties" : false
},
"AnyToolChoice" : {
"type" : "object",
"description" : "Any Tool choice",
"additionalProperties" : false
},
"SpecificToolChoice" : {
"type" : "object",
"description" : "Specific Tool choice",
"properties" : {
"Name" : {
"type" : "string",
"pattern" : "^[a-zA-Z][a-zA-Z0-9_]*$",
"minLength" : 1,
"maxLength" : 64,
"description" : "Tool name"
}
},
"required" : [ "Name" ],
"additionalProperties" : false
},
"ToolChoice" : {
"description" : "Tool choice",
"oneOf" : [ {
"title" : "Auto",
"type" : "object",
"properties" : {
"Auto" : {
"$ref" : "#/definitions/AutoToolChoice"
}
},
"required" : [ "Auto" ],
"additionalProperties" : false
}, {
"title" : "Any",
"type" : "object",
"properties" : {
"Any" : {
"$ref" : "#/definitions/AnyToolChoice"
}
},
"required" : [ "Any" ],
"additionalProperties" : false
}, {
"title" : "Tool",
"type" : "object",
"properties" : {
"Tool" : {
"$ref" : "#/definitions/SpecificToolChoice"
}
},
"required" : [ "Tool" ],
"additionalProperties" : false
} ]
},
"ToolConfiguration" : {
"type" : "object",
"description" : "Tool configuration",
"properties" : {
"Tools" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/Tool"
},
"minItems" : 1,
"description" : "List of Tools",
"insertionOrder" : true
},
"ToolChoice" : {
"$ref" : "#/definitions/ToolChoice"
}
},
"required" : [ "Tools" ],
"additionalProperties" : false
},
"PromptModelInferenceConfiguration" : {
"type" : "object",
"description" : "Prompt model inference configuration",
Expand Down Expand Up @@ -149,6 +388,34 @@
}
},
"additionalProperties" : false
},
"PromptAgentResource" : {
"description" : "Target Agent to invoke with Prompt",
"type" : "object",
"properties" : {
"AgentIdentifier" : {
"type" : "string",
"maxLength" : 2048,
"pattern" : "^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:agent-alias/[0-9a-zA-Z]{10}/[0-9a-zA-Z]{10}$",
"description" : "Arn representation of the Agent Alias."
}
},
"required" : [ "AgentIdentifier" ],
"additionalProperties" : false
},
"PromptGenAiResource" : {
"description" : "Target resource to invoke with Prompt",
"oneOf" : [ {
"type" : "object",
"title" : "Agent",
"properties" : {
"Agent" : {
"$ref" : "#/definitions/PromptAgentResource"
}
},
"required" : [ "Agent" ],
"additionalProperties" : false
} ]
}
},
"properties" : {
Expand Down
Loading

0 comments on commit 344bbf6

Please sign in to comment.