Class CompensateForAnnotationTransformer

java.lang.Object
io.micronaut.langchain4j.processor.CompensateForAnnotationTransformer
All Implemented Interfaces:
io.micronaut.inject.annotation.AnnotationTransformer<dev.langchain4j.agent.tool.CompensateFor>, io.micronaut.inject.annotation.TypedAnnotationTransformer<dev.langchain4j.agent.tool.CompensateFor>

@Internal public class CompensateForAnnotationTransformer extends Object implements io.micronaut.inject.annotation.TypedAnnotationTransformer<dev.langchain4j.agent.tool.CompensateFor>
Makes the CompensateFor methods executable, so that the tool registry finds them without reflection and reports that their compensating actions are not registered.
Since:
2.4.0
  • Constructor Details

    • CompensateForAnnotationTransformer

      public CompensateForAnnotationTransformer()
  • Method Details

    • annotationType

      public Class<dev.langchain4j.agent.tool.CompensateFor> annotationType()
      Specified by:
      annotationType in interface io.micronaut.inject.annotation.TypedAnnotationTransformer<dev.langchain4j.agent.tool.CompensateFor>
    • transform

      public List<io.micronaut.core.annotation.AnnotationValue<?>> transform(io.micronaut.core.annotation.AnnotationValue<dev.langchain4j.agent.tool.CompensateFor> annotation, io.micronaut.inject.visitor.VisitorContext visitorContext)
      Specified by:
      transform in interface io.micronaut.inject.annotation.AnnotationTransformer<dev.langchain4j.agent.tool.CompensateFor>