module Stratosphere.Bedrock.Prompt.PromptVariantProperty (
module Exports, PromptVariantProperty(..), mkPromptVariantProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.Prompt.PromptGenAiResourceProperty as Exports
import {-# SOURCE #-} Stratosphere.Bedrock.Prompt.PromptInferenceConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.Bedrock.Prompt.PromptMetadataEntryProperty as Exports
import {-# SOURCE #-} Stratosphere.Bedrock.Prompt.PromptTemplateConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PromptVariantProperty
=
PromptVariantProperty {PromptVariantProperty -> ()
haddock_workaround_ :: (),
PromptVariantProperty -> Maybe Object
additionalModelRequestFields :: (Prelude.Maybe JSON.Object),
PromptVariantProperty -> Maybe PromptGenAiResourceProperty
genAiResource :: (Prelude.Maybe PromptGenAiResourceProperty),
PromptVariantProperty -> Maybe PromptInferenceConfigurationProperty
inferenceConfiguration :: (Prelude.Maybe PromptInferenceConfigurationProperty),
PromptVariantProperty -> Maybe [PromptMetadataEntryProperty]
metadata :: (Prelude.Maybe [PromptMetadataEntryProperty]),
PromptVariantProperty -> Maybe (Value Text)
modelId :: (Prelude.Maybe (Value Prelude.Text)),
PromptVariantProperty -> Value Text
name :: (Value Prelude.Text),
PromptVariantProperty -> PromptTemplateConfigurationProperty
templateConfiguration :: PromptTemplateConfigurationProperty,
PromptVariantProperty -> Value Text
templateType :: (Value Prelude.Text)}
deriving stock (PromptVariantProperty -> PromptVariantProperty -> Bool
(PromptVariantProperty -> PromptVariantProperty -> Bool)
-> (PromptVariantProperty -> PromptVariantProperty -> Bool)
-> Eq PromptVariantProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PromptVariantProperty -> PromptVariantProperty -> Bool
== :: PromptVariantProperty -> PromptVariantProperty -> Bool
$c/= :: PromptVariantProperty -> PromptVariantProperty -> Bool
/= :: PromptVariantProperty -> PromptVariantProperty -> Bool
Prelude.Eq, Int -> PromptVariantProperty -> ShowS
[PromptVariantProperty] -> ShowS
PromptVariantProperty -> String
(Int -> PromptVariantProperty -> ShowS)
-> (PromptVariantProperty -> String)
-> ([PromptVariantProperty] -> ShowS)
-> Show PromptVariantProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PromptVariantProperty -> ShowS
showsPrec :: Int -> PromptVariantProperty -> ShowS
$cshow :: PromptVariantProperty -> String
show :: PromptVariantProperty -> String
$cshowList :: [PromptVariantProperty] -> ShowS
showList :: [PromptVariantProperty] -> ShowS
Prelude.Show)
mkPromptVariantProperty ::
Value Prelude.Text
-> PromptTemplateConfigurationProperty
-> Value Prelude.Text -> PromptVariantProperty
mkPromptVariantProperty :: Value Text
-> PromptTemplateConfigurationProperty
-> Value Text
-> PromptVariantProperty
mkPromptVariantProperty Value Text
name PromptTemplateConfigurationProperty
templateConfiguration Value Text
templateType
= PromptVariantProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name,
templateConfiguration :: PromptTemplateConfigurationProperty
templateConfiguration = PromptTemplateConfigurationProperty
templateConfiguration,
templateType :: Value Text
templateType = Value Text
templateType,
additionalModelRequestFields :: Maybe Object
additionalModelRequestFields = Maybe Object
forall a. Maybe a
Prelude.Nothing,
genAiResource :: Maybe PromptGenAiResourceProperty
genAiResource = Maybe PromptGenAiResourceProperty
forall a. Maybe a
Prelude.Nothing,
inferenceConfiguration :: Maybe PromptInferenceConfigurationProperty
inferenceConfiguration = Maybe PromptInferenceConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
metadata :: Maybe [PromptMetadataEntryProperty]
metadata = Maybe [PromptMetadataEntryProperty]
forall a. Maybe a
Prelude.Nothing, modelId :: Maybe (Value Text)
modelId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PromptVariantProperty where
toResourceProperties :: PromptVariantProperty -> ResourceProperties
toResourceProperties PromptVariantProperty {Maybe [PromptMetadataEntryProperty]
Maybe Object
Maybe (Value Text)
Maybe PromptGenAiResourceProperty
Maybe PromptInferenceConfigurationProperty
()
Value Text
PromptTemplateConfigurationProperty
haddock_workaround_ :: PromptVariantProperty -> ()
additionalModelRequestFields :: PromptVariantProperty -> Maybe Object
genAiResource :: PromptVariantProperty -> Maybe PromptGenAiResourceProperty
inferenceConfiguration :: PromptVariantProperty -> Maybe PromptInferenceConfigurationProperty
metadata :: PromptVariantProperty -> Maybe [PromptMetadataEntryProperty]
modelId :: PromptVariantProperty -> Maybe (Value Text)
name :: PromptVariantProperty -> Value Text
templateConfiguration :: PromptVariantProperty -> PromptTemplateConfigurationProperty
templateType :: PromptVariantProperty -> Value Text
haddock_workaround_ :: ()
additionalModelRequestFields :: Maybe Object
genAiResource :: Maybe PromptGenAiResourceProperty
inferenceConfiguration :: Maybe PromptInferenceConfigurationProperty
metadata :: Maybe [PromptMetadataEntryProperty]
modelId :: Maybe (Value Text)
name :: Value Text
templateConfiguration :: PromptTemplateConfigurationProperty
templateType :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Bedrock::Prompt.PromptVariant",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Name" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
name,
Key
"TemplateConfiguration" Key -> PromptTemplateConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= PromptTemplateConfigurationProperty
templateConfiguration,
Key
"TemplateType" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
templateType]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AdditionalModelRequestFields"
(Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
additionalModelRequestFields,
Key -> PromptGenAiResourceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"GenAiResource" (PromptGenAiResourceProperty -> (Key, Value))
-> Maybe PromptGenAiResourceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PromptGenAiResourceProperty
genAiResource,
Key -> PromptInferenceConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InferenceConfiguration"
(PromptInferenceConfigurationProperty -> (Key, Value))
-> Maybe PromptInferenceConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PromptInferenceConfigurationProperty
inferenceConfiguration,
Key -> [PromptMetadataEntryProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Metadata" ([PromptMetadataEntryProperty] -> (Key, Value))
-> Maybe [PromptMetadataEntryProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [PromptMetadataEntryProperty]
metadata,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ModelId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
modelId]))}
instance JSON.ToJSON PromptVariantProperty where
toJSON :: PromptVariantProperty -> Value
toJSON PromptVariantProperty {Maybe [PromptMetadataEntryProperty]
Maybe Object
Maybe (Value Text)
Maybe PromptGenAiResourceProperty
Maybe PromptInferenceConfigurationProperty
()
Value Text
PromptTemplateConfigurationProperty
haddock_workaround_ :: PromptVariantProperty -> ()
additionalModelRequestFields :: PromptVariantProperty -> Maybe Object
genAiResource :: PromptVariantProperty -> Maybe PromptGenAiResourceProperty
inferenceConfiguration :: PromptVariantProperty -> Maybe PromptInferenceConfigurationProperty
metadata :: PromptVariantProperty -> Maybe [PromptMetadataEntryProperty]
modelId :: PromptVariantProperty -> Maybe (Value Text)
name :: PromptVariantProperty -> Value Text
templateConfiguration :: PromptVariantProperty -> PromptTemplateConfigurationProperty
templateType :: PromptVariantProperty -> Value Text
haddock_workaround_ :: ()
additionalModelRequestFields :: Maybe Object
genAiResource :: Maybe PromptGenAiResourceProperty
inferenceConfiguration :: Maybe PromptInferenceConfigurationProperty
metadata :: Maybe [PromptMetadataEntryProperty]
modelId :: Maybe (Value Text)
name :: Value Text
templateConfiguration :: PromptTemplateConfigurationProperty
templateType :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Name" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
name,
Key
"TemplateConfiguration" Key -> PromptTemplateConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= PromptTemplateConfigurationProperty
templateConfiguration,
Key
"TemplateType" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
templateType]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AdditionalModelRequestFields"
(Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
additionalModelRequestFields,
Key -> PromptGenAiResourceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"GenAiResource" (PromptGenAiResourceProperty -> (Key, Value))
-> Maybe PromptGenAiResourceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PromptGenAiResourceProperty
genAiResource,
Key -> PromptInferenceConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InferenceConfiguration"
(PromptInferenceConfigurationProperty -> (Key, Value))
-> Maybe PromptInferenceConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PromptInferenceConfigurationProperty
inferenceConfiguration,
Key -> [PromptMetadataEntryProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Metadata" ([PromptMetadataEntryProperty] -> (Key, Value))
-> Maybe [PromptMetadataEntryProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [PromptMetadataEntryProperty]
metadata,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ModelId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
modelId])))
instance Property "AdditionalModelRequestFields" PromptVariantProperty where
type PropertyType "AdditionalModelRequestFields" PromptVariantProperty = JSON.Object
set :: PropertyType "AdditionalModelRequestFields" PromptVariantProperty
-> PromptVariantProperty -> PromptVariantProperty
set PropertyType "AdditionalModelRequestFields" PromptVariantProperty
newValue PromptVariantProperty {Maybe [PromptMetadataEntryProperty]
Maybe Object
Maybe (Value Text)
Maybe PromptGenAiResourceProperty
Maybe PromptInferenceConfigurationProperty
()
Value Text
PromptTemplateConfigurationProperty
haddock_workaround_ :: PromptVariantProperty -> ()
additionalModelRequestFields :: PromptVariantProperty -> Maybe Object
genAiResource :: PromptVariantProperty -> Maybe PromptGenAiResourceProperty
inferenceConfiguration :: PromptVariantProperty -> Maybe PromptInferenceConfigurationProperty
metadata :: PromptVariantProperty -> Maybe [PromptMetadataEntryProperty]
modelId :: PromptVariantProperty -> Maybe (Value Text)
name :: PromptVariantProperty -> Value Text
templateConfiguration :: PromptVariantProperty -> PromptTemplateConfigurationProperty
templateType :: PromptVariantProperty -> Value Text
haddock_workaround_ :: ()
additionalModelRequestFields :: Maybe Object
genAiResource :: Maybe PromptGenAiResourceProperty
inferenceConfiguration :: Maybe PromptInferenceConfigurationProperty
metadata :: Maybe [PromptMetadataEntryProperty]
modelId :: Maybe (Value Text)
name :: Value Text
templateConfiguration :: PromptTemplateConfigurationProperty
templateType :: Value Text
..}
= PromptVariantProperty
{additionalModelRequestFields :: Maybe Object
additionalModelRequestFields = Object -> Maybe Object
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Object
PropertyType "AdditionalModelRequestFields" PromptVariantProperty
newValue, Maybe [PromptMetadataEntryProperty]
Maybe (Value Text)
Maybe PromptGenAiResourceProperty
Maybe PromptInferenceConfigurationProperty
()
Value Text
PromptTemplateConfigurationProperty
haddock_workaround_ :: ()
genAiResource :: Maybe PromptGenAiResourceProperty
inferenceConfiguration :: Maybe PromptInferenceConfigurationProperty
metadata :: Maybe [PromptMetadataEntryProperty]
modelId :: Maybe (Value Text)
name :: Value Text
templateConfiguration :: PromptTemplateConfigurationProperty
templateType :: Value Text
haddock_workaround_ :: ()
genAiResource :: Maybe PromptGenAiResourceProperty
inferenceConfiguration :: Maybe PromptInferenceConfigurationProperty
metadata :: Maybe [PromptMetadataEntryProperty]
modelId :: Maybe (Value Text)
name :: Value Text
templateConfiguration :: PromptTemplateConfigurationProperty
templateType :: Value Text
..}
instance Property "GenAiResource" PromptVariantProperty where
type PropertyType "GenAiResource" PromptVariantProperty = PromptGenAiResourceProperty
set :: PropertyType "GenAiResource" PromptVariantProperty
-> PromptVariantProperty -> PromptVariantProperty
set PropertyType "GenAiResource" PromptVariantProperty
newValue PromptVariantProperty {Maybe [PromptMetadataEntryProperty]
Maybe Object
Maybe (Value Text)
Maybe PromptGenAiResourceProperty
Maybe PromptInferenceConfigurationProperty
()
Value Text
PromptTemplateConfigurationProperty
haddock_workaround_ :: PromptVariantProperty -> ()
additionalModelRequestFields :: PromptVariantProperty -> Maybe Object
genAiResource :: PromptVariantProperty -> Maybe PromptGenAiResourceProperty
inferenceConfiguration :: PromptVariantProperty -> Maybe PromptInferenceConfigurationProperty
metadata :: PromptVariantProperty -> Maybe [PromptMetadataEntryProperty]
modelId :: PromptVariantProperty -> Maybe (Value Text)
name :: PromptVariantProperty -> Value Text
templateConfiguration :: PromptVariantProperty -> PromptTemplateConfigurationProperty
templateType :: PromptVariantProperty -> Value Text
haddock_workaround_ :: ()
additionalModelRequestFields :: Maybe Object
genAiResource :: Maybe PromptGenAiResourceProperty
inferenceConfiguration :: Maybe PromptInferenceConfigurationProperty
metadata :: Maybe [PromptMetadataEntryProperty]
modelId :: Maybe (Value Text)
name :: Value Text
templateConfiguration :: PromptTemplateConfigurationProperty
templateType :: Value Text
..}
= PromptVariantProperty {genAiResource :: Maybe PromptGenAiResourceProperty
genAiResource = PromptGenAiResourceProperty -> Maybe PromptGenAiResourceProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "GenAiResource" PromptVariantProperty
PromptGenAiResourceProperty
newValue, Maybe [PromptMetadataEntryProperty]
Maybe Object
Maybe (Value Text)
Maybe PromptInferenceConfigurationProperty
()
Value Text
PromptTemplateConfigurationProperty
haddock_workaround_ :: ()
additionalModelRequestFields :: Maybe Object
inferenceConfiguration :: Maybe PromptInferenceConfigurationProperty
metadata :: Maybe [PromptMetadataEntryProperty]
modelId :: Maybe (Value Text)
name :: Value Text
templateConfiguration :: PromptTemplateConfigurationProperty
templateType :: Value Text
haddock_workaround_ :: ()
additionalModelRequestFields :: Maybe Object
inferenceConfiguration :: Maybe PromptInferenceConfigurationProperty
metadata :: Maybe [PromptMetadataEntryProperty]
modelId :: Maybe (Value Text)
name :: Value Text
templateConfiguration :: PromptTemplateConfigurationProperty
templateType :: Value Text
..}
instance Property "InferenceConfiguration" PromptVariantProperty where
type PropertyType "InferenceConfiguration" PromptVariantProperty = PromptInferenceConfigurationProperty
set :: PropertyType "InferenceConfiguration" PromptVariantProperty
-> PromptVariantProperty -> PromptVariantProperty
set PropertyType "InferenceConfiguration" PromptVariantProperty
newValue PromptVariantProperty {Maybe [PromptMetadataEntryProperty]
Maybe Object
Maybe (Value Text)
Maybe PromptGenAiResourceProperty
Maybe PromptInferenceConfigurationProperty
()
Value Text
PromptTemplateConfigurationProperty
haddock_workaround_ :: PromptVariantProperty -> ()
additionalModelRequestFields :: PromptVariantProperty -> Maybe Object
genAiResource :: PromptVariantProperty -> Maybe PromptGenAiResourceProperty
inferenceConfiguration :: PromptVariantProperty -> Maybe PromptInferenceConfigurationProperty
metadata :: PromptVariantProperty -> Maybe [PromptMetadataEntryProperty]
modelId :: PromptVariantProperty -> Maybe (Value Text)
name :: PromptVariantProperty -> Value Text
templateConfiguration :: PromptVariantProperty -> PromptTemplateConfigurationProperty
templateType :: PromptVariantProperty -> Value Text
haddock_workaround_ :: ()
additionalModelRequestFields :: Maybe Object
genAiResource :: Maybe PromptGenAiResourceProperty
inferenceConfiguration :: Maybe PromptInferenceConfigurationProperty
metadata :: Maybe [PromptMetadataEntryProperty]
modelId :: Maybe (Value Text)
name :: Value Text
templateConfiguration :: PromptTemplateConfigurationProperty
templateType :: Value Text
..}
= PromptVariantProperty
{inferenceConfiguration :: Maybe PromptInferenceConfigurationProperty
inferenceConfiguration = PromptInferenceConfigurationProperty
-> Maybe PromptInferenceConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "InferenceConfiguration" PromptVariantProperty
PromptInferenceConfigurationProperty
newValue, Maybe [PromptMetadataEntryProperty]
Maybe Object
Maybe (Value Text)
Maybe PromptGenAiResourceProperty
()
Value Text
PromptTemplateConfigurationProperty
haddock_workaround_ :: ()
additionalModelRequestFields :: Maybe Object
genAiResource :: Maybe PromptGenAiResourceProperty
metadata :: Maybe [PromptMetadataEntryProperty]
modelId :: Maybe (Value Text)
name :: Value Text
templateConfiguration :: PromptTemplateConfigurationProperty
templateType :: Value Text
haddock_workaround_ :: ()
additionalModelRequestFields :: Maybe Object
genAiResource :: Maybe PromptGenAiResourceProperty
metadata :: Maybe [PromptMetadataEntryProperty]
modelId :: Maybe (Value Text)
name :: Value Text
templateConfiguration :: PromptTemplateConfigurationProperty
templateType :: Value Text
..}
instance Property "Metadata" PromptVariantProperty where
type PropertyType "Metadata" PromptVariantProperty = [PromptMetadataEntryProperty]
set :: PropertyType "Metadata" PromptVariantProperty
-> PromptVariantProperty -> PromptVariantProperty
set PropertyType "Metadata" PromptVariantProperty
newValue PromptVariantProperty {Maybe [PromptMetadataEntryProperty]
Maybe Object
Maybe (Value Text)
Maybe PromptGenAiResourceProperty
Maybe PromptInferenceConfigurationProperty
()
Value Text
PromptTemplateConfigurationProperty
haddock_workaround_ :: PromptVariantProperty -> ()
additionalModelRequestFields :: PromptVariantProperty -> Maybe Object
genAiResource :: PromptVariantProperty -> Maybe PromptGenAiResourceProperty
inferenceConfiguration :: PromptVariantProperty -> Maybe PromptInferenceConfigurationProperty
metadata :: PromptVariantProperty -> Maybe [PromptMetadataEntryProperty]
modelId :: PromptVariantProperty -> Maybe (Value Text)
name :: PromptVariantProperty -> Value Text
templateConfiguration :: PromptVariantProperty -> PromptTemplateConfigurationProperty
templateType :: PromptVariantProperty -> Value Text
haddock_workaround_ :: ()
additionalModelRequestFields :: Maybe Object
genAiResource :: Maybe PromptGenAiResourceProperty
inferenceConfiguration :: Maybe PromptInferenceConfigurationProperty
metadata :: Maybe [PromptMetadataEntryProperty]
modelId :: Maybe (Value Text)
name :: Value Text
templateConfiguration :: PromptTemplateConfigurationProperty
templateType :: Value Text
..}
= PromptVariantProperty {metadata :: Maybe [PromptMetadataEntryProperty]
metadata = [PromptMetadataEntryProperty]
-> Maybe [PromptMetadataEntryProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [PromptMetadataEntryProperty]
PropertyType "Metadata" PromptVariantProperty
newValue, Maybe Object
Maybe (Value Text)
Maybe PromptGenAiResourceProperty
Maybe PromptInferenceConfigurationProperty
()
Value Text
PromptTemplateConfigurationProperty
haddock_workaround_ :: ()
additionalModelRequestFields :: Maybe Object
genAiResource :: Maybe PromptGenAiResourceProperty
inferenceConfiguration :: Maybe PromptInferenceConfigurationProperty
modelId :: Maybe (Value Text)
name :: Value Text
templateConfiguration :: PromptTemplateConfigurationProperty
templateType :: Value Text
haddock_workaround_ :: ()
additionalModelRequestFields :: Maybe Object
genAiResource :: Maybe PromptGenAiResourceProperty
inferenceConfiguration :: Maybe PromptInferenceConfigurationProperty
modelId :: Maybe (Value Text)
name :: Value Text
templateConfiguration :: PromptTemplateConfigurationProperty
templateType :: Value Text
..}
instance Property "ModelId" PromptVariantProperty where
type PropertyType "ModelId" PromptVariantProperty = Value Prelude.Text
set :: PropertyType "ModelId" PromptVariantProperty
-> PromptVariantProperty -> PromptVariantProperty
set PropertyType "ModelId" PromptVariantProperty
newValue PromptVariantProperty {Maybe [PromptMetadataEntryProperty]
Maybe Object
Maybe (Value Text)
Maybe PromptGenAiResourceProperty
Maybe PromptInferenceConfigurationProperty
()
Value Text
PromptTemplateConfigurationProperty
haddock_workaround_ :: PromptVariantProperty -> ()
additionalModelRequestFields :: PromptVariantProperty -> Maybe Object
genAiResource :: PromptVariantProperty -> Maybe PromptGenAiResourceProperty
inferenceConfiguration :: PromptVariantProperty -> Maybe PromptInferenceConfigurationProperty
metadata :: PromptVariantProperty -> Maybe [PromptMetadataEntryProperty]
modelId :: PromptVariantProperty -> Maybe (Value Text)
name :: PromptVariantProperty -> Value Text
templateConfiguration :: PromptVariantProperty -> PromptTemplateConfigurationProperty
templateType :: PromptVariantProperty -> Value Text
haddock_workaround_ :: ()
additionalModelRequestFields :: Maybe Object
genAiResource :: Maybe PromptGenAiResourceProperty
inferenceConfiguration :: Maybe PromptInferenceConfigurationProperty
metadata :: Maybe [PromptMetadataEntryProperty]
modelId :: Maybe (Value Text)
name :: Value Text
templateConfiguration :: PromptTemplateConfigurationProperty
templateType :: Value Text
..}
= PromptVariantProperty {modelId :: Maybe (Value Text)
modelId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ModelId" PromptVariantProperty
Value Text
newValue, Maybe [PromptMetadataEntryProperty]
Maybe Object
Maybe PromptGenAiResourceProperty
Maybe PromptInferenceConfigurationProperty
()
Value Text
PromptTemplateConfigurationProperty
haddock_workaround_ :: ()
additionalModelRequestFields :: Maybe Object
genAiResource :: Maybe PromptGenAiResourceProperty
inferenceConfiguration :: Maybe PromptInferenceConfigurationProperty
metadata :: Maybe [PromptMetadataEntryProperty]
name :: Value Text
templateConfiguration :: PromptTemplateConfigurationProperty
templateType :: Value Text
haddock_workaround_ :: ()
additionalModelRequestFields :: Maybe Object
genAiResource :: Maybe PromptGenAiResourceProperty
inferenceConfiguration :: Maybe PromptInferenceConfigurationProperty
metadata :: Maybe [PromptMetadataEntryProperty]
name :: Value Text
templateConfiguration :: PromptTemplateConfigurationProperty
templateType :: Value Text
..}
instance Property "Name" PromptVariantProperty where
type PropertyType "Name" PromptVariantProperty = Value Prelude.Text
set :: PropertyType "Name" PromptVariantProperty
-> PromptVariantProperty -> PromptVariantProperty
set PropertyType "Name" PromptVariantProperty
newValue PromptVariantProperty {Maybe [PromptMetadataEntryProperty]
Maybe Object
Maybe (Value Text)
Maybe PromptGenAiResourceProperty
Maybe PromptInferenceConfigurationProperty
()
Value Text
PromptTemplateConfigurationProperty
haddock_workaround_ :: PromptVariantProperty -> ()
additionalModelRequestFields :: PromptVariantProperty -> Maybe Object
genAiResource :: PromptVariantProperty -> Maybe PromptGenAiResourceProperty
inferenceConfiguration :: PromptVariantProperty -> Maybe PromptInferenceConfigurationProperty
metadata :: PromptVariantProperty -> Maybe [PromptMetadataEntryProperty]
modelId :: PromptVariantProperty -> Maybe (Value Text)
name :: PromptVariantProperty -> Value Text
templateConfiguration :: PromptVariantProperty -> PromptTemplateConfigurationProperty
templateType :: PromptVariantProperty -> Value Text
haddock_workaround_ :: ()
additionalModelRequestFields :: Maybe Object
genAiResource :: Maybe PromptGenAiResourceProperty
inferenceConfiguration :: Maybe PromptInferenceConfigurationProperty
metadata :: Maybe [PromptMetadataEntryProperty]
modelId :: Maybe (Value Text)
name :: Value Text
templateConfiguration :: PromptTemplateConfigurationProperty
templateType :: Value Text
..}
= PromptVariantProperty {name :: Value Text
name = PropertyType "Name" PromptVariantProperty
Value Text
newValue, Maybe [PromptMetadataEntryProperty]
Maybe Object
Maybe (Value Text)
Maybe PromptGenAiResourceProperty
Maybe PromptInferenceConfigurationProperty
()
Value Text
PromptTemplateConfigurationProperty
haddock_workaround_ :: ()
additionalModelRequestFields :: Maybe Object
genAiResource :: Maybe PromptGenAiResourceProperty
inferenceConfiguration :: Maybe PromptInferenceConfigurationProperty
metadata :: Maybe [PromptMetadataEntryProperty]
modelId :: Maybe (Value Text)
templateConfiguration :: PromptTemplateConfigurationProperty
templateType :: Value Text
haddock_workaround_ :: ()
additionalModelRequestFields :: Maybe Object
genAiResource :: Maybe PromptGenAiResourceProperty
inferenceConfiguration :: Maybe PromptInferenceConfigurationProperty
metadata :: Maybe [PromptMetadataEntryProperty]
modelId :: Maybe (Value Text)
templateConfiguration :: PromptTemplateConfigurationProperty
templateType :: Value Text
..}
instance Property "TemplateConfiguration" PromptVariantProperty where
type PropertyType "TemplateConfiguration" PromptVariantProperty = PromptTemplateConfigurationProperty
set :: PropertyType "TemplateConfiguration" PromptVariantProperty
-> PromptVariantProperty -> PromptVariantProperty
set PropertyType "TemplateConfiguration" PromptVariantProperty
newValue PromptVariantProperty {Maybe [PromptMetadataEntryProperty]
Maybe Object
Maybe (Value Text)
Maybe PromptGenAiResourceProperty
Maybe PromptInferenceConfigurationProperty
()
Value Text
PromptTemplateConfigurationProperty
haddock_workaround_ :: PromptVariantProperty -> ()
additionalModelRequestFields :: PromptVariantProperty -> Maybe Object
genAiResource :: PromptVariantProperty -> Maybe PromptGenAiResourceProperty
inferenceConfiguration :: PromptVariantProperty -> Maybe PromptInferenceConfigurationProperty
metadata :: PromptVariantProperty -> Maybe [PromptMetadataEntryProperty]
modelId :: PromptVariantProperty -> Maybe (Value Text)
name :: PromptVariantProperty -> Value Text
templateConfiguration :: PromptVariantProperty -> PromptTemplateConfigurationProperty
templateType :: PromptVariantProperty -> Value Text
haddock_workaround_ :: ()
additionalModelRequestFields :: Maybe Object
genAiResource :: Maybe PromptGenAiResourceProperty
inferenceConfiguration :: Maybe PromptInferenceConfigurationProperty
metadata :: Maybe [PromptMetadataEntryProperty]
modelId :: Maybe (Value Text)
name :: Value Text
templateConfiguration :: PromptTemplateConfigurationProperty
templateType :: Value Text
..}
= PromptVariantProperty {templateConfiguration :: PromptTemplateConfigurationProperty
templateConfiguration = PropertyType "TemplateConfiguration" PromptVariantProperty
PromptTemplateConfigurationProperty
newValue, Maybe [PromptMetadataEntryProperty]
Maybe Object
Maybe (Value Text)
Maybe PromptGenAiResourceProperty
Maybe PromptInferenceConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
additionalModelRequestFields :: Maybe Object
genAiResource :: Maybe PromptGenAiResourceProperty
inferenceConfiguration :: Maybe PromptInferenceConfigurationProperty
metadata :: Maybe [PromptMetadataEntryProperty]
modelId :: Maybe (Value Text)
name :: Value Text
templateType :: Value Text
haddock_workaround_ :: ()
additionalModelRequestFields :: Maybe Object
genAiResource :: Maybe PromptGenAiResourceProperty
inferenceConfiguration :: Maybe PromptInferenceConfigurationProperty
metadata :: Maybe [PromptMetadataEntryProperty]
modelId :: Maybe (Value Text)
name :: Value Text
templateType :: Value Text
..}
instance Property "TemplateType" PromptVariantProperty where
type PropertyType "TemplateType" PromptVariantProperty = Value Prelude.Text
set :: PropertyType "TemplateType" PromptVariantProperty
-> PromptVariantProperty -> PromptVariantProperty
set PropertyType "TemplateType" PromptVariantProperty
newValue PromptVariantProperty {Maybe [PromptMetadataEntryProperty]
Maybe Object
Maybe (Value Text)
Maybe PromptGenAiResourceProperty
Maybe PromptInferenceConfigurationProperty
()
Value Text
PromptTemplateConfigurationProperty
haddock_workaround_ :: PromptVariantProperty -> ()
additionalModelRequestFields :: PromptVariantProperty -> Maybe Object
genAiResource :: PromptVariantProperty -> Maybe PromptGenAiResourceProperty
inferenceConfiguration :: PromptVariantProperty -> Maybe PromptInferenceConfigurationProperty
metadata :: PromptVariantProperty -> Maybe [PromptMetadataEntryProperty]
modelId :: PromptVariantProperty -> Maybe (Value Text)
name :: PromptVariantProperty -> Value Text
templateConfiguration :: PromptVariantProperty -> PromptTemplateConfigurationProperty
templateType :: PromptVariantProperty -> Value Text
haddock_workaround_ :: ()
additionalModelRequestFields :: Maybe Object
genAiResource :: Maybe PromptGenAiResourceProperty
inferenceConfiguration :: Maybe PromptInferenceConfigurationProperty
metadata :: Maybe [PromptMetadataEntryProperty]
modelId :: Maybe (Value Text)
name :: Value Text
templateConfiguration :: PromptTemplateConfigurationProperty
templateType :: Value Text
..}
= PromptVariantProperty {templateType :: Value Text
templateType = PropertyType "TemplateType" PromptVariantProperty
Value Text
newValue, Maybe [PromptMetadataEntryProperty]
Maybe Object
Maybe (Value Text)
Maybe PromptGenAiResourceProperty
Maybe PromptInferenceConfigurationProperty
()
Value Text
PromptTemplateConfigurationProperty
haddock_workaround_ :: ()
additionalModelRequestFields :: Maybe Object
genAiResource :: Maybe PromptGenAiResourceProperty
inferenceConfiguration :: Maybe PromptInferenceConfigurationProperty
metadata :: Maybe [PromptMetadataEntryProperty]
modelId :: Maybe (Value Text)
name :: Value Text
templateConfiguration :: PromptTemplateConfigurationProperty
haddock_workaround_ :: ()
additionalModelRequestFields :: Maybe Object
genAiResource :: Maybe PromptGenAiResourceProperty
inferenceConfiguration :: Maybe PromptInferenceConfigurationProperty
metadata :: Maybe [PromptMetadataEntryProperty]
modelId :: Maybe (Value Text)
name :: Value Text
templateConfiguration :: PromptTemplateConfigurationProperty
..}