Skip to content

Commit 8f752ba

Browse files
authored
Merge pull request #94 from INCATools/llm
Added `llm-change-agent`
2 parents c05a9db + b765354 commit 8f752ba

File tree

6 files changed

+3549
-739
lines changed

6 files changed

+3549
-739
lines changed

.github/workflows/new-pr-java.yml

+16-3
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,23 @@
3636

3737
# // Function to check for the phrase in bodyText and comments
3838
# function checkForPhrase(bodyText, comments) {
39-
# const phrase = 'hey ontobot';
40-
39+
# const regex = /hey\s*[^a-zA-Z0-9]*\s*ontobot/i;
40+
4141
# // Check if bodyText includes the phrase
42-
# let result = bodyText.includes(phrase);
42+
# let result = regex.test(bodyText);
43+
44+
# // If not found in bodyText, check in comments
45+
# if (!result && comments) {
46+
# for (const comment of comments) {
47+
# if (regex.test(comment.body)) {
48+
# result = true;
49+
# break;
50+
# }
51+
# }
52+
# }
53+
54+
# return result;
55+
# }
4356

4457
# // Check each comment
4558

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
<img src="https://github.com/INCATools/ontobot-change-agent/raw/main/docs/source/logo.png" height="150">
44
</p>
55
-->
6+
## ontobot-change-agent
7+
8+
[![DOI](https://zenodo.org/badge/513320955.svg)](https://zenodo.org/doi/10.5281/zenodo.13693637)
69

710
Update ontologies using change language.
811

docs/installation.rst

+35
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,38 @@ To install in development mode, use the following:
2020
$ git clone git+https://github.com/INCATools/ontobot-change-agent.git
2121
$ cd ontobot-change-agent
2222
$ poetry install
23+
24+
New Features
25+
------------
26+
27+
.. important::
28+
29+
In order to make `ontobot-change-agent` capable of using llm models, you could install it with the optional
30+
dependency package `llm-change-agent`. This feature is in early development and is not yet ready for general use.
31+
32+
To install using pip:
33+
34+
.. code-block:: shell
35+
36+
$ pip install ontobot_change_agent[llm]
37+
38+
OR
39+
40+
.. code-block:: shell
41+
42+
$ pip install git+https://github.com/INCATools/ontobot-change-agent.git#egg=ontobot_change_agent[llm]
43+
44+
45+
To install in development mode, use the following:
46+
.. code-block:: shell
47+
48+
$ poetry install --extras llm
49+
50+
.. note::
51+
52+
To leverage the features of `llm-change-agent` package one would need to have any one or all of
53+
the environment variables set:
54+
55+
- `OPENAI_API_KEY`
56+
- `ANTHROPIC_API_KEY`
57+
- `CBORG_API_KEY` (for LBNL users only)

0 commit comments

Comments
 (0)