shroom-baikai: The baikai transport adapter for shroom

[ ai, bsd3, library, program ] [ Propose Tags ] [ Report a vulnerability ]

shroom-baikai implements the Backend interface of shroom by interpreting the Baikai effect of baikai-effectful, so a shroom program runs unchanged against Claude (baikai-claude) or any OpenAI-compatible host, including a local Ollama (baikai-openai). Front-door constructors build a backend from an API key or a base URL and a model name; a program that needs a different transport interprets the effect itself. Use it with shroom, which holds the prompt monad, and shroom-class, which describes the types.

Modules

  • Control
    • Monad
      • Prompt
        • Control.Monad.Prompt.Baikai

Flags

Manual Flags

NameDescriptionDefault
anthropic

Build shroom-test-integration-claude, which calls the real Anthropic API and needs ANTHROPIC_API_KEY.

Enabled
ollama

Build shroom-test-integration-ollama, which needs a reachable Ollama server.

Enabled
online

Master switch for the test suites that need network or an external service. Off under nix, where the sandbox has no network.

Enabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0
Change log CHANGELOG.md
Dependencies aeson (>=2.2 && <2.3), baikai (>=0.7.0 && <0.12), baikai-claude (>=0.7.0 && <0.8), baikai-effectful (>=0.4.0 && <0.6), baikai-openai (>=0.7.0 && <0.8), base (>=4.20 && <4.22), effectful (>=2.7 && <2.8), generics-sop (>=0.5.1 && <0.6), openapi3 (>=3.2 && <3.3), shroom (>=0.1 && <0.2), shroom-baikai, tasty (>=1.4 && <1.6), tasty-hunit (>=0.10 && <0.11), text (>=2.1.2 && <2.2), time (>=1.14 && <1.15), vector (>=0.13 && <0.14) [details]
Tested with ghc ==9.12
License BSD-3-Clause
Author Manuel Bärenz
Maintainer programming@manuelbaerenz.de
Uploaded by turion at 2026-11-27T12:25:40Z
Category AI
Distributions
Executables shroom-conference-claude
Downloads 2 total (2 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2026-11-27 [all 2 reports]