blue-assistant 4.154.1__tar.gz → 4.160.1__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.
- {blue_assistant-4.154.1/blue_assistant.egg-info → blue_assistant-4.160.1}/PKG-INFO +2 -2
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/README.md +1 -1
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/__init__.py +1 -1
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/repository/generic/classes.py +1 -0
- blue_assistant-4.160.1/blue_assistant/script/repository/orbital_data_explorer/actions/researching_the_questions.py +42 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/repository/orbital_data_explorer/classes.py +15 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1/blue_assistant.egg-info}/PKG-INFO +2 -2
- blue_assistant-4.154.1/blue_assistant/script/repository/orbital_data_explorer/actions/researching_the_questions.py +0 -18
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/LICENSE +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/MANIFEST.in +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/.abcli/abcli.sh +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/.abcli/actions.sh +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/.abcli/alias.sh +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/.abcli/blue_assistant.sh +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/.abcli/browse.sh +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/.abcli/script/list.sh +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/.abcli/script/run.sh +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/.abcli/script.sh +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/.abcli/tests/README.sh +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/.abcli/tests/help.sh +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/.abcli/tests/script_list.sh +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/.abcli/tests/script_run.sh +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/.abcli/tests/version.sh +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/.abcli/tests/web_crawl.sh +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/.abcli/web/crawl.sh +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/.abcli/web.sh +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/README.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/__main__.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/config.env +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/env.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/functions.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/help/__init__.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/help/__main__.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/help/functions.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/help/script.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/help/web.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/host.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/logger.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/sample.env +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/__init__.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/__main__.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/actions/__init__.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/actions/generate_image.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/actions/generate_text.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/actions/generic.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/load.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/repository/__init__.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/repository/base/__init__.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/repository/base/classes.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/repository/blue_amo/__init__.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/repository/blue_amo/actions/__init__.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/repository/blue_amo/actions/slicing_into_frames.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/repository/blue_amo/actions/stitching_the_frames.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/repository/blue_amo/classes.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/repository/generic/__init__.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/repository/hue/__init__.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/repository/hue/classes.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/repository/orbital_data_explorer/__init__.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/repository/orbital_data_explorer/actions/__init__.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/urls.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/web/__init__.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/web/__main__.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/web/crawl.py +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant.egg-info/SOURCES.txt +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant.egg-info/dependency_links.txt +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant.egg-info/requires.txt +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant.egg-info/top_level.txt +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/pyproject.toml +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/requirements.txt +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/setup.cfg +0 -0
- {blue_assistant-4.154.1 → blue_assistant-4.160.1}/setup.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: blue_assistant
|
3
|
-
Version: 4.
|
3
|
+
Version: 4.160.1
|
4
4
|
Summary: 🧠 An AI Assistant.
|
5
5
|
Home-page: https://github.com/kamangir/blue-assistant
|
6
6
|
Author: Arash Abadpour (Kamangir)
|
@@ -83,4 +83,4 @@ graph LR
|
|
83
83
|
|
84
84
|
[](https://github.com/kamangir/blue-assistant/actions/workflows/pylint.yml) [](https://github.com/kamangir/blue-assistant/actions/workflows/pytest.yml) [](https://github.com/kamangir/blue-assistant/actions/workflows/bashtest.yml) [](https://pypi.org/project/blue-assistant/) [](https://pypistats.org/packages/blue-assistant)
|
85
85
|
|
86
|
-
built by 🌀 [`blue_options-4.207.1`](https://github.com/kamangir/awesome-bash-cli), based on 🧠 [`blue_assistant-4.
|
86
|
+
built by 🌀 [`blue_options-4.207.1`](https://github.com/kamangir/awesome-bash-cli), based on 🧠 [`blue_assistant-4.160.1`](https://github.com/kamangir/blue-assistant).
|
@@ -38,4 +38,4 @@ graph LR
|
|
38
38
|
|
39
39
|
[](https://github.com/kamangir/blue-assistant/actions/workflows/pylint.yml) [](https://github.com/kamangir/blue-assistant/actions/workflows/pytest.yml) [](https://github.com/kamangir/blue-assistant/actions/workflows/bashtest.yml) [](https://pypi.org/project/blue-assistant/) [](https://pypistats.org/packages/blue-assistant)
|
40
40
|
|
41
|
-
built by 🌀 [`blue_options-4.207.1`](https://github.com/kamangir/awesome-bash-cli), based on 🧠 [`blue_assistant-4.
|
41
|
+
built by 🌀 [`blue_options-4.207.1`](https://github.com/kamangir/awesome-bash-cli), based on 🧠 [`blue_assistant-4.160.1`](https://github.com/kamangir/blue-assistant).
|
@@ -24,6 +24,7 @@ class GenericScript(BaseScript):
|
|
24
24
|
node_name: str,
|
25
25
|
) -> bool:
|
26
26
|
action_name = self.nodes[node_name].get("action", "unknown")
|
27
|
+
logger.info(f"---- node: {node_name} ---- ")
|
27
28
|
|
28
29
|
if action_name not in dict_of_actions:
|
29
30
|
logger.error(f"{action_name}: action not found.")
|
@@ -0,0 +1,42 @@
|
|
1
|
+
from typing import Dict
|
2
|
+
from blueness import module
|
3
|
+
from tqdm import tqdm
|
4
|
+
|
5
|
+
from openai_commands.text_generation import api
|
6
|
+
|
7
|
+
from blue_assistant import NAME
|
8
|
+
from blue_assistant.web.crawl import crawl_list_of_urls
|
9
|
+
from blue_assistant.script.repository.base.classes import BaseScript
|
10
|
+
from blue_assistant.logger import logger
|
11
|
+
|
12
|
+
|
13
|
+
NAME = module.name(__file__, NAME)
|
14
|
+
|
15
|
+
|
16
|
+
def researching_the_questions(
|
17
|
+
script: BaseScript,
|
18
|
+
node_name: str,
|
19
|
+
) -> bool:
|
20
|
+
logger.info(f"{NAME}: ...")
|
21
|
+
|
22
|
+
visited_urls = crawl_list_of_urls(
|
23
|
+
seed_urls=script.vars["seed_urls"],
|
24
|
+
object_name=script.object_name,
|
25
|
+
max_iterations=script.nodes[node_name]["max_iterations"],
|
26
|
+
)
|
27
|
+
|
28
|
+
success, output, _ = api.generate_text(
|
29
|
+
prompt=script.nodes[node_name]["prompt"].replace(
|
30
|
+
":::input", " ".join([content for content in visited_urls.values()])
|
31
|
+
),
|
32
|
+
verbose=script.verbose,
|
33
|
+
)
|
34
|
+
if not success:
|
35
|
+
return success
|
36
|
+
|
37
|
+
logger.info(output)
|
38
|
+
|
39
|
+
script.nodes[node_name]["visited_urls"] = visited_urls
|
40
|
+
script.nodes[node_name]["output"] = output
|
41
|
+
|
42
|
+
return True
|
@@ -9,6 +9,21 @@ from blue_assistant.script.repository.orbital_data_explorer.actions import (
|
|
9
9
|
class OrbitalDataExplorerScript(GenericScript):
|
10
10
|
name = path.name(file.path(__file__))
|
11
11
|
|
12
|
+
def __init__(
|
13
|
+
self,
|
14
|
+
object_name: str,
|
15
|
+
test_mode: bool = False,
|
16
|
+
verbose: bool = False,
|
17
|
+
):
|
18
|
+
super().__init__(
|
19
|
+
object_name=object_name,
|
20
|
+
test_mode=test_mode,
|
21
|
+
verbose=verbose,
|
22
|
+
)
|
23
|
+
|
24
|
+
if self.test_mode:
|
25
|
+
self.nodes["researching_the_questions"]["max_iterations"] = 3
|
26
|
+
|
12
27
|
def perform_action(
|
13
28
|
self,
|
14
29
|
node_name: str,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: blue_assistant
|
3
|
-
Version: 4.
|
3
|
+
Version: 4.160.1
|
4
4
|
Summary: 🧠 An AI Assistant.
|
5
5
|
Home-page: https://github.com/kamangir/blue-assistant
|
6
6
|
Author: Arash Abadpour (Kamangir)
|
@@ -83,4 +83,4 @@ graph LR
|
|
83
83
|
|
84
84
|
[](https://github.com/kamangir/blue-assistant/actions/workflows/pylint.yml) [](https://github.com/kamangir/blue-assistant/actions/workflows/pytest.yml) [](https://github.com/kamangir/blue-assistant/actions/workflows/bashtest.yml) [](https://pypi.org/project/blue-assistant/) [](https://pypistats.org/packages/blue-assistant)
|
85
85
|
|
86
|
-
built by 🌀 [`blue_options-4.207.1`](https://github.com/kamangir/awesome-bash-cli), based on 🧠 [`blue_assistant-4.
|
86
|
+
built by 🌀 [`blue_options-4.207.1`](https://github.com/kamangir/awesome-bash-cli), based on 🧠 [`blue_assistant-4.160.1`](https://github.com/kamangir/blue-assistant).
|
@@ -1,18 +0,0 @@
|
|
1
|
-
from blueness import module
|
2
|
-
|
3
|
-
from blue_assistant import NAME
|
4
|
-
from blue_assistant.script.repository.base.classes import BaseScript
|
5
|
-
from blue_assistant.logger import logger
|
6
|
-
|
7
|
-
NAME = module.name(__file__, NAME)
|
8
|
-
|
9
|
-
|
10
|
-
def researching_the_questions(
|
11
|
-
script: BaseScript,
|
12
|
-
node_name: str,
|
13
|
-
) -> bool:
|
14
|
-
logger.info(f"{NAME}: ...")
|
15
|
-
|
16
|
-
logger.info("🪄")
|
17
|
-
|
18
|
-
return True
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/.abcli/tests/script_list.sh
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/actions/generate_image.py
RENAMED
File without changes
|
{blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/actions/generate_text.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/repository/__init__.py
RENAMED
File without changes
|
{blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/repository/base/__init__.py
RENAMED
File without changes
|
{blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/repository/base/classes.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/repository/hue/__init__.py
RENAMED
File without changes
|
{blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant/script/repository/hue/classes.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{blue_assistant-4.154.1 → blue_assistant-4.160.1}/blue_assistant.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|