Fix: Type errors and linter warnings
This commit is contained in:
@@ -29,7 +29,7 @@ _core_llm_cache = {}
|
|||||||
|
|
||||||
# Optional MLflow integration
|
# Optional MLflow integration
|
||||||
try:
|
try:
|
||||||
import mlflow
|
import mlflow # type: ignore # pylint: disable=import-error
|
||||||
MLFLOW_AVAILABLE = True
|
MLFLOW_AVAILABLE = True
|
||||||
except ImportError:
|
except ImportError:
|
||||||
MLFLOW_AVAILABLE = False
|
MLFLOW_AVAILABLE = False
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ const TeamHuddleWidget: React.FC = () => {
|
|||||||
return runs.slice(0, 5).map((run) => {
|
return runs.slice(0, 5).map((run) => {
|
||||||
const agentType = String(run.agent_type || 'strategy');
|
const agentType = String(run.agent_type || 'strategy');
|
||||||
// Simple heuristic for icon mapping
|
// Simple heuristic for icon mapping
|
||||||
let IconComponent = StrategyIcon;
|
let IconComponent: React.ElementType = StrategyIcon;
|
||||||
for (const key in ICON_BY_AGENT) {
|
for (const key in ICON_BY_AGENT) {
|
||||||
if (agentType.toLowerCase().includes(key)) {
|
if (agentType.toLowerCase().includes(key)) {
|
||||||
IconComponent = ICON_BY_AGENT[key];
|
IconComponent = ICON_BY_AGENT[key];
|
||||||
|
|||||||
Reference in New Issue
Block a user