Package com.google.genkit.core
Class ActionDesc
java.lang.Object
com.google.genkit.core.ActionDesc
ActionDesc is a descriptor of an action containing its metadata and schemas.
This is used for reflection and discovery of actions.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ActionDesc.Builderbuilder()Creates a builder for ActionDesc.getKey()getName()getType()voidsetDescription(String description) voidsetInputSchema(Map<String, Object> inputSchema) voidvoidsetMetadata(Map<String, Object> metadata) voidvoidsetOutputSchema(Map<String, Object> outputSchema) voidsetType(ActionType type)
-
Constructor Details
-
ActionDesc
public ActionDesc()Default constructor for Jackson deserialization. -
ActionDesc
public ActionDesc(ActionType type, String name, String description, Map<String, Object> inputSchema, Map<String, Object> outputSchema, Map<String, Object> metadata) Creates a new ActionDesc with the specified parameters.- Parameters:
type- the action typename- the action namedescription- optional descriptioninputSchema- optional input JSON schemaoutputSchema- optional output JSON schemametadata- optional metadata
-
-
Method Details
-
builder
Creates a builder for ActionDesc.- Returns:
- a new builder instance
-
getType
-
setType
-
getKey
-
setKey
-
getName
-
setName
-
getDescription
-
setDescription
-
getInputSchema
-
setInputSchema
-
getOutputSchema
-
setOutputSchema
-
getMetadata
-
setMetadata
-