Annotation Interface ChatModelSupplier


@Retention(RUNTIME) @Target(METHOD) public @interface ChatModelSupplier
Marks a method as a supplier of the chat model to be used by an agent. The method must be static and return an instance of ChatModel.

Example:


     public interface SupervisorBanker {

        @SupervisorAgent(responseStrategy = SupervisorResponseStrategy.SUMMARY, subAgents = {
                @SubAgent(type = WithdrawAgent.class),
                @SubAgent(type = CreditAgent.class)
        })
        String invoke(@V("request") String request);

        @ChatModelSupplier
        static ChatModel chatModel() {
            return plannerModel();
        }
    }