prescient 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.dockerignore +18 -0
- data/CHANGELOG.md +42 -0
- data/Dockerfile +45 -0
- data/INTEGRATION_GUIDE.md +122 -11
- data/README.md +243 -24
- data/docker-compose.api.yml +21 -0
- data/docker-compose.yml +22 -0
- data/examples/README.md +51 -0
- data/examples/rest_api.ru +30 -0
- data/examples/web_search.rb +34 -0
- data/lib/prescient/api.rb +337 -0
- data/lib/prescient/cli.rb +136 -6
- data/lib/prescient/client.rb +26 -0
- data/lib/prescient/configuration_loader.rb +171 -0
- data/lib/prescient/errors.rb +12 -0
- data/lib/prescient/provider/openai.rb +0 -2
- data/lib/prescient/tool/search_api.rb +126 -0
- data/lib/prescient/tool/searxng.rb +124 -0
- data/lib/prescient/tool.rb +123 -0
- data/lib/prescient/version.rb +1 -1
- data/lib/prescient.rb +71 -1
- data/schema/prescient.configuration.schema.json +119 -0
- data/searxng/settings.yml +18 -0
- data/sig/prescient.rbs +62 -0
- metadata +16 -5
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: prescient
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ken C. Demanawa
|
|
@@ -23,9 +23,10 @@ dependencies:
|
|
|
23
23
|
- - ">="
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
25
|
version: 0.24.0
|
|
26
|
-
description:
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
description: |
|
|
27
|
+
Prescient provides a consistent Ruby API, CLI, or REST API for AI providers including
|
|
28
|
+
Ollama, OpenAI, Anthropic, Hugging Face, Google Gemini, Mistral, DeepSeek, and xAI,
|
|
29
|
+
with provider selection, retries, health checks, and fallback across configured providers.
|
|
29
30
|
email:
|
|
30
31
|
- kenneth.c.demanawa@gmail.com
|
|
31
32
|
executables:
|
|
@@ -33,11 +34,13 @@ executables:
|
|
|
33
34
|
extensions: []
|
|
34
35
|
extra_rdoc_files: []
|
|
35
36
|
files:
|
|
37
|
+
- ".dockerignore"
|
|
36
38
|
- ".env.example"
|
|
37
39
|
- ".rubocop.yml"
|
|
38
40
|
- ".yardopts"
|
|
39
41
|
- CHANGELOG.md
|
|
40
42
|
- CODE_OF_CONDUCT.md
|
|
43
|
+
- Dockerfile
|
|
41
44
|
- Dockerfile.example
|
|
42
45
|
- INTEGRATION_GUIDE.md
|
|
43
46
|
- LICENSE.txt
|
|
@@ -50,14 +53,18 @@ files:
|
|
|
50
53
|
- db/init/03_create_indexes.sql
|
|
51
54
|
- db/init/04_insert_sample_data.sql
|
|
52
55
|
- db/migrate/001_create_prescient_tables.rb
|
|
56
|
+
- docker-compose.api.yml
|
|
53
57
|
- docker-compose.yml
|
|
54
58
|
- examples/README.md
|
|
55
59
|
- examples/basic_usage.rb
|
|
56
60
|
- examples/custom_contexts.rb
|
|
57
61
|
- examples/custom_prompts.rb
|
|
62
|
+
- examples/rest_api.ru
|
|
58
63
|
- examples/vector_search.rb
|
|
64
|
+
- examples/web_search.rb
|
|
59
65
|
- exe/prescient
|
|
60
66
|
- lib/prescient.rb
|
|
67
|
+
- lib/prescient/api.rb
|
|
61
68
|
- lib/prescient/base.rb
|
|
62
69
|
- lib/prescient/cli.rb
|
|
63
70
|
- lib/prescient/client.rb
|
|
@@ -72,9 +79,13 @@ files:
|
|
|
72
79
|
- lib/prescient/provider/ollama.rb
|
|
73
80
|
- lib/prescient/provider/openai.rb
|
|
74
81
|
- lib/prescient/provider/xai.rb
|
|
82
|
+
- lib/prescient/tool.rb
|
|
83
|
+
- lib/prescient/tool/search_api.rb
|
|
84
|
+
- lib/prescient/tool/searxng.rb
|
|
75
85
|
- lib/prescient/version.rb
|
|
76
86
|
- schema/prescient.configuration.schema.json
|
|
77
87
|
- scripts/setup-ollama-models.sh
|
|
88
|
+
- searxng/settings.yml
|
|
78
89
|
- sig/prescient.rbs
|
|
79
90
|
homepage: https://kanutocd.github.io/prescient
|
|
80
91
|
licenses:
|
|
@@ -101,5 +112,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
101
112
|
requirements: []
|
|
102
113
|
rubygems_version: 4.0.16
|
|
103
114
|
specification_version: 4
|
|
104
|
-
summary: A boring AI provider
|
|
115
|
+
summary: A boring AI provider gateway for Ruby
|
|
105
116
|
test_files: []
|