mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-06-30 00:49:38 +02:00
Renamed default flow from 0000 to default (#395)
This commit is contained in:
parent
3ed9274d84
commit
ef34d951fe
19 changed files with 34 additions and 34 deletions
|
|
@ -24,7 +24,7 @@ class Flow:
|
||||||
else:
|
else:
|
||||||
return self.api.request(f"flow", request)
|
return self.api.request(f"flow", request)
|
||||||
|
|
||||||
def id(self, id="0000"):
|
def id(self, id="default"):
|
||||||
return FlowInstance(api=self, id=id)
|
return FlowInstance(api=self, id=id)
|
||||||
|
|
||||||
def list_classes(self):
|
def list_classes(self):
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ class Knowledge:
|
||||||
|
|
||||||
self.request(request = input)
|
self.request(request = input)
|
||||||
|
|
||||||
def load_kg_core(self, id, user="trustgraph", flow="0000",
|
def load_kg_core(self, id, user="trustgraph", flow="default",
|
||||||
collection="default"):
|
collection="default"):
|
||||||
|
|
||||||
# The input consists of system and prompt strings
|
# The input consists of system and prompt strings
|
||||||
|
|
@ -53,7 +53,7 @@ class Knowledge:
|
||||||
|
|
||||||
self.request(request = input)
|
self.request(request = input)
|
||||||
|
|
||||||
def unload_kg_core(self, id, user="trustgraph", flow="0000"):
|
def unload_kg_core(self, id, user="trustgraph", flow="default"):
|
||||||
|
|
||||||
# The input consists of system and prompt strings
|
# The input consists of system and prompt strings
|
||||||
input = {
|
input = {
|
||||||
|
|
|
||||||
|
|
@ -208,7 +208,7 @@ class Library:
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
def start_processing(
|
def start_processing(
|
||||||
self, id, document_id, flow="0000",
|
self, id, document_id, flow="default",
|
||||||
user="trustgraph", collection="default", tags=[],
|
user="trustgraph", collection="default", tags=[],
|
||||||
):
|
):
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -71,8 +71,8 @@ def main():
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-f', '--flow-id',
|
'-f', '--flow-id',
|
||||||
default="0000",
|
default="default",
|
||||||
help=f'Flow ID (default: 0000)'
|
help=f'Flow ID (default: default)'
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
|
|
||||||
|
|
@ -110,8 +110,8 @@ def main():
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-f', '--flow-id',
|
'-f', '--flow-id',
|
||||||
default="0000",
|
default="default",
|
||||||
help=f'Flow ID (default: 0000)'
|
help=f'Flow ID (default: default)'
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
|
|
||||||
|
|
@ -39,8 +39,8 @@ def main():
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-f', '--flow-id',
|
'-f', '--flow-id',
|
||||||
default="0000",
|
default="default",
|
||||||
help=f'Flow ID (default: 0000)'
|
help=f'Flow ID (default: default)'
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
|
|
||||||
|
|
@ -47,8 +47,8 @@ def main():
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-f', '--flow-id',
|
'-f', '--flow-id',
|
||||||
default="0000",
|
default="default",
|
||||||
help=f'Flow ID (default: 0000)'
|
help=f'Flow ID (default: default)'
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
|
|
||||||
|
|
@ -47,8 +47,8 @@ def main():
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-f', '--flow-id',
|
'-f', '--flow-id',
|
||||||
default="0000",
|
default="default",
|
||||||
help=f'Flow ID (default: 0000)'
|
help=f'Flow ID (default: default)'
|
||||||
)
|
)
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
|
||||||
|
|
@ -42,8 +42,8 @@ def main():
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-f', '--flow-id',
|
'-f', '--flow-id',
|
||||||
default="0000",
|
default="default",
|
||||||
help=f'Flow ID (default: 0000)'
|
help=f'Flow ID (default: default)'
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
|
|
||||||
|
|
@ -191,8 +191,8 @@ async def main(running):
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-f', '--flow-id',
|
'-f', '--flow-id',
|
||||||
default="0000",
|
default="default",
|
||||||
help=f'Flow ID (default: 0000)'
|
help=f'Flow ID (default: default)'
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ from trustgraph.api import Api
|
||||||
import json
|
import json
|
||||||
|
|
||||||
default_url = os.getenv("TRUSTGRAPH_URL", 'http://localhost:8088/')
|
default_url = os.getenv("TRUSTGRAPH_URL", 'http://localhost:8088/')
|
||||||
default_flow = "0000"
|
default_flow = "default"
|
||||||
default_collection = "default"
|
default_collection = "default"
|
||||||
|
|
||||||
def load_kg_core(url, user, id, flow, collection):
|
def load_kg_core(url, user, id, flow, collection):
|
||||||
|
|
|
||||||
|
|
@ -86,8 +86,8 @@ def main():
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-f', '--flow-id',
|
'-f', '--flow-id',
|
||||||
default="0000",
|
default="default",
|
||||||
help=f'Flow ID (default: 0000)'
|
help=f'Flow ID (default: default)'
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
|
|
||||||
|
|
@ -88,8 +88,8 @@ def main():
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-f', '--flow-id',
|
'-f', '--flow-id',
|
||||||
default="0000",
|
default="default",
|
||||||
help=f'Flow ID (default: 0000)'
|
help=f'Flow ID (default: default)'
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
|
|
||||||
|
|
@ -113,8 +113,8 @@ def main():
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-f', '--flow-id',
|
'-f', '--flow-id',
|
||||||
default="0000",
|
default="default",
|
||||||
help=f'Flow ID (default: 0000)'
|
help=f'Flow ID (default: default)'
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
|
|
||||||
|
|
@ -161,8 +161,8 @@ async def main(running):
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-f', '--flow-id',
|
'-f', '--flow-id',
|
||||||
default="0000",
|
default="default",
|
||||||
help=f'Flow ID (default: 0000)'
|
help=f'Flow ID (default: default)'
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
|
|
||||||
|
|
@ -63,8 +63,8 @@ def main():
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-f', '--flow-id',
|
'-f', '--flow-id',
|
||||||
default="0000",
|
default="default",
|
||||||
help=f'Flow ID (default: 0000)'
|
help=f'Flow ID (default: default)'
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
|
|
||||||
|
|
@ -39,8 +39,8 @@ def main():
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-f', '--flow-id',
|
'-f', '--flow-id',
|
||||||
default="0000",
|
default="default",
|
||||||
help=f'Flow ID (default: 0000)'
|
help=f'Flow ID (default: default)'
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
|
|
||||||
|
|
@ -54,8 +54,8 @@ def main():
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-i', '--flow-id',
|
'-i', '--flow-id',
|
||||||
default="0000",
|
default="default",
|
||||||
help=f'Flow ID (default: 0000)',
|
help=f'Flow ID (default: default)',
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ from trustgraph.api import Api
|
||||||
import json
|
import json
|
||||||
|
|
||||||
default_url = os.getenv("TRUSTGRAPH_URL", 'http://localhost:8088/')
|
default_url = os.getenv("TRUSTGRAPH_URL", 'http://localhost:8088/')
|
||||||
default_flow = "0000"
|
default_flow = "default"
|
||||||
default_collection = "default"
|
default_collection = "default"
|
||||||
|
|
||||||
def unload_kg_core(url, user, id, flow):
|
def unload_kg_core(url, user, id, flow):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue