Skip to content

Commit

Permalink
chore(deps): update pre-commit ruff version
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-twhite committed Feb 3, 2025
1 parent 396de31 commit 9263a9d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.0
rev: v0.9.4
hooks:
- id: ruff
- id: ruff-format
4 changes: 2 additions & 2 deletions agent_gateway/gateway/planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ def generate_gateway_prompt(

# Tools
for i, tool in enumerate(tools):
prefix += f"{i+1}. {tool.description}\n"
prefix += f"{i + 1}. {tool.description}\n"

# FUSE operation
prefix += f"{i+2}. {FUSE_DESCRIPTION}\n\n"
prefix += f"{i + 2}. {FUSE_DESCRIPTION}\n\n"

# Guidelines
prefix += (
Expand Down
3 changes: 1 addition & 2 deletions agent_gateway/tools/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,7 @@ def _to_args_and_kwargs(self, tool_input: Union[str, Dict]) -> Tuple[Tuple, Dict
all_args = list(args) + list(kwargs.values())
if len(all_args) != 1:
raise ToolException(
f"Too many arguments to single-input tool {self.name}."
f" Args: {all_args}"
f"Too many arguments to single-input tool {self.name}. Args: {all_args}"
)
return tuple(all_args), {}

Expand Down
2 changes: 1 addition & 1 deletion agent_gateway/tools/snowflake_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def _prepare_analyst_description(
self, name, service_topic, data_source_description
):
base_analyst_description = f"""{name}(prompt: str) -> str:\n
- takes a user's question about {service_topic } and queries {data_source_description}\n
- takes a user's question about {service_topic} and queries {data_source_description}\n
- Returns the relevant metrics about {service_topic}\n"""

return base_analyst_description
Expand Down

0 comments on commit 9263a9d

Please sign in to comment.