Creating your own tools
@PeoplelogicTools
public class SampleTools {
@Autowired
TestContentRetriever retriever;
@Autowired
ThirdAgent thirdAgent;
@Tool("Answers the question: 'what is your name?' or answers if someone asks hello")
public String whatIsYourName() {
return "Hello. My name is Inigo Montoya. You killed my father. Prepare to die.";
}
}The @Tool annotation
Adding the tools to your agent
Last updated
Was this helpful?
