Skip to content

Commit 352bbd3

Browse files
mikemillacodegen
andauthored
docs(api): describe the AI node model constraint [C-21614] (#177)
Co-authored-by: courier-codegen <codegen@users.noreply.github.com>
1 parent c47ff68 commit 352bbd3

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎courier-java-core/src/main/kotlin/com/courier/models/journeys/JourneyAiNode.kt‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ private constructor(
8383
fun conditions(): Optional<JourneyConditionsField> = conditions.getOptional("conditions")
8484

8585
/**
86+
* A supported AI model id. Requests with an unknown id may be rejected with a 400 that lists
87+
* the supported ids. Supported ids: `claude-fable-5-1`, `claude-opus-5-5`, `claude-sonnet-5-5`,
88+
* `claude-haiku-5-5`, `gpt-6-astra`, `gpt-5.5`, `gpt-5.4`, `gpt-6.1-sol`, `gpt-5.4-mini`,
89+
* `gpt-5.4-nano`, `gpt-6-luna`.
90+
*
8691
* @throws CourierInvalidDataException if the JSON field has an unexpected type (e.g. if the
8792
* server responded with an unexpected value).
8893
*/
@@ -276,6 +281,12 @@ private constructor(
276281
fun conditions(conditionNestedGroup: JourneyConditionNestedGroup) =
277282
conditions(JourneyConditionsField.ofConditionNestedGroup(conditionNestedGroup))
278283

284+
/**
285+
* A supported AI model id. Requests with an unknown id may be rejected with a 400 that
286+
* lists the supported ids. Supported ids: `claude-fable-5-1`, `claude-opus-5-5`,
287+
* `claude-sonnet-5-5`, `claude-haiku-5-5`, `gpt-6-astra`, `gpt-5.5`, `gpt-5.4`,
288+
* `gpt-6.1-sol`, `gpt-5.4-mini`, `gpt-5.4-nano`, `gpt-6-luna`.
289+
*/
279290
fun model(model: String) = model(JsonField.of(model))
280291

281292
/**

0 commit comments

Comments
 (0)