ax-java-agent

Write Java Ax agent code using generated dev.axllm:ax APIs for typed LLM workflows.

2.9k|186|Updated Feb 23, 2023
One-click install
npx skills add https://github.com/ax-llm/ax --skill ax-java-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ax-java-agent
Source: https://github.com/ax-llm/ax/tree/main/website/static/java/.well-known/agent-skills/ax-java-agent
Command: npx skills add https://github.com/ax-llm/ax --skill ax-java-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers write Java code for Ax agents without mixing in TypeScript-specific patterns, so they can build typed LLM workflows, tool use, and runtime control correctly the first time.

Core Features & Use Cases

  • Agent Construction: Create Java agents with the generated dev.axllm:ax package for structured prompts and typed outputs.
  • Tooling and Delegation: Use tools, child agents, MCP clients, clarification flows, memory, and runtime state for more capable agent behavior.
  • Execution Control: Handle respond, final, and direct-response paths, including skipping the executor stage for no-tool tasks.
  • Use Case: A developer building a Java assistant can use this Skill to implement agent orchestration, preserve state across long tasks, and connect to MCP transports using the correct generated APIs.

Quick Start

Use this skill to write a Java Ax agent that matches the generated package examples, supports tools or MCP when needed, and returns a typed result for the user's task.

Frequently Asked Questions about ax-java-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a Java agent with typed LLM workflows?

To build a Java agent with typed LLM workflows, use the generated dev.axllm:ax package for structured prompts and typed outputs without importing TypeScript-only APIs. This ensures correct agent construction and runtime control.

Can I connect Java agents to MCP clients and external tools?

Yes, Java agents can connect to MCP clients and tools. The Skill supports tooling and delegation using generated Java APIs for MCP transports, enabling more capable agent behavior and external system integration.

How does execution control work for Java agents without tools?

Execution control handles respond, final, and direct-response paths. For no-tool tasks, it skips the executor stage entirely, allowing the Java agent to return a typed result directly without unnecessary processing overhead.

Do I need to avoid TypeScript patterns when writing Java Ax agents?

Yes, you must avoid TypeScript-specific patterns when writing Java Ax agents. The Skill requires using generated Java APIs for agents, transports, and runtime profiles, ensuring type safety and correct runtime behavior.

How do I preserve state and memory across long Java agent tasks?

You preserve state and memory across long Java agent tasks using runtime state management and checkpoints. The Skill provides generated Java APIs to maintain context and orchestrate child agents throughout complex workflows.

What is the best way to implement clarification flows in a Java assistant?

The best way to implement clarification flows in a Java assistant is using the generated dev.axllm:ax package APIs. This supports structured prompts, typed outputs, and specific clarification logic without TypeScript dependencies.