ActionMetadata<Input, Output, Chunk, Init> constructor

ActionMetadata<Input, Output, Chunk, Init>({
  1. required String name,
  2. String actionType = 'custom',
  3. String? description,
  4. SchemanticType<Input>? inputSchema,
  5. SchemanticType<Output>? outputSchema,
  6. SchemanticType<Chunk>? streamSchema,
  7. SchemanticType<Init>? initSchema,
  8. Map<String, dynamic>? metadata,
})

Implementation

ActionMetadata({
  required this.name,
  this.actionType = 'custom', // Default or required?
  this.description,
  this.inputSchema,
  this.outputSchema,
  this.streamSchema,
  this.initSchema,
  Map<String, dynamic>? metadata,
}) : metadata = metadata ?? {};