Skip to content

Commit

Permalink
fix: signature
Browse files Browse the repository at this point in the history
  • Loading branch information
lukealvoeiro committed Sep 12, 2024
1 parent 682aa1e commit 37d696b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/goose/command/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ def get_completions(self, query: str) -> List[Completion]:
"""
return []

def execute(self, query: str, surrounding_context: str) -> Optional[str]:
def execute(self, query: str) -> Optional[str]:
"""
Execute's the command and replaces it with the output.
Args:
query (str): The query to execute.
surrounding_context (str): The full user message that the query is a part of.
"""
return ""
2 changes: 1 addition & 1 deletion src/goose/command/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ def get_completions(self, query: str) -> List[Completion]:
)
return completions

def execute(self, query: str, _: str) -> str | None:
def execute(self, query: str) -> str | None:
return query

0 comments on commit 37d696b

Please sign in to comment.