naas-abi 1.0.13__tar.gz → 1.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.
- {naas_abi-1.0.13 → naas_abi-1.0.15}/PKG-INFO +1 -1
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/agents/AbiAgent.py +12 -13
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/agents/EntitytoSPARQLAgent.py +4 -4
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi.egg-info/PKG-INFO +1 -1
- {naas_abi-1.0.13 → naas_abi-1.0.15}/pyproject.toml +1 -1
- {naas_abi-1.0.13 → naas_abi-1.0.15}/README.md +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/__init__.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/agents/AbiAgent_test.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/agents/EntitytoSPARQLAgent_test.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/agents/KnowledgeGraphBuilderAgent.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/agents/KnowledgeGraphBuilderAgent_test.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/agents/OntologyEngineerAgent.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/agents/OntologyEngineerAgent_test.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/apps/oxigraph_admin/main.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/apps/oxigraph_admin/terminal_style.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/apps/sparql_terminal/main.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/apps/sparql_terminal/terminal_style.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/cli.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/models/airgap_gemma.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/models/airgap_qwen.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/models/default.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/pipelines/AIAgentOntologyGenerationPipeline.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/pipelines/AIAgentOntologyGenerationPipeline_test.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/pipelines/AddIndividualPipeline.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/pipelines/AddIndividualPipeline_test.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/pipelines/InsertDataSPARQLPipeline.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/pipelines/InsertDataSPARQLPipeline_test.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/pipelines/MergeIndividualsPipeline.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/pipelines/MergeIndividualsPipeline_test.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/pipelines/RemoveIndividualPipeline.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/pipelines/RemoveIndividualPipeline_test.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/pipelines/UpdateCommercialOrganizationPipeline.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/pipelines/UpdateDataPropertyPipeline.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/pipelines/UpdateLegalNamePipeline.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/pipelines/UpdateLinkedInPagePipeline.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/pipelines/UpdatePersonPipeline.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/pipelines/UpdateSkillPipeline.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/pipelines/UpdateTickerPipeline.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/pipelines/UpdateWebsitePipeline.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/workflows/AgentRecommendationWorkflow.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/workflows/AgentRecommendationWorkflow_test.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/workflows/ArtificialAnalysisWorkflow.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/workflows/ArtificialAnalysisWorkflow_test.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/workflows/GetObjectPropertiesFromClassWorkflow.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/workflows/GetObjectPropertiesFromClassWorkflow_test.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/workflows/GetSubjectGraphWorkflow.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/workflows/GetSubjectGraphWorkflow_test.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/workflows/SearchIndividualWorkflow.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/workflows/SearchIndividualWorkflow_test.py +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi.egg-info/SOURCES.txt +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi.egg-info/dependency_links.txt +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi.egg-info/requires.txt +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi.egg-info/top_level.txt +0 -0
- {naas_abi-1.0.13 → naas_abi-1.0.15}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: naas-abi
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.15
|
|
4
4
|
Summary: Multi-agent orchestrator and knowledge graph management system for AI orchestration, providing comprehensive coordination of specialized AI agents and semantic data management capabilities
|
|
5
5
|
Author-email: Maxime Jublou <maxime@naas.ai>, Florent Ravenel <florent@naas.ai>, Jeremy Ravenel <jeremy@naas.ai>
|
|
6
6
|
License: MIT License
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
from typing import Optional
|
|
2
2
|
|
|
3
3
|
from langchain_core.tools import tool
|
|
4
|
-
from naas_abi_core.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
IntentScope,
|
|
10
|
-
IntentType,
|
|
11
|
-
)
|
|
4
|
+
from naas_abi_core.module.Module import BaseModule
|
|
5
|
+
from naas_abi_core.services.agent.IntentAgent import (AgentConfiguration,
|
|
6
|
+
AgentSharedState, Intent,
|
|
7
|
+
IntentAgent, IntentScope,
|
|
8
|
+
IntentType)
|
|
12
9
|
|
|
13
10
|
NAME = "Abi"
|
|
14
11
|
AVATAR_URL = (
|
|
@@ -149,9 +146,12 @@ You can browse the data and run queries there."""
|
|
|
149
146
|
|
|
150
147
|
tools.append(open_knowledge_graph_explorer)
|
|
151
148
|
|
|
152
|
-
from
|
|
153
|
-
|
|
154
|
-
|
|
149
|
+
from naas_abi import ABIModule
|
|
150
|
+
from naas_abi_core.modules.templatablesparqlquery import \
|
|
151
|
+
ABIModule as TemplatableSparqlQueryABIModuleModule
|
|
152
|
+
|
|
153
|
+
templatable_sparql_query_module : BaseModule = ABIModule.get_instance().engine.modules["naas_abi_core.modules.templatablesparqlquery"]
|
|
154
|
+
assert isinstance(templatable_sparql_query_module, TemplatableSparqlQueryABIModuleModule), "TemplatableSparqlQueryABIModuleModule must be a subclass of BaseModule"
|
|
155
155
|
|
|
156
156
|
agent_recommendation_tools = [
|
|
157
157
|
"find_business_proposal_agents",
|
|
@@ -161,7 +161,7 @@ You can browse the data and run queries there."""
|
|
|
161
161
|
"find_fastest_agents",
|
|
162
162
|
"find_cheapest_agents",
|
|
163
163
|
]
|
|
164
|
-
sparql_query_tools_list =
|
|
164
|
+
sparql_query_tools_list = templatable_sparql_query_module.get_tools(
|
|
165
165
|
agent_recommendation_tools
|
|
166
166
|
)
|
|
167
167
|
tools += sparql_query_tools_list
|
|
@@ -176,7 +176,6 @@ You can browse the data and run queries there."""
|
|
|
176
176
|
|
|
177
177
|
# Define agents - all agents are now loaded automatically during module loading
|
|
178
178
|
agents: list = []
|
|
179
|
-
from naas_abi import ABIModule
|
|
180
179
|
from naas_abi_core import logger
|
|
181
180
|
|
|
182
181
|
modules = ABIModule.get_instance().engine.modules.values()
|
|
@@ -8,12 +8,12 @@ from langchain_core.tools import BaseTool, Tool
|
|
|
8
8
|
from langgraph.checkpoint.base import BaseCheckpointSaver
|
|
9
9
|
from langgraph.checkpoint.memory import MemorySaver
|
|
10
10
|
from langgraph.graph import START, StateGraph
|
|
11
|
-
from langgraph.graph.message import MessagesState
|
|
12
11
|
from langgraph.types import Command
|
|
13
12
|
from naas_abi import ABIModule
|
|
14
13
|
from naas_abi_core.engine.EngineProxy import ServicesProxy
|
|
15
14
|
from naas_abi_core.models.Model import ChatModel
|
|
16
15
|
from naas_abi_core.services.agent.Agent import (
|
|
16
|
+
ABIAgentState,
|
|
17
17
|
Agent,
|
|
18
18
|
AgentConfiguration,
|
|
19
19
|
AgentSharedState,
|
|
@@ -168,7 +168,7 @@ def create_agent(
|
|
|
168
168
|
)
|
|
169
169
|
|
|
170
170
|
|
|
171
|
-
class EntityExtractionState(
|
|
171
|
+
class EntityExtractionState(ABIAgentState):
|
|
172
172
|
"""State class for entity extraction conversations.
|
|
173
173
|
|
|
174
174
|
Extends MessagesState to include entity extraction information that tracks
|
|
@@ -930,9 +930,9 @@ INSERT DATA {
|
|
|
930
930
|
This node is used to call the model to extract the entities from the last message.
|
|
931
931
|
"""
|
|
932
932
|
messages = state["messages"]
|
|
933
|
-
if
|
|
933
|
+
if state["system_prompt"]:
|
|
934
934
|
messages = [
|
|
935
|
-
SystemMessage(content=
|
|
935
|
+
SystemMessage(content=state["system_prompt"]),
|
|
936
936
|
] + messages
|
|
937
937
|
|
|
938
938
|
response: BaseMessage = self._chat_model_with_tools.invoke(messages)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: naas-abi
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.15
|
|
4
4
|
Summary: Multi-agent orchestrator and knowledge graph management system for AI orchestration, providing comprehensive coordination of specialized AI agents and semantic data management capabilities
|
|
5
5
|
Author-email: Maxime Jublou <maxime@naas.ai>, Florent Ravenel <florent@naas.ai>, Jeremy Ravenel <jeremy@naas.ai>
|
|
6
6
|
License: MIT License
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "naas-abi"
|
|
3
|
-
version = "1.0.
|
|
3
|
+
version = "1.0.15"
|
|
4
4
|
description = "Multi-agent orchestrator and knowledge graph management system for AI orchestration, providing comprehensive coordination of specialized AI agents and semantic data management capabilities"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [{ name = "Maxime Jublou", email = "maxime@naas.ai" },{ name = "Florent Ravenel", email = "florent@naas.ai" }, { name = "Jeremy Ravenel", email = "jeremy@naas.ai" }]
|
|
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
|
{naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/pipelines/AIAgentOntologyGenerationPipeline_test.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
|
|
File without changes
|
{naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/pipelines/UpdateCommercialOrganizationPipeline.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/workflows/GetObjectPropertiesFromClassWorkflow.py
RENAMED
|
File without changes
|
{naas_abi-1.0.13 → naas_abi-1.0.15}/naas_abi/workflows/GetObjectPropertiesFromClassWorkflow_test.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
|
|
File without changes
|
|
File without changes
|