packages feed

agentic-anthropic-0.2.0.0: agentic-anthropic.cabal

cabal-version:      3.0
name:               agentic-anthropic
version:            0.2.0.0
synopsis:           Claude as the System Two provider for agentic
description:
  Runs agentic's draft steps on Claude through the Messages API, with strict structured outputs and tools, and can stand in as System One.
license:            BSD-2-Clause
license-file:       LICENSE
author:             Tom Wells
maintainer:         drshade@gmail.com
copyright:          2026 Tom Wells
category:           AI
homepage:           https://github.com/drshade/haskell-agentic
bug-reports:        https://github.com/drshade/haskell-agentic/issues
build-type:         Simple
extra-doc-files:    CHANGELOG.md
tested-with:        GHC ==9.6.7 || ==9.8.4 || ==9.10.3 || ==9.12.2 || ==9.14.1

source-repository head
  type:     git
  location: https://github.com/drshade/haskell-agentic.git
  subdir:   agentic-anthropic

common shared
  default-language: GHC2021
  default-extensions:
    DeriveAnyClass
    DuplicateRecordFields
    LambdaCase
    NoFieldSelectors
    OverloadedRecordDot
    OverloadedStrings
  ghc-options:      -Wall

library
  import:           shared
  hs-source-dirs:   src
  exposed-modules:  Agentic.Anthropic
  build-depends:
    , agentic          ==0.2.*
    , agentic-aeson    ==0.2.*
    , aeson            >=2.1 && <2.3
    , base             >=4.18 && <5
    , bytestring       >=0.11 && <0.13
    , http-client      >=0.7 && <0.8
    , http-client-tls  >=0.3 && <0.4
    , http-types       >=0.12 && <0.13
    , text             >=2.0 && <2.2
test-suite agentic-anthropic-test
  import:           shared
  type:             exitcode-stdio-1.0
  hs-source-dirs:   test
  main-is:          Spec.hs
  build-depends:
    , agentic          ==0.2.*
    , agentic-aeson    ==0.2.*
    , agentic-anthropic ==0.2.*
    , aeson            >=2.1 && <2.3
    , base             >=4.18 && <5
    , hspec            >=2.10 && <3
    , text             >=2.0 && <2.2
-- Calls the real API. Pending unless ANTHROPIC_API_KEY is set (in the environment or .env).
test-suite agentic-anthropic-live
  import:           shared
  type:             exitcode-stdio-1.0
  hs-source-dirs:   test-live
  main-is:          Live.hs
  build-depends:
    , agentic          ==0.2.*
    , agentic-anthropic ==0.2.*
    , agentic-io       ==0.2.*
    , base             >=4.18 && <5
    , hspec            >=2.10 && <3
    , text             >=2.0 && <2.2