https://github.com/see-quick/ai-stuff
https://github.com/see-quick/ai-stuff
ai ai-agents java ollama
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/see-quick/ai-stuff
- Owner: see-quick
- Created: 2025-01-03T19:02:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-03T21:33:46.000Z (over 1 year ago)
- Last Synced: 2025-02-24T01:50:37.078Z (over 1 year ago)
- Topics: ai, ai-agents, java, ollama
- Language: Java
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ollama Agents in Java
A configurable Java project that leverages [Ollama4J](https://github.com/shibme/ollama4j) to create role-based agents (e.g., Researcher, Reporting Analyst) defined via YAML configurations.
This setup enables flexible and scalable workflows for tasks such as research and report generation.
## Features
- **Config-Driven Agents and Tasks**: Define agents and tasks using YAML files.
- **Role-Specific Responses**: Agents respond based on their defined roles.
- **Automatic Output Handling**: Save task outputs to specified files.
- **Extensible Architecture**: Easily add new agents and tasks through configuration.
## Requirements
- Java 17+
- Ollama server running (e.g., `ollama serve` on your machine)
- Maven
## Usage
1. before executing/starting make sure that you start the Ollama server:
```bash
ollama serve
```mermaid
graph TD
A[Main.java] --> B[CrewOrchestrator.java]
B --> C[YamlLoader.java]
C --> D[agents.yml]
C --> E[tasks.yml]
B --> F[Agent.java]
B --> G[Task.java]
F --> H[OllamaAPI]
G --> F
G --> H
H --> I[Ollama Server]
G --> J[Output Files]
```