Skip to content

Commit a13efcc

Browse files
committed
put back prompt engine
1 parent 94bbe5f commit a13efcc

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

jigsawstack/__init__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from .exceptions import JigsawStackError
1616
from .image_generation import ImageGeneration, AsyncImageGeneration
1717
from .classification import Classification, AsyncClassification
18+
from .prompt_engine import PromptEngine, AsyncPromptEngine
1819

1920

2021
class JigsawStack:
@@ -25,6 +26,7 @@ class JigsawStack:
2526
web: Web
2627
search: Search
2728
classification: Classification
29+
prompt_engine: PromptEngine
2830
api_key: str
2931
api_url: str
3032
headers: Dict[str, str]
@@ -125,6 +127,12 @@ def __init__(
125127
disable_request_logging=disable_request_logging,
126128
).classify
127129

130+
self.prompt_engine = PromptEngine(
131+
api_key=api_key,
132+
api_url=api_url,
133+
disable_request_logging=disable_request_logging,
134+
)
135+
128136

129137
class AsyncJigsawStack:
130138
validate: AsyncValidate
@@ -133,6 +141,7 @@ class AsyncJigsawStack:
133141
vision: AsyncVision
134142
image_generation: AsyncImageGeneration
135143
store: AsyncStore
144+
prompt_engine: AsyncPromptEngine
136145
api_key: str
137146
api_url: str
138147
disable_request_logging: bool
@@ -235,6 +244,12 @@ def __init__(
235244
disable_request_logging=disable_request_logging,
236245
).classify
237246

247+
self.prompt_engine = AsyncPromptEngine(
248+
api_key=api_key,
249+
api_url=api_url,
250+
disable_request_logging=disable_request_logging,
251+
)
252+
238253

239254
# Create a global instance of the Web class
240255
__all__ = ["JigsawStack", "Search", "JigsawStackError", "AsyncJigsawStack"]

0 commit comments

Comments
 (0)