diff --git a/courier-java-core/src/main/kotlin/com/courier/models/journeys/JourneyAiNode.kt b/courier-java-core/src/main/kotlin/com/courier/models/journeys/JourneyAiNode.kt index a3a6f9f4..eabe404e 100644 --- a/courier-java-core/src/main/kotlin/com/courier/models/journeys/JourneyAiNode.kt +++ b/courier-java-core/src/main/kotlin/com/courier/models/journeys/JourneyAiNode.kt @@ -83,6 +83,11 @@ private constructor( fun conditions(): Optional = conditions.getOptional("conditions") /** + * A supported AI model id. Requests with an unknown id may be rejected with a 400 that lists + * the supported ids. Supported ids: `claude-fable-5-1`, `claude-opus-5-5`, `claude-sonnet-5-5`, + * `claude-haiku-5-5`, `gpt-6-astra`, `gpt-5.5`, `gpt-5.4`, `gpt-6.1-sol`, `gpt-5.4-mini`, + * `gpt-5.4-nano`, `gpt-6-luna`. + * * @throws CourierInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). */ @@ -276,6 +281,12 @@ private constructor( fun conditions(conditionNestedGroup: JourneyConditionNestedGroup) = conditions(JourneyConditionsField.ofConditionNestedGroup(conditionNestedGroup)) + /** + * A supported AI model id. Requests with an unknown id may be rejected with a 400 that + * lists the supported ids. Supported ids: `claude-fable-5-1`, `claude-opus-5-5`, + * `claude-sonnet-5-5`, `claude-haiku-5-5`, `gpt-6-astra`, `gpt-5.5`, `gpt-5.4`, + * `gpt-6.1-sol`, `gpt-5.4-mini`, `gpt-5.4-nano`, `gpt-6-luna`. + */ fun model(model: String) = model(JsonField.of(model)) /**