Skip to content

Commit 025587b

Browse files
chore(internal): codegen related update
1 parent 457654c commit 025587b

File tree

7 files changed

+56
-0
lines changed

7 files changed

+56
-0
lines changed

src/isaacus/_client.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def __init__(
9898

9999
@cached_property
100100
def embeddings(self) -> EmbeddingsResource:
101+
"""Embed legal texts with Isaacus legal AI embedders."""
101102
from .resources.embeddings import EmbeddingsResource
102103

103104
return EmbeddingsResource(self)
@@ -110,6 +111,9 @@ def classifications(self) -> ClassificationsResource:
110111

111112
@cached_property
112113
def rerankings(self) -> RerankingsResource:
114+
"""
115+
Rerank legal documents by their relevance to queries with Isaacus legal AI rerankers.
116+
"""
113117
from .resources.rerankings import RerankingsResource
114118

115119
return RerankingsResource(self)
@@ -296,6 +300,7 @@ def __init__(
296300

297301
@cached_property
298302
def embeddings(self) -> AsyncEmbeddingsResource:
303+
"""Embed legal texts with Isaacus legal AI embedders."""
299304
from .resources.embeddings import AsyncEmbeddingsResource
300305

301306
return AsyncEmbeddingsResource(self)
@@ -308,6 +313,9 @@ def classifications(self) -> AsyncClassificationsResource:
308313

309314
@cached_property
310315
def rerankings(self) -> AsyncRerankingsResource:
316+
"""
317+
Rerank legal documents by their relevance to queries with Isaacus legal AI rerankers.
318+
"""
311319
from .resources.rerankings import AsyncRerankingsResource
312320

313321
return AsyncRerankingsResource(self)
@@ -445,6 +453,7 @@ def __init__(self, client: Isaacus) -> None:
445453

446454
@cached_property
447455
def embeddings(self) -> embeddings.EmbeddingsResourceWithRawResponse:
456+
"""Embed legal texts with Isaacus legal AI embedders."""
448457
from .resources.embeddings import EmbeddingsResourceWithRawResponse
449458

450459
return EmbeddingsResourceWithRawResponse(self._client.embeddings)
@@ -457,6 +466,9 @@ def classifications(self) -> classifications.ClassificationsResourceWithRawRespo
457466

458467
@cached_property
459468
def rerankings(self) -> rerankings.RerankingsResourceWithRawResponse:
469+
"""
470+
Rerank legal documents by their relevance to queries with Isaacus legal AI rerankers.
471+
"""
460472
from .resources.rerankings import RerankingsResourceWithRawResponse
461473

462474
return RerankingsResourceWithRawResponse(self._client.rerankings)
@@ -482,6 +494,7 @@ def __init__(self, client: AsyncIsaacus) -> None:
482494

483495
@cached_property
484496
def embeddings(self) -> embeddings.AsyncEmbeddingsResourceWithRawResponse:
497+
"""Embed legal texts with Isaacus legal AI embedders."""
485498
from .resources.embeddings import AsyncEmbeddingsResourceWithRawResponse
486499

487500
return AsyncEmbeddingsResourceWithRawResponse(self._client.embeddings)
@@ -494,6 +507,9 @@ def classifications(self) -> classifications.AsyncClassificationsResourceWithRaw
494507

495508
@cached_property
496509
def rerankings(self) -> rerankings.AsyncRerankingsResourceWithRawResponse:
510+
"""
511+
Rerank legal documents by their relevance to queries with Isaacus legal AI rerankers.
512+
"""
497513
from .resources.rerankings import AsyncRerankingsResourceWithRawResponse
498514

499515
return AsyncRerankingsResourceWithRawResponse(self._client.rerankings)
@@ -519,6 +535,7 @@ def __init__(self, client: Isaacus) -> None:
519535

520536
@cached_property
521537
def embeddings(self) -> embeddings.EmbeddingsResourceWithStreamingResponse:
538+
"""Embed legal texts with Isaacus legal AI embedders."""
522539
from .resources.embeddings import EmbeddingsResourceWithStreamingResponse
523540

524541
return EmbeddingsResourceWithStreamingResponse(self._client.embeddings)
@@ -531,6 +548,9 @@ def classifications(self) -> classifications.ClassificationsResourceWithStreamin
531548

532549
@cached_property
533550
def rerankings(self) -> rerankings.RerankingsResourceWithStreamingResponse:
551+
"""
552+
Rerank legal documents by their relevance to queries with Isaacus legal AI rerankers.
553+
"""
534554
from .resources.rerankings import RerankingsResourceWithStreamingResponse
535555

536556
return RerankingsResourceWithStreamingResponse(self._client.rerankings)
@@ -556,6 +576,7 @@ def __init__(self, client: AsyncIsaacus) -> None:
556576

557577
@cached_property
558578
def embeddings(self) -> embeddings.AsyncEmbeddingsResourceWithStreamingResponse:
579+
"""Embed legal texts with Isaacus legal AI embedders."""
559580
from .resources.embeddings import AsyncEmbeddingsResourceWithStreamingResponse
560581

561582
return AsyncEmbeddingsResourceWithStreamingResponse(self._client.embeddings)
@@ -568,6 +589,9 @@ def classifications(self) -> classifications.AsyncClassificationsResourceWithStr
568589

569590
@cached_property
570591
def rerankings(self) -> rerankings.AsyncRerankingsResourceWithStreamingResponse:
592+
"""
593+
Rerank legal documents by their relevance to queries with Isaacus legal AI rerankers.
594+
"""
571595
from .resources.rerankings import AsyncRerankingsResourceWithStreamingResponse
572596

573597
return AsyncRerankingsResourceWithStreamingResponse(self._client.rerankings)

src/isaacus/resources/classifications/classifications.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
class ClassificationsResource(SyncAPIResource):
2020
@cached_property
2121
def universal(self) -> UniversalResource:
22+
"""Classify legal documents with Isaacus legal AI classifiers."""
2223
return UniversalResource(self._client)
2324

2425
@cached_property
@@ -44,6 +45,7 @@ def with_streaming_response(self) -> ClassificationsResourceWithStreamingRespons
4445
class AsyncClassificationsResource(AsyncAPIResource):
4546
@cached_property
4647
def universal(self) -> AsyncUniversalResource:
48+
"""Classify legal documents with Isaacus legal AI classifiers."""
4749
return AsyncUniversalResource(self._client)
4850

4951
@cached_property
@@ -72,6 +74,7 @@ def __init__(self, classifications: ClassificationsResource) -> None:
7274

7375
@cached_property
7476
def universal(self) -> UniversalResourceWithRawResponse:
77+
"""Classify legal documents with Isaacus legal AI classifiers."""
7578
return UniversalResourceWithRawResponse(self._classifications.universal)
7679

7780

@@ -81,6 +84,7 @@ def __init__(self, classifications: AsyncClassificationsResource) -> None:
8184

8285
@cached_property
8386
def universal(self) -> AsyncUniversalResourceWithRawResponse:
87+
"""Classify legal documents with Isaacus legal AI classifiers."""
8488
return AsyncUniversalResourceWithRawResponse(self._classifications.universal)
8589

8690

@@ -90,6 +94,7 @@ def __init__(self, classifications: ClassificationsResource) -> None:
9094

9195
@cached_property
9296
def universal(self) -> UniversalResourceWithStreamingResponse:
97+
"""Classify legal documents with Isaacus legal AI classifiers."""
9398
return UniversalResourceWithStreamingResponse(self._classifications.universal)
9499

95100

@@ -99,4 +104,5 @@ def __init__(self, classifications: AsyncClassificationsResource) -> None:
99104

100105
@cached_property
101106
def universal(self) -> AsyncUniversalResourceWithStreamingResponse:
107+
"""Classify legal documents with Isaacus legal AI classifiers."""
102108
return AsyncUniversalResourceWithStreamingResponse(self._classifications.universal)

src/isaacus/resources/classifications/universal/universal.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525

2626

2727
class UniversalResource(SyncAPIResource):
28+
"""Classify legal documents with Isaacus legal AI classifiers."""
29+
2830
@cached_property
2931
def with_raw_response(self) -> UniversalResourceWithRawResponse:
3032
"""
@@ -126,6 +128,8 @@ def create(
126128

127129

128130
class AsyncUniversalResource(AsyncAPIResource):
131+
"""Classify legal documents with Isaacus legal AI classifiers."""
132+
129133
@cached_property
130134
def with_raw_response(self) -> AsyncUniversalResourceWithRawResponse:
131135
"""

src/isaacus/resources/embeddings.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525

2626

2727
class EmbeddingsResource(SyncAPIResource):
28+
"""Embed legal texts with Isaacus legal AI embedders."""
29+
2830
@cached_property
2931
def with_raw_response(self) -> EmbeddingsResourceWithRawResponse:
3032
"""
@@ -118,6 +120,8 @@ def create(
118120

119121

120122
class AsyncEmbeddingsResource(AsyncAPIResource):
123+
"""Embed legal texts with Isaacus legal AI embedders."""
124+
121125
@cached_property
122126
def with_raw_response(self) -> AsyncEmbeddingsResourceWithRawResponse:
123127
"""

src/isaacus/resources/extractions/extractions.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
class ExtractionsResource(SyncAPIResource):
2020
@cached_property
2121
def qa(self) -> QAResource:
22+
"""Extract information from legal documents with Isaacus legal AI extractors."""
2223
return QAResource(self._client)
2324

2425
@cached_property
@@ -44,6 +45,7 @@ def with_streaming_response(self) -> ExtractionsResourceWithStreamingResponse:
4445
class AsyncExtractionsResource(AsyncAPIResource):
4546
@cached_property
4647
def qa(self) -> AsyncQAResource:
48+
"""Extract information from legal documents with Isaacus legal AI extractors."""
4749
return AsyncQAResource(self._client)
4850

4951
@cached_property
@@ -72,6 +74,7 @@ def __init__(self, extractions: ExtractionsResource) -> None:
7274

7375
@cached_property
7476
def qa(self) -> QAResourceWithRawResponse:
77+
"""Extract information from legal documents with Isaacus legal AI extractors."""
7578
return QAResourceWithRawResponse(self._extractions.qa)
7679

7780

@@ -81,6 +84,7 @@ def __init__(self, extractions: AsyncExtractionsResource) -> None:
8184

8285
@cached_property
8386
def qa(self) -> AsyncQAResourceWithRawResponse:
87+
"""Extract information from legal documents with Isaacus legal AI extractors."""
8488
return AsyncQAResourceWithRawResponse(self._extractions.qa)
8589

8690

@@ -90,6 +94,7 @@ def __init__(self, extractions: ExtractionsResource) -> None:
9094

9195
@cached_property
9296
def qa(self) -> QAResourceWithStreamingResponse:
97+
"""Extract information from legal documents with Isaacus legal AI extractors."""
9398
return QAResourceWithStreamingResponse(self._extractions.qa)
9499

95100

@@ -99,4 +104,5 @@ def __init__(self, extractions: AsyncExtractionsResource) -> None:
99104

100105
@cached_property
101106
def qa(self) -> AsyncQAResourceWithStreamingResponse:
107+
"""Extract information from legal documents with Isaacus legal AI extractors."""
102108
return AsyncQAResourceWithStreamingResponse(self._extractions.qa)

src/isaacus/resources/extractions/qa/qa.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525

2626

2727
class QAResource(SyncAPIResource):
28+
"""Extract information from legal documents with Isaacus legal AI extractors."""
29+
2830
@cached_property
2931
def with_raw_response(self) -> QAResourceWithRawResponse:
3032
"""
@@ -125,6 +127,8 @@ def create(
125127

126128

127129
class AsyncQAResource(AsyncAPIResource):
130+
"""Extract information from legal documents with Isaacus legal AI extractors."""
131+
128132
@cached_property
129133
def with_raw_response(self) -> AsyncQAResourceWithRawResponse:
130134
"""

src/isaacus/resources/rerankings.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525

2626

2727
class RerankingsResource(SyncAPIResource):
28+
"""
29+
Rerank legal documents by their relevance to queries with Isaacus legal AI rerankers.
30+
"""
31+
2832
@cached_property
2933
def with_raw_response(self) -> RerankingsResourceWithRawResponse:
3034
"""
@@ -136,6 +140,10 @@ def create(
136140

137141

138142
class AsyncRerankingsResource(AsyncAPIResource):
143+
"""
144+
Rerank legal documents by their relevance to queries with Isaacus legal AI rerankers.
145+
"""
146+
139147
@cached_property
140148
def with_raw_response(self) -> AsyncRerankingsResourceWithRawResponse:
141149
"""

0 commit comments

Comments
 (0)