-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathtypes.py
More file actions
38 lines (28 loc) · 1.04 KB
/
Copy pathtypes.py
File metadata and controls
38 lines (28 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
"""Internal TypedDicts for knowledge graph CLI orchestration."""
from __future__ import annotations
from typing import Any, NotRequired, TypedDict
class SeedEntity(TypedDict, total=False):
entity_id: str
name: NotRequired[str | None]
entity_type: NotRequired[str | None]
similarity: NotRequired[float]
context: NotRequired[str | None]
class SeedNeighbor(TypedDict, total=False):
seed_entity_id: str
seed_name: NotRequired[str | None]
seed_entity_type: NotRequired[str | None]
neighbor_entity_id: str
neighbor_name: NotRequired[str | None]
neighbor_entity_type: NotRequired[str | None]
relationship_type: NotRequired[str | None]
relationship_description: NotRequired[str | None]
direction: NotRequired[str]
class PlanStep(TypedDict, total=False):
cypher: str
description: NotRequired[str]
class QueryResult(TypedDict, total=False):
cypher: str
description: NotRequired[str]
rows: NotRequired[list[dict[str, Any]]]
truncated: NotRequired[bool]
error: NotRequired[str]