An open API service indexing awesome lists of open source software.

https://github.com/aisk/hasuke

A simple and naive agent implemented in Haskell
https://github.com/aisk/hasuke

agent clawdbot

Last synced: 2 months ago
JSON representation

A simple and naive agent implemented in Haskell

Awesome Lists containing this project

README

          

# ใƒใ‚นใ‚ฑ(Hasuke)

> A simple, lightweight AI Agent written in Haskell.

## ๐Ÿ› ๏ธ Installation

```bash
# Build with Stack
stack build

# Set your Anthropic API key
export ANTHROPIC_API_KEY=...

# Set different LLM provider
export ANTHROPIC_BASE_URL=https://...

# Run
stack run
```

> **Note**: You can also use `ANTHROPIC_AUTH_TOKEN` for authentication.

## ๐Ÿ“ Project Structure

```
hasuke/
โ”œโ”€โ”€ app/Main.hs -- Entry point
โ”œโ”€โ”€ src/
โ”‚ โ”œโ”€โ”€ Types.hs -- Core type definitions
โ”‚ โ”œโ”€โ”€ Tool.hs -- Tool registry & built-in tools
โ”‚ โ”œโ”€โ”€ Provider.hs -- LLM Provider interface (Anthropic)
โ”‚ โ””โ”€โ”€ Agent.hs -- Agent core logic & turn handling
โ””โ”€โ”€ hasuke.cabal -- Package config
```

## ๐Ÿ“ License

MIT