Module Values.PromptFlowNodeConfigurationSource

Contains configurations for a prompt node in the flow. You can use a prompt from Prompt management or you can define one in this node. If the prompt contains variables, the inputs into this node will fill in the variables. The output from this node is the response generated by the model. For more information, see Node types in a flow in the Amazon Bedrock User Guide.

Sourcetype nonrec t = {
  1. sourceConfiguration : PromptFlowNodeSourceConfiguration.t;
    (*

    Specifies whether the prompt is from Prompt management or defined inline.

    *)
  2. guardrailConfiguration : GuardrailConfiguration.t option;
    (*

    Contains configurations for a guardrail to apply to the prompt in this node and the response generated from it.

    *)
}
Sourceval context_ : string
Sourceval make : ?guardrailConfiguration:??? -> sourceConfiguration:PromptFlowNodeSourceConfiguration.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `String of GuardrailIdentifier.t | `Structure of (string * [> `Enum of string | `String of FlowPromptArn.t | `Structure of (string * [> `Structure of (string * [> `Float of Temperature.t | `Integer of MaximumLength.t | `List of [> `String of String_.t | `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `String of String_.t | `Structure of (string * [> `Enum of string ]) list ]) list ] list | `String of PromptInputVariableName.t | `Structure of (string * [> `Enum of string ]) list ]) list ] list | `String of TextPrompt.t | `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `Structure of (string * [> `Boolean of Boolean.t | `Enum of string | `String of ToolName.t | `Structure of (string * [> `Structure of 'a list ]) list ]) list ]) list ] list | `Structure of (string * [> `Structure of (string * [> `String of ToolName.t ]) list ]) list ]) list ]) list ]) list ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t