Extend use of user + collection fields (#503)

* Collection+user fields in structured query

* User/collection in structured query & agent
This commit is contained in:
cybermaggedon 2025-09-08 18:28:38 +01:00 committed by GitHub
parent a92050c411
commit f22bf13aa6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 122 additions and 45 deletions

View file

@ -111,11 +111,10 @@ class Processor(FlowProcessor):
else:
variables_as_strings[key] = str(value)
# Use standard TrustGraph user/collection values
# These should eventually come from authentication/context
# Use user/collection values from request
objects_request = ObjectsQueryRequest(
user="trustgraph", # Standard TrustGraph user
collection="default", # Standard default collection
user=request.user,
collection=request.collection,
query=nlp_response.graphql_query,
variables=variables_as_strings,
operation_name=None