Spaces:
Sleeping
Sleeping
fredcaixeta
commited on
Commit
·
cd68aa5
1
Parent(s):
79a4707
go
Browse files- main_agent.py +1 -1
main_agent.py
CHANGED
|
@@ -159,7 +159,7 @@ async def get_match_performances(match_date: Optional[str] = None, opponent: Opt
|
|
| 159 |
except Exception as e:
|
| 160 |
return f"❌ Erro: {str(e)}"
|
| 161 |
|
| 162 |
-
@one_player_agent.tool_plain()
|
| 163 |
async def get_top_performances(metric: str = "goals", limit: int = 10) -> str:
|
| 164 |
valid = {"goals": ("goals", "Gols"), "assists": ("assists", "Assistências"), "contributions": ("goals + assists", "Contribuições"), "xg": ("xg", "xG"), "shots": ("shots", "Finalizações")}
|
| 165 |
if metric not in valid: return f"❌ Métricas: {', '.join(valid)}"
|
|
|
|
| 159 |
except Exception as e:
|
| 160 |
return f"❌ Erro: {str(e)}"
|
| 161 |
|
| 162 |
+
@one_player_agent.tool_plain()
|
| 163 |
async def get_top_performances(metric: str = "goals", limit: int = 10) -> str:
|
| 164 |
valid = {"goals": ("goals", "Gols"), "assists": ("assists", "Assistências"), "contributions": ("goals + assists", "Contribuições"), "xg": ("xg", "xG"), "shots": ("shots", "Finalizações")}
|
| 165 |
if metric not in valid: return f"❌ Métricas: {', '.join(valid)}"
|