Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guides writing Java code for the AgentScope framework, covering reactive agents, LLM models, tools, hooks, and multi-agent orchestration.
41% 95%+55 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 9 of 22 without it.
3 of 3 safety checks passed
Not used yet
When the user asks you to write AgentScope Java code, follow these instructions carefully.
🚫 ABSOLUTELY FORBIDDEN:
.block() in example code - This is the #1 mistake. Only use .block() in main() methods or test code when explicitly creating a runnable example.Thread.sleep() - Use Mono.delay() instead.ThreadLocal - Use Reactor Context with Mono.deferContextual().System.getenv().io.agentscope.core.model.*; provider models are in io.agentscope.extensions.model.<provider>.*.✅ ALWAYS DO:
Mono and Flux for all asynchronous operations..map(), .flatMap(), .then()..onErrorResume() or .onErrorReturn().import io.agentscope.extensions.model.dashscope.DashScopeChatModel;toolkit.registerTool() NOT registerObject()toolkit.getToolNames() NOT getTools()event.getToolUse().getName() NOT getToolName()result.getOutput() NOT getContent() (ToolResultBlock)event.getToolResult() NOT getResult() (PostActingEvent)toolUse.getInput() NOT getArguments() (ToolUseBlock)temperature() method, use defaultOptions(GenerateOptions.builder()...)getMessages(), getResponse(), getIterationCount(), getThinkingBlock() methodsgetToolUseName() method, use event.getToolUse().getName() insteadList<ContentBlock> NOT String, need to convert@ToolParam(name = "x", description = "y") NOT @ToolParam(name="x")FIRST: Identify the context
main() method or test code? → .block() is allowed (but add a warning comment).block() is FORBIDDENNext to this one in the catalogue, plus more from the same author.