Class FunctionNodes

java.lang.Object
com.google.adk.workflow.FunctionNodes

@Experimental public final class FunctionNodes extends Object
Creates FunctionNodes with a type per port, as a Class or, for a generic type such as List<Order>, a TypeReference, read and written as FunctionNode describes. Port values also follow these rules:
  • A primitive or boxed number or boolean, also in a primitive array other than byte[] (base64) or as a map key, accepts only its own JSON type or the same value quoted ( "3"). An integer also accepts a whole number such as 3.0, and a char only one character of text. Inside a record or class, an OptionalInt, OptionalLong or OptionalDouble reads its value the same way, and null as empty.
  • An enum or boolean reads a number only where Jackson writes it as one.
  • A port of Event or of a com.google.genai.types type such as Content, or of a list, map or array of them, rejects unknown keys anywhere in its value. Other ports drop them.

A node's body asks the user for input with requestInput(String, String, Object, Schema).