trustgraph-base 1.4.9__tar.gz → 1.4.11__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.
Potentially problematic release.
This version of trustgraph-base might be problematic. Click here for more details.
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/PKG-INFO +1 -1
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/api/flow.py +4 -1
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/__init__.py +1 -1
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/flow.py +2 -2
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/flow_processor.py +1 -1
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/llm_service.py +10 -2
- trustgraph_base-1.4.9/trustgraph/base/setting_spec.py → trustgraph_base-1.4.11/trustgraph/base/parameter_spec.py +5 -3
- trustgraph_base-1.4.11/trustgraph/base_version.py +1 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/flow.py +10 -5
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/services/flow.py +6 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph_base.egg-info/PKG-INFO +1 -1
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph_base.egg-info/SOURCES.txt +1 -1
- trustgraph_base-1.4.9/trustgraph/base_version.py +0 -1
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/README.md +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/pyproject.toml +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/setup.cfg +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/api/__init__.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/api/api.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/api/collection.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/api/config.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/api/exceptions.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/api/knowledge.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/api/library.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/api/types.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/agent_client.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/agent_service.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/async_processor.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/cassandra_config.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/consumer.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/consumer_spec.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/document_embeddings_client.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/document_embeddings_query_service.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/document_embeddings_store_service.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/embeddings_client.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/embeddings_service.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/graph_embeddings_client.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/graph_embeddings_query_service.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/graph_embeddings_store_service.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/graph_rag_client.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/metrics.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/producer.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/producer_spec.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/prompt_client.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/publisher.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/pubsub.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/request_response_spec.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/spec.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/structured_query_client.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/subscriber.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/subscriber_spec.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/text_completion_client.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/tool_client.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/tool_service.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/triples_client.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/triples_query_service.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/triples_store_service.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/clients/__init__.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/clients/agent_client.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/clients/base.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/clients/config_client.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/clients/document_embeddings_client.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/clients/document_rag_client.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/clients/embeddings_client.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/clients/graph_embeddings_client.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/clients/graph_rag_client.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/clients/llm_client.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/clients/prompt_client.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/clients/triples_query_client.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/exceptions.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/knowledge/__init__.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/knowledge/defs.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/knowledge/document.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/knowledge/identifier.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/knowledge/organization.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/knowledge/publication.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/log_level.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/__init__.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/registry.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/__init__.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/agent.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/base.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/collection.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/config.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/diagnosis.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/document_loading.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/embeddings.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/embeddings_query.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/knowledge.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/library.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/metadata.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/nlp_query.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/objects_query.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/primitives.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/prompt.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/retrieval.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/structured_query.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/text_completion.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/tool.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/triples.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/objects/__init__.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/objects/field.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/objects/object.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/rdf.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/__init__.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/core/__init__.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/core/metadata.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/core/primitives.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/core/topic.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/knowledge/__init__.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/knowledge/document.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/knowledge/embeddings.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/knowledge/graph.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/knowledge/knowledge.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/knowledge/nlp.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/knowledge/object.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/knowledge/rows.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/knowledge/structured.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/services/__init__.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/services/agent.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/services/collection.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/services/config.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/services/diagnosis.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/services/library.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/services/llm.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/services/lookup.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/services/nlp_query.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/services/objects_query.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/services/prompt.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/services/query.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/services/retrieval.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/services/storage.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/services/structured_query.py +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph_base.egg-info/dependency_links.txt +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph_base.egg-info/requires.txt +0 -0
- {trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph_base.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: trustgraph-base
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.11
|
|
4
4
|
Summary: TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.
|
|
5
5
|
Author-email: "trustgraph.ai" <security@trustgraph.ai>
|
|
6
6
|
Project-URL: Homepage, https://github.com/trustgraph-ai/trustgraph
|
|
@@ -87,7 +87,7 @@ class Flow:
|
|
|
87
87
|
|
|
88
88
|
return json.loads(self.request(request = input)["flow"])
|
|
89
89
|
|
|
90
|
-
def start(self, class_name, id, description):
|
|
90
|
+
def start(self, class_name, id, description, parameters=None):
|
|
91
91
|
|
|
92
92
|
# The input consists of system and prompt strings
|
|
93
93
|
input = {
|
|
@@ -97,6 +97,9 @@ class Flow:
|
|
|
97
97
|
"description": description,
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
+
if parameters:
|
|
101
|
+
input["parameters"] = parameters
|
|
102
|
+
|
|
100
103
|
self.request(request = input)
|
|
101
104
|
|
|
102
105
|
def stop(self, id):
|
|
@@ -8,7 +8,7 @@ from . subscriber import Subscriber
|
|
|
8
8
|
from . metrics import ProcessorMetrics, ConsumerMetrics, ProducerMetrics
|
|
9
9
|
from . flow_processor import FlowProcessor
|
|
10
10
|
from . consumer_spec import ConsumerSpec
|
|
11
|
-
from .
|
|
11
|
+
from . parameter_spec import ParameterSpec
|
|
12
12
|
from . producer_spec import ProducerSpec
|
|
13
13
|
from . subscriber_spec import SubscriberSpec
|
|
14
14
|
from . request_response_spec import RequestResponseSpec
|
|
@@ -12,7 +12,7 @@ class Flow:
|
|
|
12
12
|
# Consumers and publishers. Is this a bit untidy?
|
|
13
13
|
self.consumer = {}
|
|
14
14
|
|
|
15
|
-
self.
|
|
15
|
+
self.parameter = {}
|
|
16
16
|
|
|
17
17
|
for spec in processor.specifications:
|
|
18
18
|
spec.add(self, processor, defn)
|
|
@@ -28,5 +28,5 @@ class Flow:
|
|
|
28
28
|
def __call__(self, key):
|
|
29
29
|
if key in self.producer: return self.producer[key]
|
|
30
30
|
if key in self.consumer: return self.consumer[key]
|
|
31
|
-
if key in self.
|
|
31
|
+
if key in self.parameter: return self.parameter[key].value
|
|
32
32
|
return None
|
|
@@ -35,7 +35,7 @@ class FlowProcessor(AsyncProcessor):
|
|
|
35
35
|
|
|
36
36
|
# These can be overriden by a derived class:
|
|
37
37
|
|
|
38
|
-
# Array of specifications: ConsumerSpec, ProducerSpec,
|
|
38
|
+
# Array of specifications: ConsumerSpec, ProducerSpec, ParameterSpec
|
|
39
39
|
self.specifications = []
|
|
40
40
|
|
|
41
41
|
logger.info("Service initialised.")
|
|
@@ -9,7 +9,7 @@ from prometheus_client import Histogram
|
|
|
9
9
|
|
|
10
10
|
from .. schema import TextCompletionRequest, TextCompletionResponse, Error
|
|
11
11
|
from .. exceptions import TooManyRequests
|
|
12
|
-
from .. base import FlowProcessor, ConsumerSpec, ProducerSpec
|
|
12
|
+
from .. base import FlowProcessor, ConsumerSpec, ProducerSpec, ParameterSpec
|
|
13
13
|
|
|
14
14
|
# Module logger
|
|
15
15
|
logger = logging.getLogger(__name__)
|
|
@@ -56,6 +56,12 @@ class LlmService(FlowProcessor):
|
|
|
56
56
|
)
|
|
57
57
|
)
|
|
58
58
|
|
|
59
|
+
self.register_specification(
|
|
60
|
+
ParameterSpec(
|
|
61
|
+
name = "model",
|
|
62
|
+
)
|
|
63
|
+
)
|
|
64
|
+
|
|
59
65
|
if not hasattr(__class__, "text_completion_metric"):
|
|
60
66
|
__class__.text_completion_metric = Histogram(
|
|
61
67
|
'text_completion_duration',
|
|
@@ -85,8 +91,10 @@ class LlmService(FlowProcessor):
|
|
|
85
91
|
flow=f"{flow.name}-{consumer.name}",
|
|
86
92
|
).time():
|
|
87
93
|
|
|
94
|
+
model = flow("model")
|
|
95
|
+
|
|
88
96
|
response = await self.generate_content(
|
|
89
|
-
request.system, request.prompt
|
|
97
|
+
request.system, request.prompt, model
|
|
90
98
|
)
|
|
91
99
|
|
|
92
100
|
await flow("response").send(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
from . spec import Spec
|
|
3
3
|
|
|
4
|
-
class
|
|
4
|
+
class Parameter:
|
|
5
5
|
def __init__(self, value):
|
|
6
6
|
self.value = value
|
|
7
7
|
async def start():
|
|
@@ -9,11 +9,13 @@ class Setting:
|
|
|
9
9
|
async def stop():
|
|
10
10
|
pass
|
|
11
11
|
|
|
12
|
-
class
|
|
12
|
+
class ParameterSpec(Spec):
|
|
13
13
|
def __init__(self, name):
|
|
14
14
|
self.name = name
|
|
15
15
|
|
|
16
16
|
def add(self, flow, processor, definition):
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
value = definition.get(self.name, None)
|
|
19
|
+
|
|
20
|
+
flow.parameter[self.name] = Parameter(value)
|
|
19
21
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.4.11"
|
|
@@ -12,12 +12,13 @@ class FlowRequestTranslator(MessageTranslator):
|
|
|
12
12
|
class_name=data.get("class-name"),
|
|
13
13
|
class_definition=data.get("class-definition"),
|
|
14
14
|
description=data.get("description"),
|
|
15
|
-
flow_id=data.get("flow-id")
|
|
15
|
+
flow_id=data.get("flow-id"),
|
|
16
|
+
parameters=data.get("parameters")
|
|
16
17
|
)
|
|
17
18
|
|
|
18
19
|
def from_pulsar(self, obj: FlowRequest) -> Dict[str, Any]:
|
|
19
20
|
result = {}
|
|
20
|
-
|
|
21
|
+
|
|
21
22
|
if obj.operation is not None:
|
|
22
23
|
result["operation"] = obj.operation
|
|
23
24
|
if obj.class_name is not None:
|
|
@@ -28,7 +29,9 @@ class FlowRequestTranslator(MessageTranslator):
|
|
|
28
29
|
result["description"] = obj.description
|
|
29
30
|
if obj.flow_id is not None:
|
|
30
31
|
result["flow-id"] = obj.flow_id
|
|
31
|
-
|
|
32
|
+
if obj.parameters is not None:
|
|
33
|
+
result["parameters"] = obj.parameters
|
|
34
|
+
|
|
32
35
|
return result
|
|
33
36
|
|
|
34
37
|
|
|
@@ -40,7 +43,7 @@ class FlowResponseTranslator(MessageTranslator):
|
|
|
40
43
|
|
|
41
44
|
def from_pulsar(self, obj: FlowResponse) -> Dict[str, Any]:
|
|
42
45
|
result = {}
|
|
43
|
-
|
|
46
|
+
|
|
44
47
|
if obj.class_names is not None:
|
|
45
48
|
result["class-names"] = obj.class_names
|
|
46
49
|
if obj.flow_ids is not None:
|
|
@@ -51,7 +54,9 @@ class FlowResponseTranslator(MessageTranslator):
|
|
|
51
54
|
result["flow"] = obj.flow
|
|
52
55
|
if obj.description is not None:
|
|
53
56
|
result["description"] = obj.description
|
|
54
|
-
|
|
57
|
+
if obj.parameters is not None:
|
|
58
|
+
result["parameters"] = obj.parameters
|
|
59
|
+
|
|
55
60
|
return result
|
|
56
61
|
|
|
57
62
|
def from_response_with_completion(self, obj: FlowResponse) -> Tuple[Dict[str, Any], bool]:
|
|
@@ -35,6 +35,9 @@ class FlowRequest(Record):
|
|
|
35
35
|
# get_flow, start_flow, stop_flow
|
|
36
36
|
flow_id = String()
|
|
37
37
|
|
|
38
|
+
# start_flow - optional parameters for flow customization
|
|
39
|
+
parameters = Map(String())
|
|
40
|
+
|
|
38
41
|
class FlowResponse(Record):
|
|
39
42
|
|
|
40
43
|
# list_classes
|
|
@@ -52,6 +55,9 @@ class FlowResponse(Record):
|
|
|
52
55
|
# get_flow
|
|
53
56
|
description = String()
|
|
54
57
|
|
|
58
|
+
# get_flow - parameters used when flow was started
|
|
59
|
+
parameters = Map(String())
|
|
60
|
+
|
|
55
61
|
# Everything
|
|
56
62
|
error = Error()
|
|
57
63
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: trustgraph-base
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.11
|
|
4
4
|
Summary: TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.
|
|
5
5
|
Author-email: "trustgraph.ai" <security@trustgraph.ai>
|
|
6
6
|
Project-URL: Homepage, https://github.com/trustgraph-ai/trustgraph
|
|
@@ -33,13 +33,13 @@ trustgraph/base/graph_embeddings_store_service.py
|
|
|
33
33
|
trustgraph/base/graph_rag_client.py
|
|
34
34
|
trustgraph/base/llm_service.py
|
|
35
35
|
trustgraph/base/metrics.py
|
|
36
|
+
trustgraph/base/parameter_spec.py
|
|
36
37
|
trustgraph/base/producer.py
|
|
37
38
|
trustgraph/base/producer_spec.py
|
|
38
39
|
trustgraph/base/prompt_client.py
|
|
39
40
|
trustgraph/base/publisher.py
|
|
40
41
|
trustgraph/base/pubsub.py
|
|
41
42
|
trustgraph/base/request_response_spec.py
|
|
42
|
-
trustgraph/base/setting_spec.py
|
|
43
43
|
trustgraph/base/spec.py
|
|
44
44
|
trustgraph/base/structured_query_client.py
|
|
45
45
|
trustgraph/base/subscriber.py
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.4.9"
|
|
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
|
{trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/document_embeddings_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/graph_embeddings_query_service.py
RENAMED
|
File without changes
|
{trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/base/graph_embeddings_store_service.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
|
|
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
|
{trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/clients/document_embeddings_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/clients/graph_embeddings_client.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/collection.py
RENAMED
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/diagnosis.py
RENAMED
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/embeddings.py
RENAMED
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/knowledge.py
RENAMED
|
File without changes
|
{trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/library.py
RENAMED
|
File without changes
|
{trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/metadata.py
RENAMED
|
File without changes
|
{trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/nlp_query.py
RENAMED
|
File without changes
|
{trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/objects_query.py
RENAMED
|
File without changes
|
{trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/primitives.py
RENAMED
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/retrieval.py
RENAMED
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/text_completion.py
RENAMED
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/messaging/translators/triples.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
|
|
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
|
{trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/services/objects_query.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph/schema/services/structured_query.py
RENAMED
|
File without changes
|
{trustgraph_base-1.4.9 → trustgraph_base-1.4.11}/trustgraph_base.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|