Hacker Newsnew | past | comments | ask | show | jobs | submit | calcsam's commentslogin

interesting idea, this benchmark maps fairly closely to the types of output I typically ask LLMs to generate for me day-to-day


ayy great to hear!


awesome! let us know how it goes


1. what are you wanting to create?

currently agents and workflow endpoints are created at `/api/workflows/workflow-id` and `/api/agents/agent-id/` for workers and agents

2. we are thinking about it -- curious what you'd use it for?



Agentic's tool library _should_ also work for Mastra via its AI SDK adapter.

(We haven't tested this, so if you do try let us know if you see quirks!)


What about Toolhouse and/or composeio?


in npm there's a mastra/composeio package that might work, they also seem to have some mcp support


Thanks! The conditional `when` clauses live on the steps, rather than being represented in the workflow, and in fact when we built this for an example, the last step being called depended on the results of the previous two steps.

How would you simplify this?


I think the problem is that a 'fluent' chain of calls already expresses a sequence, so the way that 'after' resets the context to start a new branch feels very awkward ... like a GOTO or something

It's telling that the example relies on arbitrary indentation (which a linter will get rid of) to have some hope of comprehending it

Possibly this was all motivated by a desire to avoid nested structures above all?

But for a branching graph a nested structure is more natural. It'd also probably be nicer if the methods were on the task nodes instead of on the workflow, then you could avoid the 'step'/'then' distinction and have something like:

e.g.

    testWorkflow(
        llm
        .then(decider)
        .then(
            agentOne.then(workflow),
            agentTwo.then(workflow),
        )
    )


You’re right that the syntax was inspired by the desire to avoid nested structures. But the syntax here is interesting as well and fairly readable. Worth thinking about!


that example syntax is loosely based on CDK code for AWS Step Functions, since I had to write some recently

essentially you're building a DAG so it could be worth checking some other APIs which do a similar thing for inspiration

e.g. it looks like in Airflow you could write it as:

    chain(llm, decider, [agentOne, agentTwo], workflow)
https://airflow.apache.org/docs/apache-airflow/stable/core-c...


I think it is just easier to comprehend if the edges/dependencies are explicit (as an array for example).


We have a ticket to allow this actually!


Some people don't like frameworks. Some people do. We have a little bit of experience building frameworks, so we figured we'd build a good one.


I love frameworks :)


thanks!!


thank you!


let us know what you think!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: