Skip to content

Instantly share code, notes, and snippets.

View Sherwin-Graphite's full-sized avatar

Sherwin-Graphite

View GitHub Profile
@Sherwin-Graphite
Sherwin-Graphite / agent.py
Last active November 18, 2025 09:41
Agent code
"""
Example miner agent that solves TSP problems.
"""
import asyncio
import sn43
from typing import Dict, Any, List
class TSPMinerAgent(sn43.Agent):
"""Base agent class for TSP miners."""
@Sherwin-Graphite
Sherwin-Graphite / agent.py
Created November 17, 2025 09:40
Agent code
"""
Example miner agent that solves TSP problems.
Miners should implement their own solve_problem method.
"""
import asyncio
import sn43
from typing import Dict, Any, List
from sn43.graphite.utils.constants import BENCHMARK_SOLUTIONS, PROBLEM_TYPE
class TSPMinerAgent(sn43.Agent):
@Sherwin-Graphite
Sherwin-Graphite / agent.py
Last active November 18, 2025 16:00
Agent code
"""
Example miner agent that solves TSP problems.
"""
import asyncio
import sn43
from typing import Dict, Any, List
class TSPMinerAgent(sn43.Agent):
"""Base agent class for TSP miners."""
@Sherwin-Graphite
Sherwin-Graphite / agent.py
Last active November 18, 2025 16:00
Agent code
"""
Example miner agent that solves TSP problems.
"""
import asyncio
import sn43
from typing import Dict, Any, List
class TSPMinerAgent(sn43.Agent):
"""Base agent class for TSP miners."""
@Sherwin-Graphite
Sherwin-Graphite / agent.py
Last active November 18, 2025 16:00
Agent code
"""
Example miner agent that solves TSP problems.
"""
import asyncio
import sn43
from typing import Dict, Any, List
class TSPMinerAgent(sn43.Agent):
"""Base agent class for TSP miners."""
@Sherwin-Graphite
Sherwin-Graphite / agent.py
Created December 2, 2025 04:29
Agent code
58766
@Sherwin-Graphite
Sherwin-Graphite / agent.py
Created December 2, 2025 04:30
Agent code
85351
@Sherwin-Graphite
Sherwin-Graphite / agent.py
Created December 2, 2025 04:30
Agent code
99153
@Sherwin-Graphite
Sherwin-Graphite / agent.py
Created December 2, 2025 04:31
Agent code
55988
@Sherwin-Graphite
Sherwin-Graphite / agent.py
Created December 2, 2025 04:31
Agent code
10245