feat(type_aliases): add 10 TypeAliases + FileItemsDiff NamedTuple
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
from __future__ import annotations
|
||||
from typing import Any, Callable, NamedTuple, TypeAlias
|
||||
|
||||
|
||||
Metadata: TypeAlias = dict[str, Any]
|
||||
|
||||
CommsLogEntry: TypeAlias = Metadata
|
||||
CommsLog: TypeAlias = list[CommsLogEntry]
|
||||
|
||||
HistoryMessage: TypeAlias = Metadata
|
||||
History: TypeAlias = list[HistoryMessage]
|
||||
|
||||
FileItem: TypeAlias = Metadata
|
||||
FileItems: TypeAlias = list[FileItem]
|
||||
|
||||
ToolDefinition: TypeAlias = Metadata
|
||||
ToolCall: TypeAlias = Metadata
|
||||
|
||||
CommsLogCallback: TypeAlias = Callable[[CommsLogEntry], None]
|
||||
|
||||
|
||||
class FileItemsDiff(NamedTuple):
|
||||
refreshed: FileItems
|
||||
changed: FileItems
|
||||
Reference in New Issue
Block a user