mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-05-05 21:32:37 +02:00
21 lines
618 B
Python
21 lines
618 B
Python
from dataclasses import dataclass, field
|
|
|
|
from ..core.primitives import Error
|
|
|
|
############################################################################
|
|
|
|
# Structured Query Service - executes GraphQL queries
|
|
|
|
@dataclass
|
|
class StructuredQueryRequest:
|
|
question: str = ""
|
|
collection: str = "" # Data collection identifier
|
|
|
|
@dataclass
|
|
class StructuredQueryResponse:
|
|
error: Error | None = None
|
|
data: str = "" # JSON-encoded GraphQL response data
|
|
errors: list[str] = field(default_factory=list) # GraphQL errors if any
|
|
|
|
############################################################################
|
|
|