You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm just starting the investigation of this library.
I found StarNewsFinder example is very confusing.
First, the class name. StarNewsFinder means that the main responsibility of the agent to find "star news". This is also confirmed by the description:
@Agent(description = "Find news based on a person's star sign")
publicclassStarNewsFinder {
One of the actions defined (findNewsStories) really does this (finds news):
@ActionpublicRelevantNewsStoriesfindNewsStories(
But here is the confusion. This is not the main action. The main action that achieves the goal is this:
@AchievesGoal(description = "Write an amusing writeup based on horoscope and news")
@ActionpublicWriteupwriteup(
Is it correct?
If this is correct, then why the class is called StarNewsFinder and not StarNewsStoryWriter (or similar)? IIUC this is the main goal of the @Agent. Not finding the news, but writing the story based on the found news. Finding the news is just an intermediate action needed to achieve the writeup goal.
Please correct me if I'm wrong. I'm really trying to understand, but this confusion doesn't make it easier. :)
Activity