taguru 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
taguru/__init__.py ADDED
@@ -0,0 +1,142 @@
1
+ """Python client SDK for the Taguru long-term semantic memory server.
2
+
3
+ Quick start::
4
+
5
+ from taguru import Taguru
6
+
7
+ client = Taguru() # TAGURU_URL / TAGURU_API_TOKEN, else localhost:8248
8
+ ctx = client.context("sake")
9
+ hits = ctx.search_passages("酒蔵の創業年", limit=5)
10
+
11
+ ``AsyncTaguru`` is the identical async surface. The behavioral contract is
12
+ the server's own protocol document: ``client.protocol()`` (GET /protocol).
13
+ """
14
+
15
+ from __future__ import annotations
16
+
17
+ from ._async.client import AsyncContext, AsyncContexts, AsyncTaguru
18
+ from ._errors import (
19
+ AuthenticationError,
20
+ ConflictError,
21
+ EmbeddingUnavailableError,
22
+ NotFoundError,
23
+ PayloadTooLargeError,
24
+ PermissionDeniedError,
25
+ RateLimitError,
26
+ RequestTimeoutError,
27
+ ServerError,
28
+ ServiceUnavailableError,
29
+ StorageFullError,
30
+ TaguruError,
31
+ TransportError,
32
+ UnexpectedStatusError,
33
+ ValidationError,
34
+ )
35
+ from ._models import (
36
+ Activation,
37
+ ActivationPage,
38
+ AliasEntry,
39
+ AliasPage,
40
+ Association,
41
+ Attribution,
42
+ BatchApplyResult,
43
+ Citation,
44
+ CompactOutcome,
45
+ ConceptDescription,
46
+ ContextMeta,
47
+ ContextPage,
48
+ ContextStats,
49
+ ContextUsage,
50
+ DirectoryEntry,
51
+ ExplorePage,
52
+ ImportOutcome,
53
+ LabelPage,
54
+ LabelUsage,
55
+ LaneEvidence,
56
+ MatchPage,
57
+ PassageHit,
58
+ PassageLanes,
59
+ PassageLookup,
60
+ Recollection,
61
+ RefreshBreakdown,
62
+ RefreshOutcome,
63
+ RetractOutcome,
64
+ RetrievalResult,
65
+ SourcePage,
66
+ StoredPassages,
67
+ TieredResolution,
68
+ TwinPair,
69
+ VocabularyAudit,
70
+ )
71
+ from ._shared import citation_key
72
+ from ._sync.client import Context, Contexts, Taguru
73
+ from ._types import AssocOp, QuestionSpec, SectionSpec
74
+
75
+ __version__ = "0.1.0"
76
+
77
+ __all__ = [
78
+ "__version__",
79
+ # clients
80
+ "Taguru",
81
+ "AsyncTaguru",
82
+ "Context",
83
+ "AsyncContext",
84
+ "Contexts",
85
+ "AsyncContexts",
86
+ "citation_key",
87
+ # request types
88
+ "AssocOp",
89
+ "QuestionSpec",
90
+ "SectionSpec",
91
+ # errors
92
+ "TaguruError",
93
+ "AuthenticationError",
94
+ "PermissionDeniedError",
95
+ "NotFoundError",
96
+ "ConflictError",
97
+ "ValidationError",
98
+ "PayloadTooLargeError",
99
+ "RequestTimeoutError",
100
+ "RateLimitError",
101
+ "ServerError",
102
+ "ServiceUnavailableError",
103
+ "StorageFullError",
104
+ "EmbeddingUnavailableError",
105
+ "TransportError",
106
+ "UnexpectedStatusError",
107
+ # models
108
+ "Activation",
109
+ "ActivationPage",
110
+ "AliasEntry",
111
+ "AliasPage",
112
+ "Association",
113
+ "Attribution",
114
+ "BatchApplyResult",
115
+ "Citation",
116
+ "CompactOutcome",
117
+ "ConceptDescription",
118
+ "ContextMeta",
119
+ "ContextPage",
120
+ "ContextStats",
121
+ "ContextUsage",
122
+ "DirectoryEntry",
123
+ "ExplorePage",
124
+ "ImportOutcome",
125
+ "LabelPage",
126
+ "LabelUsage",
127
+ "LaneEvidence",
128
+ "MatchPage",
129
+ "PassageHit",
130
+ "PassageLanes",
131
+ "PassageLookup",
132
+ "Recollection",
133
+ "RefreshBreakdown",
134
+ "RefreshOutcome",
135
+ "RetractOutcome",
136
+ "RetrievalResult",
137
+ "SourcePage",
138
+ "StoredPassages",
139
+ "TieredResolution",
140
+ "TwinPair",
141
+ "VocabularyAudit",
142
+ ]
File without changes