Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update pre-commit ruff version #103

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.6
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