1515from .exceptions import JigsawStackError
1616from .image_generation import ImageGeneration , AsyncImageGeneration
1717from .classification import Classification , AsyncClassification
18+ from .prompt_engine import PromptEngine , AsyncPromptEngine
1819
1920
2021class 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
129137class 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