Interface EphemeralAgentsService.TemplateValidationAwareConsumer
- Enclosing interface:
- EphemeralAgentsService
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface for consuming an EphemeralAgentTemplate with validation.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Performs an operation on the given template.
-
Method Details
-
accept
void accept(EphemeralAgentTemplate t) throws TemplateValidationException, EphemeralAgentsService.DuplicateTemplateNameException Performs an operation on the given template. Implementing function must run template validation and name duplication checks.- Parameters:
t
- the ephemeral agent template- Throws:
TemplateValidationException
- if the template validation failsEphemeralAgentsService.DuplicateTemplateNameException
- if a duplicate template name is encountered
-