Skip to content

Commit 2cd1ffe

Browse files
authored
Merge pull request #15 from JigsawStack/check
Improve sdk
2 parents 2779f58 + bb1d10d commit 2cd1ffe

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

jigsawstack/prompt_engine.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class PromptEngineRunParams(TypedDict):
1616
prompt:str
1717
inputs: NotRequired[List[object]]
1818
return_prompt: Union[str, List[object], Dict[str, str]]
19-
grok_key: NotRequired[str]
19+
# grok_key: NotRequired[str]
2020
input_values: NotRequired[Dict[str, str]]
2121

2222
class PromptEngineExecuteParams(TypedDict):
@@ -30,7 +30,7 @@ class PromptEngineRunResponse(TypedDict):
3030

3131
class PromptEngineCreateParams(TypedDict):
3232
prompt: str
33-
grok_key: NotRequired[str]
33+
# grok_key: NotRequired[str]
3434
inputs: NotRequired[List[object]]
3535
return_prompt: Union[str, List[object], Dict[str, str]]
3636

@@ -100,15 +100,15 @@ def delete(self, id:str) -> PromptEngineDeleteResponse:
100100
path=path,params={},verb="DELETE").perform_with_content()
101101
return resp
102102

103-
def run(self, params:PromptEngineRunParams) -> PromptEngineRunResponse:
103+
def run_prompt_direct(self, params:PromptEngineRunParams) -> PromptEngineRunResponse:
104104
path = "/prompt_engine/run"
105105
resp = Request(
106106
api_key=self.api_key,
107107
api_url=self.api_url,
108108
path=path,params=cast(Dict[Any, Any], params),verb="post").perform_with_content()
109109
return resp
110110

111-
def execute(self, params:PromptEngineExecuteParams) -> PromptEngineRunResponse:
111+
def run(self, params:PromptEngineExecuteParams) -> PromptEngineRunResponse:
112112
id = params.get("id")
113113
path = f"/prompt_engine/{id}"
114114
resp = Request(

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name="jigsawstack",
9-
version="0.1.9",
9+
version="0.1.10",
1010
description="JigsawStack Python SDK",
1111
long_description=open("README.md", encoding="utf8").read(),
1212
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)