This guide explains how to integrate the AgentScope Java framework documentation with AI-powered code editors.
- Cursor - AI-first code editor
- Windsurf - AI coding assistant
- GitHub Copilot with custom documentation
- Continue in VS Code
- Other editors supporting context documentation
- Open Cursor Settings (⌘/Ctrl + ,)
- Navigate to Features → Docs
- Click "+ Add new Doc"
- Paste the documentation URL:
https://raw.githubusercontent.com/agentscope-ai/agentscope-java/main/docs/llm/agentscope-llm-guide.md - Click "Add"
When writing code, load the documentation by:
- Type
@in the chat - Select "Docs"
- Choose "AgentScope Java" from the list
- Ask your question or request code generation
@docs Create a ReActAgent with tools for weather and calculation @docs Show me how to implement streaming responses @docs Set up RAG with local documents @docs Configure long-term memory with Mem0 - Open Windsurf settings
- Go to AI → Context
- Add documentation file path or URL
- Save configuration
Using AgentScope Java framework, create an agent with tool calling capability - Create
.copilot/docs/directory in your project root - Copy
agentscope-llm-guide.mdto this directory - Copilot will automatically index it
Add a reference to the guide in your repository's Copilot instructions.
Install from VS Code marketplace: Continue
Edit .continue/config.json:
{ "docs": [ { "title": "AgentScope Java", "startUrl": "https://raw.githubusercontent.com/agentscope-ai/agentscope-java/main/docs/llm/agentscope-llm-guide.md" } ] }Type @docs AgentScope Java in Continue chat to load context.
If you prefer local access:
-
Clone the repository:
git clone https://github.com/agentscope-ai/agentscope-java.git
-
Reference the local file in your IDE settings:
file:///path/to/agentscope-java/docs/llm/agentscope-llm-guide.md
Copy the guide to your project:
mkdir -p .copilot/docs curl -o .copilot/docs/agentscope-guide.md \ https://raw.githubusercontent.com/agentscope-ai/agentscope-java/main/docs/llm/agentscope-llm-guide.md❌ Bad: "Create an agent" ✅ Good: "Create a ReActAgent with DashScope model, weather tool, and streaming enabled"
@docs Create an agent using: - Model: DashScope qwen3-max - Memory: AutoContextMemory with compression - Tools: weather and calculation - Mode: streaming Start simple, then add features:
1. @docs Create basic ReActAgent 2. @docs Add tool calling capability 3. @docs Enable streaming responses 4. @docs Add long-term memory @docs Explain how the ReAct loop works @docs What's the difference between AGENTIC and GENERIC RAG mode? @docs Show best practices for tool design 1. @docs Show minimal AgentScope Java setup with Maven 2. @docs Create a basic chat agent with DashScope 3. @docs Add tool calling for web search and calculation 4. @docs Implement streaming responses @docs I have a ReActAgent. Show me how to: 1. Add local knowledge base 2. Configure document chunking 3. Use AGENTIC mode for retrieval @docs Create a multi-agent system where: - Agent A generates content - Agent B reviews it - Agent C makes final edits Use SequentialPipeline @docs Show production-ready agent with: - Error handling - Session persistence - Logging hooks - Resource cleanup Cursor:
- Check internet connection for URL-based docs
- Verify URL is correct
- Try re-adding the documentation
Local Files:
- Verify file path is correct
- Check file permissions
- Ensure file is readable
-
Explicitly reference with @docs
- Type
@and select documentation
- Type
-
Include framework name in prompt
- "Using AgentScope Java framework..."
-
Be specific about components
- Mention specific classes like "ReActAgent", "Toolkit"
-
Check imports
- Ensure all imports use
io.agentscope.core.*
- Ensure all imports use
-
Verify Builder pattern usage
- All objects use
.builder()...build()
- All objects use
-
Review reactive programming
- Proper use of Mono/Flux and
.block()
- Proper use of Mono/Flux and
I'm building a customer service chatbot that needs: - Multi-turn conversations with memory - Access to FAQ knowledge base - Ability to search products - Session persistence @docs Show me the agent setup @docs Explain when to use AutoContextMemory vs InMemoryMemory @docs What are the tradeoffs between RAG modes? @docs Show complete working example of agent with: - Error handling - Streaming - Multiple tools - Logging @docs Improve this agent code to add: - Better error handling - Resource cleanup - Tool execution logging The LLM guide is maintained in the AgentScope Java repository:
- Location:
docs/llm/agentscope-llm-guide.md - Updates: Synchronized with framework releases
- Issues: Report via GitHub Issues
To get the latest version:
curl -O https://raw.githubusercontent.com/agentscope-ai/agentscope-java/main/docs/llm/agentscope-llm-guide.mdHelp improve the LLM guide:
- Report Issues: Missing information, errors, unclear explanations
- Suggest Examples: Common use cases that should be documented
- Contribute: Submit PRs with improvements
See CONTRIBUTING.md for guidelines.
- Full Documentation: https://java.agentscope.io/
- GitHub Repository: https://github.com/agentscope-ai/agentscope-java
- Examples: Check
agentscope-examples/in the repository - Discord Community: https://discord.gg/eYMpfnkG8h
Q: Does this work with all AI assistants? A: Most modern AI code assistants support custom documentation. The exact setup varies by tool.
Q: Can I modify the guide for my team? A: Yes! Fork the repository and customize. Consider contributing improvements back.
Q: How often is the guide updated? A: The guide is updated with each framework release and when significant features are added.
Q: What if the AI generates incorrect code? A: Always review generated code. Report persistent issues to improve the guide.
Q: Can I use this offline? A: Yes, download the guide locally and reference it in your IDE settings.
Happy coding with AgentScope Java! 🚀