Class JourneyAiNode
-
- All Implemented Interfaces:
public final class JourneyAiNodeInvoke an AI step with
user_promptand optionalweb_search. Returns a structured response conforming tooutput_schema.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classJourneyAiNode.BuilderA builder for JourneyAiNode.
public final classJourneyAiNode.OutputSchemaA JSONSchema object (Draft-07-compatible). Validated at runtime by Ajv.
public final classJourneyAiNode.Type
-
Method Summary
Modifier and Type Method Description final JourneyAiNode.OutputSchemaoutputSchema()A JSONSchema object (Draft-07-compatible). final JourneyAiNode.Typetype()final Optional<String>id()final Optional<JourneyConditionsField>conditions()Condition spec for a journey node. final Optional<String>model()final Optional<String>userPrompt()final Optional<Boolean>webSearch()final JsonField<JourneyAiNode.OutputSchema>_outputSchema()Returns the raw JSON value of outputSchema. final JsonField<JourneyAiNode.Type>_type()Returns the raw JSON value of type. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<JourneyConditionsField>_conditions()Returns the raw JSON value of conditions. final JsonField<String>_model()Returns the raw JSON value of model. final JsonField<String>_userPrompt()Returns the raw JSON value of userPrompt. final JsonField<Boolean>_webSearch()Returns the raw JSON value of webSearch. final Map<String, JsonValue>_additionalProperties()final JourneyAiNode.BuildertoBuilder()final JourneyAiNodevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static JourneyAiNode.Builderbuilder()Returns a mutable builder for constructing an instance of JourneyAiNode. -
-
Method Detail
-
outputSchema
final JourneyAiNode.OutputSchema outputSchema()
A JSONSchema object (Draft-07-compatible). Validated at runtime by Ajv.
-
type
final JourneyAiNode.Type type()
-
conditions
final Optional<JourneyConditionsField> conditions()
Condition spec for a journey node. Accepts a single condition atom, an AND/OR group, or an AND/OR nested group. Omit the
conditionsproperty entirely to express "no conditions".
-
userPrompt
final Optional<String> userPrompt()
-
_outputSchema
final JsonField<JourneyAiNode.OutputSchema> _outputSchema()
Returns the raw JSON value of outputSchema.
Unlike outputSchema, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<JourneyAiNode.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_conditions
final JsonField<JourneyConditionsField> _conditions()
Returns the raw JSON value of conditions.
Unlike conditions, this method doesn't throw if the JSON field has an unexpected type.
-
_model
final JsonField<String> _model()
Returns the raw JSON value of model.
Unlike model, this method doesn't throw if the JSON field has an unexpected type.
-
_userPrompt
final JsonField<String> _userPrompt()
Returns the raw JSON value of userPrompt.
Unlike userPrompt, this method doesn't throw if the JSON field has an unexpected type.
-
_webSearch
final JsonField<Boolean> _webSearch()
Returns the raw JSON value of webSearch.
Unlike webSearch, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final JourneyAiNode.Builder toBuilder()
-
validate
final JourneyAiNode validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static JourneyAiNode.Builder builder()
Returns a mutable builder for constructing an instance of JourneyAiNode.
The following fields are required:
.outputSchema() .type()
-
-
-
-