From 1405ea255d1d995a36f3f698cd8483d92d8fd07e Mon Sep 17 00:00:00 2001 From: courier-codegen Date: Mon, 19 Oct 2026 18:38:08 +0000 Subject: [PATCH] docs(api): describe the AI node model constraint [C-21614] --- .../com/courier/models/journeys/JourneyAiNode.kt | 11 +++++++++++ 1 file changed, 11 insertions(+) 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)) /**