Packages
Client for System One decision models (TypeSafe Jev, Cloudflare Clef, OpenAI Decisions, OpenRouter, self-hosted): typed Choice, Noul and Score answers with full probability distributions, a behaviour and stub for tests.
Current section
Files
Jump to
Current section
Files
system_one_client
mix.exs
mix.exs
defmodule SystemOneClient.MixProject do
use Mix.Project
@version "0.3.0"
@source_url "https://github.com/schainks/system_one_client"
def project do
[
app: :system_one_client,
version: @version,
elixir: "~> 1.18",
start_permanent: Mix.env() == :prod,
deps: deps(),
description:
"Client for System One decision models (TypeSafe Jev, Cloudflare Clef, OpenAI Decisions, OpenRouter, self-hosted): " <>
"typed Choice, Noul and Score answers with full probability distributions, a behaviour and stub for tests.",
package: package(),
docs: docs(),
dialyzer: [
plt_local_path: "priv/plts",
plt_core_path: "priv/plts",
flags: [:unmatched_returns, :error_handling, :extra_return, :missing_return]
],
name: "SystemOneClient",
source_url: @source_url
]
end
def application, do: [extra_applications: [:logger]]
def cli do
[preferred_envs: [docs: :docs, "hex.publish": :docs]]
end
defp deps do
[
{:req, "~> 0.5"},
{:jason, "~> 1.4"},
{:telemetry, "~> 1.3"},
{:plug, "~> 1.16", only: :test},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.34", only: :docs, runtime: false}
]
end
defp package do
[
licenses: ["Apache-2.0"],
links: %{
"GitHub" => @source_url,
"Changelog" => "https://hexdocs.pm/system_one_client/changelog.html"
},
files: ~w(lib mix.exs README.md CHANGELOG.md LICENSE)
]
end
defp docs do
[
main: "readme",
extras: ["README.md", "CHANGELOG.md"],
source_ref: "v#{@version}",
groups_for_modules: [
Client: [SystemOneClient, SystemOneClient.HTTP],
Providers: [SystemOneClient.Provider, SystemOneClient.Wire.OpenAIDecisions],
Answers: [
SystemOneClient.Answer,
SystemOneClient.Answer.Choice,
SystemOneClient.Answer.Noul,
SystemOneClient.Answer.Score,
SystemOneClient.Answer.Refusal
],
Testing: [SystemOneClient.Stub]
]
]
end
end