forked from agentjido/jido_ai
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
141 lines (127 loc) · 3.77 KB
/
Copy pathmix.exs
File metadata and controls
141 lines (127 loc) · 3.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
defmodule Jido.Ai.MixProject do
use Mix.Project
@version "0.6.0"
@source_url "https://github.com/agentjido/jido_ai"
def project do
[
app: :jido_ai,
version: @version,
elixir: "~> 1.17",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
name: "Jido AI",
description: "Jido Actions and Workflows for interacting with LLMs",
package: package(),
docs: docs(),
source_url: @source_url,
consolidate_protocols: Mix.env() != :test,
# Coverage
test_coverage: [tool: ExCoveralls, export: "cov"],
preferred_cli_env: [
coveralls: :test,
"coveralls.github": :test,
"coveralls.lcov": :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.cobertura": :test
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
mod: {Jido.AI.Application, []},
extra_applications: [:logger]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
require Logger
use_local_deps = System.get_env("LOCAL_JIDO_DEPS") == "true" || false
deps = [
{:dotenvy, "~> 1.1.0"},
{:solid, "~> 1.0"},
{:typed_struct, "~> 0.3.0"},
# Clients
{:req, "~> 0.5.8"},
{:openai_ex, "~> 0.9.0"},
{:instructor, "~> 0.1.0"},
{:langchain, "~> 0.3.1"},
# Testing
{:credo, "~> 1.7", only: [:dev, :test]},
{:dialyxir, "~> 1.4", only: [:dev], runtime: false},
{:doctor, "~> 0.22.0", only: [:dev, :test]},
{:ex_check, "~> 0.12", only: [:dev, :test]},
{:ex_doc, "~> 0.37-rc", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.18.3", only: [:dev, :test]},
{:expublish, "~> 2.5", only: [:dev], runtime: false},
{:git_ops, "~> 2.5", only: [:dev, :test]},
{:igniter, "~> 0.5", only: [:dev, :test]},
{:mimic, "~> 1.7", only: [:dev, :test]},
{:mix_audit, ">= 0.0.0", only: [:dev, :test], runtime: false},
{:mix_test_watch, "~> 1.0", only: [:dev, :test], runtime: false},
{:sobelow, ">= 0.0.0", only: [:dev, :test], runtime: false},
{:stream_data, "~> 1.1", only: [:dev, :test]}
]
if use_local_deps do
require Logger
Logger.warning("Using local Jido dependencies")
deps ++
[
{:jido, path: "../jido"}
# {:jido_memory, path: "../jido_memory"}
]
else
deps ++
[
{:jido, "~> 1.1.0-rc.2"}
# {:jido_memory, github: "agentjido/jido_memory"}
]
end
end
defp aliases do
[
test: "test --trace",
docs: "docs -f html --open",
q: ["quality"],
quality: [
"format",
"format --check-formatted",
"compile --warnings-as-errors",
"dialyzer --format dialyxir",
"credo --all",
"doctor --short --raise",
"docs"
]
]
end
defp package do
[
files: ["lib", "mix.exs", "README.md", "LICENSE.md"],
maintainers: ["Mike Hostetler"],
licenses: ["Apache-2.0"],
links: %{"GitHub" => @source_url}
]
end
defp docs do
[
main: "readme",
source_ref: "v#{@version}",
source_url: @source_url,
extras: [
"README.md",
{"guides/getting-started.md", title: "Getting Started"},
{"guides/keyring.md", title: "Managing Keys"},
{"guides/prompt.md", title: "Prompting"},
{"guides/providers.md", title: "LLM Providers"},
{"guides/agent-skill.md", title: "Agent & Skill"},
{"guides/actions.md", title: "Actions"}
]
]
end
end