mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-05-05 05:12:36 +02:00
parent
1e137768ca
commit
b07d539802
2 changed files with 12 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ class Relationship:
|
|||
|
||||
@dataclasses.dataclass
|
||||
class Topic:
|
||||
topic: str
|
||||
name: str
|
||||
definition: str
|
||||
|
||||
class PromptClient(BaseClient):
|
||||
|
|
@ -118,7 +118,7 @@ class PromptClient(BaseClient):
|
|||
)
|
||||
|
||||
return [
|
||||
Topic(topic=d["topic"], definition=d["definition"])
|
||||
Topic(name=d["topic"], definition=d["definition"])
|
||||
for d in topics
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue