This directory contains example applications demonstrating various features and capabilities of the Arc framework.
-
AgentServer.kt
- Demonstrates how to run an Agent server with a web interface
- Creates a simple weather assistant using GPT-4o
- Web interface accessible at http://localhost:8080/chat/index.html#/chat
-
AgentScriptServer.kt
- Demonstrates how to run Agents defined in Kotlin script files.
- Uses hot reloading for agents from the "examples/agents" directory.
- Web interface accessible at http://localhost:8080/chat/index.html#/chat
-
McpAgent.kt
- Demonstrates how to connect an Agent to tools hosted on an MCP (Model Control Protocol) server.
- Uses the "getBooks" tool from the MCP server
- Requires McpApplication to be running
-
OllamaAgent.kt
- Demonstrates how to connect an Agent to the Ollama server (a local LLM server)
-
OpenAIAgent.kt
- Demonstrates how to connect an Agent to the OpenAI API.
-
ContextAgent.kt
- Demonstrates how to provide Agents with access to external beans / components.