Repository navigation
Replies: 7 comments 1 reply
|
Your |
0 replies
|
Yes the aim is UserInput -> Blog -> Quiz
Sorry the invocation was wrong, but even with this invocation, it still
gives "No agent with outputClass class .Quiz found"
var invocation =
AgentInvocation.builder(agentPlatform)
.options(new ProcessOptions().withVerbosity(new
Verbosity().withDebug(true).withShowPlanning(true).withShowPrompts(true)))
.build(Quiz.class);Quiz quiz = invocation.invoke(new
UserInput("Generate quiz for this article:
https://www.baeldung.com/spring-ai-model-context-protocol-mcp"));
System.out.println(quiz);
…On Fri, 30 Jan 2026 at 02:45, Rod Johnson ***@***.***> wrote:
Your AchievesGoal annotation is on a method that returns Quiz not
Quiz.Blog
—
Reply to this email directly, view it on GitHub
<#1345 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJQ5RJBBB76S5PBXPSRTEJD4JKZVBAVCNFSM6AAAAACTHL5T3KVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKNRUGU4TOOA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
0 replies
|
This looks like it should work. Can you please share the repo, and I'll take a look? |
0 replies
|
expensetracker.zip This is it, the two agents declared in the project has same issue. |
1 reply
|
No, not yet.
…On Tue, Feb 3, 2026, 14:24 Rayyan ***@***.***> wrote:
@itaske <https://github.com/itaske> did you get this issue resolved? I'm
having a similar issue.
—
Reply to this email directly, view it on GitHub
<#1345 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJQ5RJBOTME3JQASFBN5OZT4KCORFAVCNFSM6AAAAACTHL5T3KVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKNRYGM4DQMQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
0 replies
|
Worked for me after removing |
0 replies
|
Yes, you are right, it worked for me too. Thanks @syedyusufh |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I keep getting this error message "No agent with outputClass class Quiz$Blog found." though i have agents with the exact output. I am using 0.3.4-snapshot
class.
`@Agent(
name = "quizzard",
description = "Generate multiple choice quizzes from documents"
)
class QuizGeneratorAgent {
}
record Quiz(List questions) {
}`
using this code snippet to invoke
`var invocation =
AgentInvocation.builder(agentPlatform)
.options(new ProcessOptions().withVerbosity(new Verbosity().withDebug(true).withShowPlanning(true).withShowPrompts(true)))
.build(Quiz.Blog.class);
Quiz.Blog blog = invocation.invoke(new UserInput("Generate quiz for this article: https://www.baeldung.com/spring-ai-model-context-protocol-mcp"));
All reactions