biblemate 0.0.11__tar.gz → 0.0.15__tar.gz

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.
@@ -0,0 +1,113 @@
1
+ Metadata-Version: 2.1
2
+ Name: biblemate
3
+ Version: 0.0.15
4
+ Summary: BibleMate AI - Automate Your Bible Study
5
+ Home-page: https://toolmate.ai
6
+ Author: Eliran Wong
7
+ Author-email: support@marvel.bible
8
+ License: GNU General Public License (GPL)
9
+ Project-URL: Source, https://github.com/eliranwong/biblemate
10
+ Project-URL: Tracker, https://github.com/eliranwong/biblemate/issues
11
+ Project-URL: Documentation, https://github.com/eliranwong/biblemate/wiki
12
+ Project-URL: Funding, https://www.paypal.me/toolmate
13
+ Keywords: mcp agent toolmate ai anthropic azure chatgpt cohere deepseek genai github googleai groq llamacpp mistral ollama openai vertexai xai
14
+ Classifier: Development Status :: 5 - Production/Stable
15
+ Classifier: Intended Audience :: End Users/Desktop
16
+ Classifier: Topic :: Utilities
17
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
18
+ Classifier: Topic :: Software Development :: Build Tools
19
+ Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
20
+ Classifier: Programming Language :: Python :: 3.8
21
+ Classifier: Programming Language :: Python :: 3.9
22
+ Classifier: Programming Language :: Python :: 3.10
23
+ Classifier: Programming Language :: Python :: 3.11
24
+ Classifier: Programming Language :: Python :: 3.12
25
+ Requires-Python: >=3.8, <3.13
26
+ Provides-Extra: genai
27
+
28
+ # BibleMate AI
29
+
30
+ BibleMate AI is a groundbreaking, autonomous AI agent designed to revolutionize your Bible study. It can create study plans, coordinate multiple Bible tools, and take multi-step actions to complete complex Bible-related tasks, such as conducting an in-depth study of a particular Bible passage.
31
+
32
+ ## Core Features
33
+
34
+ * **Autonomous AI Agent:** BibleMate AI can work independently to fulfill your bible study requests.
35
+ * **Multi-step Task Execution:** It can break down complex tasks into smaller, manageable steps and execute them sequentially.
36
+ * **Rich Toolset:** Comes with over 40 built-in bible tools, powered by our comprehensive bible suite, the [UniqueBible App](https://github.com/eliranwong/UniqueBible).
37
+ * **Customizable and Extensible:** Advanced users can customize existing tools or add new ones to suit their specific needs.
38
+
39
+ ## Built-in Tools
40
+
41
+ To see the full list of built-in tools and their descriptions, please see the [TOOLS.md](TOOLS.md) file.
42
+
43
+ ## Demo
44
+
45
+ See BibleMate AI in action in our YouTube video: [BibleMate AI Demo](https://www.youtube.com/watch?v=2BPZVufnKJU&feature=youtu.be)
46
+
47
+ ## Our Other AI Projects
48
+
49
+ BibleMate AI was developed from our agent development kit (ADK), [AgentMake AI](https://github.com/eliranwong/agentmake), and was a side-project we explored while developing [BibleMate AI](https://github.com/eliranwong/BibleMate). Its success as a bible study tool prompted us to develop it further as a standalone project.
50
+
51
+ ## BibleMate AI Agentic Workflow
52
+
53
+ 1. **BibleMate AI** receives a request from a user.
54
+ 2. **BibleMate AI** analyzes the request and determines that it requires multiple steps to complete.
55
+ 3. **BibleMate AI** generates a `Master Plan` that outlines the steps needed to complete the request.
56
+ 4. **BibleMate AI** sends the `Master Plan` to a supervisor agent, who reviews the prompt and provides suggestions for improvement.
57
+ 5. **BibleMate AI** sends the suggestions to a bible tool selection agent, who selects the most appropriate bible tools for each step of the `Master Plan`.
58
+ 6. **BibleMate AI** sends the selected bible tools and the `Master Plan` to an instruction generation agent, who converts the suggestions into clear and concise instructions for an AI assistant to follow.
59
+ 7. **BibleMate AI** sends the instructions to an AI assistant, who executes the instructions using the selected bible tools.
60
+ 8. **BibleMate AI** monitors the progress of the AI assistant and provides additional suggestions or instructions as needed.
61
+ 9. Once all steps are completed, **BibleMate AI** provides a concise summary of the results to the user.
62
+ 10. The user receives the final response, which fully resolves their original request.
63
+
64
+ ## Getting Started
65
+
66
+ > pip install --upgrade biblemate
67
+
68
+ > biblemate
69
+
70
+ ## Configure AI Backend
71
+
72
+ After BibleMate AI is launched, enter:
73
+
74
+ > .backend
75
+
76
+ A text editor is opened for you to edit the AgentMake AI settings. Change the `DEFAULT_AI_BACKEND` to your own choice of AI backend and enter API keys where appropriate.
77
+
78
+ ## AI Modes
79
+
80
+ You can swap between two AI modes:
81
+
82
+ Chat mode – Provide users with direct text responses without using tools. This is useful when users have simple queries and need straightforward answers.
83
+
84
+ Agent mode - Fully autonomous agent designed to plan, orchestrate tools, and take multiple actions to address user requests.
85
+
86
+ How to swap?
87
+
88
+ * Enter `.chat` in BibleMate AI prompt to enable chat mode and disable agent mode.
89
+ * Enter `.agent` in BibleMate AI prompt to enable agent mode and disable chat mode.
90
+
91
+ ## Action Menu
92
+
93
+ *(Coming soon)*
94
+
95
+ ## Keyboard Shortcut
96
+
97
+ *(Coming soon)*
98
+
99
+ ## Customization
100
+
101
+ *(Coming soon)*
102
+
103
+ ## License
104
+
105
+ This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License - see the [LICENSE](LICENSE) file for details.
106
+
107
+ ## Acknowledgments
108
+
109
+ BibleMate AI is built upon the foundations of our other projects:
110
+ * [UniqueBible App](https.github.com/eliranwong/UniqueBible)
111
+ * [XoMate AI](https.github.com/eliranwong/xomate)
112
+ * [AgentMake AI](https.github.com/eliranwong/agentmake)
113
+ * [AgentMake AI MCP](https.github.com/eliranwong/agentmakemcp)
@@ -0,0 +1,86 @@
1
+ # BibleMate AI
2
+
3
+ BibleMate AI is a groundbreaking, autonomous AI agent designed to revolutionize your Bible study. It can create study plans, coordinate multiple Bible tools, and take multi-step actions to complete complex Bible-related tasks, such as conducting an in-depth study of a particular Bible passage.
4
+
5
+ ## Core Features
6
+
7
+ * **Autonomous AI Agent:** BibleMate AI can work independently to fulfill your bible study requests.
8
+ * **Multi-step Task Execution:** It can break down complex tasks into smaller, manageable steps and execute them sequentially.
9
+ * **Rich Toolset:** Comes with over 40 built-in bible tools, powered by our comprehensive bible suite, the [UniqueBible App](https://github.com/eliranwong/UniqueBible).
10
+ * **Customizable and Extensible:** Advanced users can customize existing tools or add new ones to suit their specific needs.
11
+
12
+ ## Built-in Tools
13
+
14
+ To see the full list of built-in tools and their descriptions, please see the [TOOLS.md](TOOLS.md) file.
15
+
16
+ ## Demo
17
+
18
+ See BibleMate AI in action in our YouTube video: [BibleMate AI Demo](https://www.youtube.com/watch?v=2BPZVufnKJU&feature=youtu.be)
19
+
20
+ ## Our Other AI Projects
21
+
22
+ BibleMate AI was developed from our agent development kit (ADK), [AgentMake AI](https://github.com/eliranwong/agentmake), and was a side-project we explored while developing [BibleMate AI](https://github.com/eliranwong/BibleMate). Its success as a bible study tool prompted us to develop it further as a standalone project.
23
+
24
+ ## BibleMate AI Agentic Workflow
25
+
26
+ 1. **BibleMate AI** receives a request from a user.
27
+ 2. **BibleMate AI** analyzes the request and determines that it requires multiple steps to complete.
28
+ 3. **BibleMate AI** generates a `Master Plan` that outlines the steps needed to complete the request.
29
+ 4. **BibleMate AI** sends the `Master Plan` to a supervisor agent, who reviews the prompt and provides suggestions for improvement.
30
+ 5. **BibleMate AI** sends the suggestions to a bible tool selection agent, who selects the most appropriate bible tools for each step of the `Master Plan`.
31
+ 6. **BibleMate AI** sends the selected bible tools and the `Master Plan` to an instruction generation agent, who converts the suggestions into clear and concise instructions for an AI assistant to follow.
32
+ 7. **BibleMate AI** sends the instructions to an AI assistant, who executes the instructions using the selected bible tools.
33
+ 8. **BibleMate AI** monitors the progress of the AI assistant and provides additional suggestions or instructions as needed.
34
+ 9. Once all steps are completed, **BibleMate AI** provides a concise summary of the results to the user.
35
+ 10. The user receives the final response, which fully resolves their original request.
36
+
37
+ ## Getting Started
38
+
39
+ > pip install --upgrade biblemate
40
+
41
+ > biblemate
42
+
43
+ ## Configure AI Backend
44
+
45
+ After BibleMate AI is launched, enter:
46
+
47
+ > .backend
48
+
49
+ A text editor is opened for you to edit the AgentMake AI settings. Change the `DEFAULT_AI_BACKEND` to your own choice of AI backend and enter API keys where appropriate.
50
+
51
+ ## AI Modes
52
+
53
+ You can swap between two AI modes:
54
+
55
+ Chat mode – Provide users with direct text responses without using tools. This is useful when users have simple queries and need straightforward answers.
56
+
57
+ Agent mode - Fully autonomous agent designed to plan, orchestrate tools, and take multiple actions to address user requests.
58
+
59
+ How to swap?
60
+
61
+ * Enter `.chat` in BibleMate AI prompt to enable chat mode and disable agent mode.
62
+ * Enter `.agent` in BibleMate AI prompt to enable agent mode and disable chat mode.
63
+
64
+ ## Action Menu
65
+
66
+ *(Coming soon)*
67
+
68
+ ## Keyboard Shortcut
69
+
70
+ *(Coming soon)*
71
+
72
+ ## Customization
73
+
74
+ *(Coming soon)*
75
+
76
+ ## License
77
+
78
+ This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License - see the [LICENSE](LICENSE) file for details.
79
+
80
+ ## Acknowledgments
81
+
82
+ BibleMate AI is built upon the foundations of our other projects:
83
+ * [UniqueBible App](https.github.com/eliranwong/UniqueBible)
84
+ * [XoMate AI](https.github.com/eliranwong/xomate)
85
+ * [AgentMake AI](https.github.com/eliranwong/agentmake)
86
+ * [AgentMake AI MCP](https.github.com/eliranwong/agentmakemcp)
@@ -0,0 +1,335 @@
1
+ import logging
2
+ from fastmcp import FastMCP
3
+ from agentmake import agentmake
4
+
5
+ # Configure logging before creating the FastMCP server
6
+ logging.basicConfig(format="[%(levelname)s]: %(message)s", level=logging.ERROR)
7
+
8
+ mcp = FastMCP(name="BibleMate AI")
9
+
10
+ def getResponse(messages:list) -> str:
11
+ return messages[-1].get("content") if messages and "content" in messages[-1] else "Error!"
12
+
13
+ @mcp.tool
14
+ def compare_bible_translations(request:str) -> str:
15
+ """compare Bible translations; bible verse reference(s) must be given"""
16
+ global agentmake, getResponse
17
+ messages = agentmake(request, **{'input_content_plugin': 'uba/every_single_ref', 'tool': 'uba/compare'})
18
+ return getResponse(messages)
19
+
20
+ @mcp.tool
21
+ def retrieve_bible_study_indexes(request:str) -> str:
22
+ """retrieve smart indexes on studying a particular bible verse; bible verse reference must be given"""
23
+ global agentmake, getResponse
24
+ messages = agentmake(request, **{'input_content_plugin': 'uba/every_single_ref', 'tool': 'uba/index'})
25
+ return getResponse(messages)
26
+
27
+ @mcp.tool
28
+ def retrieve_bible_cross_references(request:str) -> str:
29
+ """retrieve cross-references of Bible verses; bible verse reference(s) must be given"""
30
+ global agentmake, getResponse
31
+ messages = agentmake(request, **{'input_content_plugin': 'uba/every_single_ref', 'tool': 'uba/xref'})
32
+ return getResponse(messages)
33
+
34
+ @mcp.tool
35
+ def retrieve_english_bible_verses(request:str) -> str:
36
+ """retrieve English Bible verses; bible verse reference(s) must be given"""
37
+ global agentmake, getResponse
38
+ messages = agentmake(request, **{'tool': 'uba/net'})
39
+ return getResponse(messages)
40
+
41
+ @mcp.tool
42
+ def search_bible_or_run_uba_command(request:str) -> str:
43
+ """search the bible; run UniqueBible App UBA command; either search string or full command must be given"""
44
+ global agentmake, getResponse
45
+ messages = agentmake(request, **{'tool': 'uba/cmd'})
46
+ return getResponse(messages)
47
+
48
+ @mcp.tool
49
+ def read_bible_commentary(request:str) -> str:
50
+ """read bible commentary; bible verse reference(s) must be given"""
51
+ global agentmake, getResponse
52
+ messages = agentmake(request, **{'tool': 'uba/ai_comment'})
53
+ return getResponse(messages)
54
+
55
+ @mcp.tool
56
+ def retrieve_chinese_bible_verses(request:str) -> str:
57
+ """retrieve Chinese Bible verses; bible verse reference(s) must be given"""
58
+ global agentmake, getResponse
59
+ messages = agentmake(request, **{'tool': 'uba/cuv'})
60
+ return getResponse(messages)
61
+
62
+ @mcp.tool
63
+ def refine_bible_translation(request:str) -> str:
64
+ """refine the translation of a Bible verse or passage"""
65
+ global agentmake, getResponse
66
+ messages = agentmake(request, **{'system': 'bible/translate'})
67
+ return getResponse(messages)
68
+
69
+ @mcp.tool
70
+ def write_pastor_prayer(request:str) -> str:
71
+ """write a prayer, out of a church pastor heart, based on user input"""
72
+ global agentmake, getResponse
73
+ messages = agentmake(request, **{'system': 'bible/pray'})
74
+ return getResponse(messages)
75
+
76
+ @mcp.tool
77
+ def ask_theologian(request:str) -> str:
78
+ """ask a theologian about the bible"""
79
+ global agentmake, getResponse
80
+ messages = agentmake(request, **{'system': 'bible/theologian'})
81
+ return getResponse(messages)
82
+
83
+ @mcp.tool
84
+ def quote_bible_verses(request:str) -> str:
85
+ """quote multiple bible verses in response to user request"""
86
+ global agentmake, getResponse
87
+ messages = agentmake(request, **{'system': 'bible/quote'})
88
+ return getResponse(messages)
89
+
90
+ @mcp.tool
91
+ def anyalyze_psalms(request:str) -> str:
92
+ """analyze the context and background of the Psalms in the bible"""
93
+ global agentmake, getResponse
94
+ messages = agentmake(request, **{'system': 'bible/david'})
95
+ return getResponse(messages)
96
+
97
+ @mcp.tool
98
+ def ask_pastor(request:str) -> str:
99
+ """ask a church pastor about the bible"""
100
+ global agentmake, getResponse
101
+ messages = agentmake(request, **{'system': 'bible/billy'})
102
+ return getResponse(messages)
103
+
104
+ @mcp.tool
105
+ def ask_bible_scholar(request:str) -> str:
106
+ """ask a bible scholar about the bible"""
107
+ global agentmake, getResponse
108
+ messages = agentmake(request, **{'system': 'bible/scholar'})
109
+ return getResponse(messages)
110
+
111
+ @mcp.tool
112
+ def explain_bible_meaning(request:str) -> str:
113
+ """Explain the meaning of the user-given content in reference to the Bible"""
114
+ global agentmake, getResponse
115
+ messages = agentmake(request, **{'instruction': 'bible/meaning', 'system': 'auto', 'backend': 'googleai'})
116
+ return getResponse(messages)
117
+
118
+ @mcp.tool
119
+ def write_new_testament_historical_context(request:str) -> str:
120
+ """write the Bible Historical Context of a New Testament passage in the bible; new testament bible book / chapter / passage / reference(s) must be given"""
121
+ global agentmake, getResponse
122
+ messages = agentmake(request, **{'instruction': 'bible/nt_context', 'system': 'auto', 'backend': 'googleai'})
123
+ return getResponse(messages)
124
+
125
+ @mcp.tool
126
+ def write_bible_questions(request:str) -> str:
127
+ """Write thought-provoking questions for bible study group discussion; bible book / chapter / passage / reference(s) must be given"""
128
+ global agentmake, getResponse
129
+ messages = agentmake(request, **{'instruction': 'bible/questions', 'system': 'auto', 'backend': 'googleai'})
130
+ return getResponse(messages)
131
+
132
+ @mcp.tool
133
+ def write_bible_devotion(request:str) -> str:
134
+ """Write a devotion on a bible passage; bible book / chapter / passage / reference(s) must be given"""
135
+ global agentmake, getResponse
136
+ messages = agentmake(request, **{'instruction': 'bible/devotion', 'system': 'auto', 'backend': 'googleai'})
137
+ return getResponse(messages)
138
+
139
+ @mcp.tool
140
+ def translate_hebrew_bible_verse(request:str) -> str:
141
+ """Translate a Hebrew bible verse; Hebrew bible text must be given"""
142
+ global agentmake, getResponse
143
+ messages = agentmake(request, **{'instruction': 'bible/translate_hebrew', 'system': 'auto', 'backend': 'googleai'})
144
+ return getResponse(messages)
145
+
146
+ @mcp.tool
147
+ def write_bible_location_study(request:str) -> str:
148
+ """write comprehensive information on a bible location; a bible location name must be given"""
149
+ global agentmake, getResponse
150
+ messages = agentmake(request, **{'instruction': 'bible/location', 'system': 'auto', 'backend': 'googleai'})
151
+ return getResponse(messages)
152
+
153
+ @mcp.tool
154
+ def translate_greek_bible_verse(request:str) -> str:
155
+ """Translate a Greek bible verse: Greek bible text must be given"""
156
+ global agentmake, getResponse
157
+ messages = agentmake(request, **{'instruction': 'bible/translate_greek', 'system': 'auto', 'backend': 'googleai'})
158
+ return getResponse(messages)
159
+
160
+ @mcp.tool
161
+ def identify_bible_keywords(request:str) -> str:
162
+ """Identify bible key words from the user-given content"""
163
+ global agentmake, getResponse
164
+ messages = agentmake(request, **{'instruction': 'bible/keywords', 'system': 'auto', 'backend': 'googleai'})
165
+ return getResponse(messages)
166
+
167
+ @mcp.tool
168
+ def study_old_testament_themes(request:str) -> str:
169
+ """Study Bible Themes in a Old Testament passage; old testatment bible book / chapter / passage / reference(s) must be given"""
170
+ global agentmake, getResponse
171
+ messages = agentmake(request, **{'instruction': 'bible/ot_themes', 'system': 'auto', 'backend': 'googleai'})
172
+ return getResponse(messages)
173
+
174
+ @mcp.tool
175
+ def study_new_testament_themes(request:str) -> str:
176
+ """Study Bible Themes in a New Testament passage; new testament bible book / chapter / passage / reference(s) must be given"""
177
+ global agentmake, getResponse
178
+ messages = agentmake(request, **{'instruction': 'bible/nt_themes', 'system': 'auto', 'backend': 'googleai'})
179
+ return getResponse(messages)
180
+
181
+ @mcp.tool
182
+ def write_old_testament_highlights(request:str) -> str:
183
+ """Write Highlights in a Old Testament passage in the bible; old testament bible book / chapter / passage / reference(s) must be given"""
184
+ global agentmake, getResponse
185
+ messages = agentmake(request, **{'instruction': 'bible/ot_highligths', 'system': 'auto', 'backend': 'googleai'})
186
+ return getResponse(messages)
187
+
188
+ @mcp.tool
189
+ def write_bible_prayer(request:str) -> str:
190
+ """Write a prayer pertaining to the user content in reference to the Bible"""
191
+ global agentmake, getResponse
192
+ messages = agentmake(request, **{'instruction': 'bible/prayer', 'system': 'auto', 'backend': 'googleai'})
193
+ return getResponse(messages)
194
+
195
+ @mcp.tool
196
+ def write_short_bible_prayer(request:str) -> str:
197
+ """Write a short prayer, in one paragraph only, pertaining to the user content in reference to the Bible"""
198
+ global agentmake, getResponse
199
+ messages = agentmake(request, **{'instruction': 'bible/short_prayer', 'system': 'auto', 'backend': 'googleai'})
200
+ return getResponse(messages)
201
+
202
+ @mcp.tool
203
+ def write_bible_character_study(request:str) -> str:
204
+ """Write comprehensive information on a given bible character in the bible; a bible character name must be given"""
205
+ global agentmake, getResponse
206
+ messages = agentmake(request, **{'instruction': 'bible/character', 'system': 'auto', 'backend': 'googleai'})
207
+ return getResponse(messages)
208
+
209
+ @mcp.tool
210
+ def write_bible_thought_progression(request:str) -> str:
211
+ """write Bible Thought Progression of a bible book / chapter / passage; bible book / chapter / passage / reference(s) must be given"""
212
+ global agentmake, getResponse
213
+ messages = agentmake(request, **{'instruction': 'bible/flow', 'system': 'auto', 'backend': 'googleai'})
214
+ return getResponse(messages)
215
+
216
+ @mcp.tool
217
+ def quote_bible_promises(request:str) -> str:
218
+ """Quote relevant Bible promises in response to user request"""
219
+ global agentmake, getResponse
220
+ messages = agentmake(request, **{'instruction': 'bible/promises', 'system': 'auto', 'backend': 'googleai'})
221
+ return getResponse(messages)
222
+
223
+ @mcp.tool
224
+ def write_bible_chapter_summary(request:str) -> str:
225
+ """Write a detailed interpretation on a bible chapter; a bible chapter must be given"""
226
+ global agentmake, getResponse
227
+ messages = agentmake(request, **{'instruction': 'bible/chapter_summary', 'system': 'auto', 'backend': 'googleai'})
228
+ return getResponse(messages)
229
+
230
+ @mcp.tool
231
+ def write_bible_perspectives(request:str) -> str:
232
+ """Write biblical perspectives and principles in relation to the user content"""
233
+ global agentmake, getResponse
234
+ messages = agentmake(request, **{'instruction': 'bible/perspective', 'system': 'auto', 'backend': 'googleai'})
235
+ return getResponse(messages)
236
+
237
+ @mcp.tool
238
+ def interpret_old_testament_verse(request:str) -> str:
239
+ """Interpret the user-given bible verse from the Old Testament in the light of its context, together with insights of biblical Hebrew studies; an old testament bible verse / reference(s) must be given"""
240
+ global agentmake, getResponse
241
+ messages = agentmake(request, **{'instruction': 'bible/ot_meaning', 'system': 'auto', 'backend': 'googleai'})
242
+ return getResponse(messages)
243
+
244
+ @mcp.tool
245
+ def expound_bible_topic(request:str) -> str:
246
+ """Expound the user-given topic in reference to the Bible; a topic must be given"""
247
+ global agentmake, getResponse
248
+ messages = agentmake(request, **{'instruction': 'bible/topic', 'system': 'auto', 'backend': 'googleai'})
249
+ return getResponse(messages)
250
+
251
+ @mcp.tool
252
+ def write_bible_theology(request:str) -> str:
253
+ """write the theological messages conveyed in the user-given content, in reference to the Bible"""
254
+ global agentmake, getResponse
255
+ messages = agentmake(request, **{'instruction': 'bible/theology', 'system': 'auto', 'backend': 'googleai'})
256
+ return getResponse(messages)
257
+
258
+ @mcp.tool
259
+ def study_bible_themes(request:str) -> str:
260
+ """Study Bible Themes in relation to the user content"""
261
+ global agentmake, getResponse
262
+ messages = agentmake(request, **{'instruction': 'bible/themes', 'system': 'auto', 'backend': 'googleai'})
263
+ return getResponse(messages)
264
+
265
+ @mcp.tool
266
+ def write_bible_canonical_context(request:str) -> str:
267
+ """Write about canonical context of a bible book / chapter / passage; bible book / chapter / passage / reference(s) must be given"""
268
+ global agentmake, getResponse
269
+ messages = agentmake(request, **{'instruction': 'bible/canon', 'system': 'auto', 'backend': 'googleai'})
270
+ return getResponse(messages)
271
+
272
+ @mcp.tool
273
+ def write_bible_related_summary(request:str) -> str:
274
+ """Write a summary on the user-given content in reference to the Bible"""
275
+ global agentmake, getResponse
276
+ messages = agentmake(request, **{'instruction': 'bible/summary', 'system': 'auto', 'backend': 'googleai'})
277
+ return getResponse(messages)
278
+
279
+ @mcp.tool
280
+ def interpret_new_testament_verse(request:str) -> str:
281
+ """Interpret the user-given bible verse from the New Testament in the light of its context, together with insights of biblical Greek studies; a new testament bible verse / reference(s) must be given"""
282
+ global agentmake, getResponse
283
+ messages = agentmake(request, **{'instruction': 'bible/nt_meaning', 'system': 'auto', 'backend': 'googleai'})
284
+ return getResponse(messages)
285
+
286
+ @mcp.tool
287
+ def write_new_testament_highlights(request:str) -> str:
288
+ """Write Highlights in a New Testament passage in the bible; new testament bible book / chapter / passage / reference(s) must be given"""
289
+ global agentmake, getResponse
290
+ messages = agentmake(request, **{'instruction': 'bible/nt_highlights', 'system': 'auto', 'backend': 'googleai'})
291
+ return getResponse(messages)
292
+
293
+ @mcp.tool
294
+ def write_bible_applications(request:str) -> str:
295
+ """Provide detailed applications of a bible passages; bible book / chapter / passage / reference(s) must be given"""
296
+ global agentmake, getResponse
297
+ messages = agentmake(request, **{'instruction': 'bible/application', 'system': 'auto', 'backend': 'googleai'})
298
+ return getResponse(messages)
299
+
300
+ @mcp.tool
301
+ def write_bible_book_introduction(request:str) -> str:
302
+ """Write a detailed introduction on a book in the bible; bible book must be given"""
303
+ global agentmake, getResponse
304
+ messages = agentmake(request, **{'instruction': 'bible/introduce_book', 'system': 'auto', 'backend': 'googleai'})
305
+ return getResponse(messages)
306
+
307
+ @mcp.tool
308
+ def write_old_testament_historical_context(request:str) -> str:
309
+ """write the Bible Historical Context of a Old Testament passage in the bible; old testament bible book / chapter / passage / reference(s) must be given"""
310
+ global agentmake, getResponse
311
+ messages = agentmake(request, **{'instruction': 'bible/ot_context', 'system': 'auto', 'backend': 'googleai'})
312
+ return getResponse(messages)
313
+
314
+ @mcp.tool
315
+ def write_bible_outline(request:str) -> str:
316
+ """provide a detailed outline of a bible book / chapter / passage; bible book / chapter / passage / reference(s) must be given"""
317
+ global agentmake, getResponse
318
+ messages = agentmake(request, **{'instruction': 'bible/outline', 'system': 'auto', 'backend': 'googleai'})
319
+ return getResponse(messages)
320
+
321
+ @mcp.tool
322
+ def write_bible_insights(request:str) -> str:
323
+ """Write exegetical insights in detail on a bible passage; bible book / chapter / passage / reference(s) must be given"""
324
+ global agentmake, getResponse
325
+ messages = agentmake(request, **{'instruction': 'bible/insights', 'system': 'auto', 'backend': 'googleai'})
326
+ return getResponse(messages)
327
+
328
+ @mcp.tool
329
+ def write_bible_sermon(request:str) -> str:
330
+ """Write a bible sermon based on a bible passage; bible book / chapter / passage / reference(s) must be given"""
331
+ global agentmake, getResponse
332
+ messages = agentmake(request, **{'instruction': 'bible/sermon', 'system': 'auto', 'backend': 'googleai'})
333
+ return getResponse(messages)
334
+
335
+ mcp.run(show_banner=False)
@@ -0,0 +1 @@
1
+ agent_mode=True
@@ -1,26 +1,31 @@
1
1
  import os
2
2
  from agentmake import PACKAGE_PATH, AGENTMAKE_USER_DIR, readTextFile
3
+ from pathlib import Path
4
+
5
+ # set up user_directory for customisation
6
+ user_directory = os.path.join(AGENTMAKE_USER_DIR, "biblemate")
7
+ Path(user_directory).mkdir(parents=True, exist_ok=True)
3
8
 
4
9
  def get_system_suggestion(master_plan: str) -> str:
5
10
  """
6
11
  create system prompt for suggestion
7
12
  """
8
- possible_system_file_path_2 = os.path.join(PACKAGE_PATH, "systems", "xomate", "supervisor.md")
9
- possible_system_file_path_1 = os.path.join(AGENTMAKE_USER_DIR, "systems", "xomate", "supervisor.md")
13
+ possible_system_file_path_2 = os.path.join(PACKAGE_PATH, "systems", "biblemate", "supervisor.md")
14
+ possible_system_file_path_1 = os.path.join(AGENTMAKE_USER_DIR, "systems", "biblemate", "supervisor.md")
10
15
  return readTextFile(possible_system_file_path_2 if os.path.isfile(possible_system_file_path_2) else possible_system_file_path_1).format(master_plan=master_plan)
11
16
 
12
17
  def get_system_tool_instruction(tool: str, tool_description: str = "") -> str:
13
18
  """
14
19
  create system prompt for tool instruction
15
20
  """
16
- possible_system_file_path_2 = os.path.join(PACKAGE_PATH, "systems", "xomate", "tool_instruction.md")
17
- possible_system_file_path_1 = os.path.join(AGENTMAKE_USER_DIR, "systems", "xomate", "tool_instruction.md")
21
+ possible_system_file_path_2 = os.path.join(PACKAGE_PATH, "systems", "biblemate", "tool_instruction.md")
22
+ possible_system_file_path_1 = os.path.join(AGENTMAKE_USER_DIR, "systems", "biblemate", "tool_instruction.md")
18
23
  return readTextFile(possible_system_file_path_2 if os.path.isfile(possible_system_file_path_2) else possible_system_file_path_1).format(tool=tool, tool_description=tool_description)
19
24
 
20
25
  def get_system_tool_selection(available_tools: list, tool_descriptions: str) -> str:
21
26
  """
22
27
  create system prompt for tool selection
23
28
  """
24
- possible_system_file_path_2 = os.path.join(PACKAGE_PATH, "systems", "xomate", "tool_selection.md")
25
- possible_system_file_path_1 = os.path.join(AGENTMAKE_USER_DIR, "systems", "xomate", "tool_selection.md")
29
+ possible_system_file_path_2 = os.path.join(PACKAGE_PATH, "systems", "biblemate", "tool_selection.md")
30
+ possible_system_file_path_1 = os.path.join(AGENTMAKE_USER_DIR, "systems", "biblemate", "tool_selection.md")
26
31
  return readTextFile(possible_system_file_path_2 if os.path.isfile(possible_system_file_path_2) else possible_system_file_path_1).format(available_tools=available_tools, tool_descriptions=tool_descriptions)