Skip to content

StarNewsFinder example is confusing #1611

Closed

Description

@xak2000

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")
public class StarNewsFinder {

One of the actions defined (findNewsStories) really does this (finds news):

    @Action  
    public RelevantNewsStories findNewsStories(

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")  
    @Action
    public Writeup writeup(

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

  1. locked and limited conversation to collaborators on Apr 16, 2026
  2. converted this issue into a discussion #1612 on Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions