Skip to main content

24 docs tagged with "integration"

View all tags

A2A Protocol (Agent-to-Agent)

Discover agents, exchange JSON-RPC tasks, stream SSE updates, and expose your ai4j agent as an A2A service with optional auth — JDK stdlib only.

ACP integration

Explains the real wiring of ACP as a headless host for IDEs/desktop shells: newline-delimited JSON-RPC, session lifecycle RPCs, available_commands_update, session/load replay, and the server-side reverse session/request_permission.

Agent Sandbox SPI

Introduces the ai4j-agent Sandbox SPI: how the SandboxProvider/SandboxSession contract hands execution off to an isolated environment, how AgentSessionSandboxBinding keeps only a non-sensitive summary, the three official real providers (Daytona, E2B, CubeSandbox), and how AgentBuilder/CodingAgentBuilder consume the sandbox.

AgentFlow Auto-Configuration

Explains how ai.agentflow.* auto-configures the multi-profile AgentFlow registry (AgentFlowRegistry) under Spring Boot to wire external workflow platforms such as Coze, Dify, and N8N into ai4j, plus the resolution rules for default-name, conditional beans, and the default AgentFlow.

Ask User Plugin

Explains the ai4j-plugin-ask-user sample plugin: it expresses the human confirmation an Agent needs as a host-mediated JSON envelope, contributes the ask_user tool and command/Skill/Prompt resources, and itself opens no UI, reads no stdin, and does not block — the host decides presentation and recovery.

CubeSandbox Provider

CubeSandboxProvider is AI4J's first real remote sandbox adapter, mapping SandboxProvider/SandboxSession to the CubeSandbox CubeAPI control plane and the envd execution API.

Dynamic Workflow Plugin

Explains the ai4j-plugin-dynamic-workflow sample plugin: the model writes complex tasks as a deterministic workflow script, the plugin only returns a host-mediated request envelope, and actual execution is optionally taken over by the ai4j-agent runtime; the built-in Nashorn executor disables Java interop by default.

Flowgram MySQL Task Store

A JDBC persistence solution for promoting FlowGram from a single-process demo to a platform backend, covering the task lifecycle and the task store boundary.

Integrating Third-Party MCP (All Approaches)

Breaks down the 5 integration depths for third-party MCP in AI4J: single-client direct connection, config-driven gateway, runtime dynamic add/remove, user-level isolation, and the Agent exposure allowlist, with common pitfalls.

MCP Integration

How MCP becomes a live tool surface in the Coding Agent: two-layer config (global definition + workspace enablement), five server runtime states, tool name collision checks, and the independent per-session MCP injection path under ACP.

MySQL Dynamic MCP Service Management

AI4J does not ship a built-in MySQL configuration center, but it reserves the McpConfigSource and McpGatewayConfigSourceBinding extension points; this page covers how to implement a database configuration source and round out naming, secret, and audit governance.

Pinecone Vector Workflow

The standard approach for building an ingestion, retrieval, and rerank workflow on a Pinecone backend — covers namespace-based knowledge isolation and unified abstraction boundaries.

Plugin Lifecycle Hooks

Explains the Agent lifecycle hooks in ai4j-extension-api: how plugins observe events such as BEFORE_TURN/BEFORE_MODEL_REQUEST/BEFORE_TOOL_CALL/ON_COMPACT, the event payload, exception strategy, and the distinction from Guardrails.

Sandbox Routing

Explains how ai4j-coding routes the Coding Agent's bash exec to a live SandboxSession (P3 first slice), covering the current API, unrouted tools, the relationship with approval, and the security boundary of non-sensitive sandbox summaries.

SearXNG Web Search

An enhancement that adds real-time public web search to the answer chain, covering SearXNG configuration, its boundary with RAG, and fallback strategies.

SPI Dispatcher ConnectionPool

AI4J HTTP stack extension approach: govern production concurrency, connection pools, and network isolation via the DispatcherProvider and ConnectionPoolProvider SPIs.

Spring Boot Auto Configuration

Deep dive into the real auto-configuration chain of ai4j-spring-boot-starter, its initialization order and conditional configuration boundaries, to understand the unified Configuration and the failure propagation paths.

Spring Boot Bean Extension

Explains when to override default Beans along AI4J's abstraction layers in Spring Boot, which layer to choose, and typical override points, so you avoid bypassing the unified container model.

Spring Boot Common Patterns

Summarizes the recommended layering and engineering organization patterns for integrating AI4J with Spring Boot, drawing clear boundaries between Web, AI4J calls, and Tools, RAG, and Workflow responsibilities.

Spring Boot JDBC Agent Memory

A solution for persisting agent sessions to JDBC, covering cross-instance recovery of tool results, runtime state, and compaction summaries.

Spring Boot MySQL Chat Memory

A multi-turn chat session persistence solution based on Spring Boot + MySQL, covering JdbcChatMemory wiring, sessionId binding, and trimming policies.

Spring Boot Overview

Overview of ai4j-spring-boot-starter: when to use it, the minimum integration path, auto-configured capabilities and extension points, plus a pre-launch checklist.

Streamable HTTP

Streamable HTTP transport for AI4J MCP: AUTO profile discovery, modern vs initialization-era peers, protocol headers, publishing a server, and upgrade paths.