Skip to content

Commit

Permalink
fix: remove the data dir parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
imotai committed Sep 12, 2023
1 parent c03deed commit 688b26c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion agent/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"grpc-google-iam-v1>=0.12.6",
"aiofiles",
"python-dotenv",
"openai"
"openai",
],
entry_points={
"console_scripts": [
Expand Down
3 changes: 3 additions & 0 deletions agent/src/octopus_agent/gpt_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
AsyncCallbackManagerForToolRun,
CallbackManagerForToolRun,
)


class AskQuestionInput(BaseModel):
question: str = Field(description="the question")

Expand Down Expand Up @@ -56,6 +58,7 @@ class ExecutePythonCodeInput(BaseModel):
description="the saved filename list", default=[]
)


class ExecutePythonCodeTool(StructuredTool):
name = "execute_python_code"
description = """Execute arbitrary Python code Returns a Markdown format string including return code, result, stdout, stderr, error"""
Expand Down
2 changes: 1 addition & 1 deletion agent/tests/agent_tool_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def kernel_sdk():
async def test_async_smoke_test(kernel_sdk):
code = "print('hello world!')"
sdk = kernel_sdk
api = OctopusAPIJsonOutput(sdk, api_data_dir)
api = OctopusAPIJsonOutput(sdk)
result = await api.arun(code)
assert not result["result"]
assert result["stdout"] == "hello world!\n"
Expand Down

0 comments on commit 688b26c

Please sign in to comment.