Webpilot

tool

webpilot让AI可以访问URL

2171
@2171
·
2 years ago
867
0
2K
Updated 2 years ago
Created Oct 16, 2024
webpilot.py
Python · 88 lines
import asyncio
import json
import aiohttp
from typing import Callable, Any, List, Optional


class EventEmitter:
    def __init__(self, event_emitter: Optional[Callable[[dict], Any]] = None):
        self.event_emitter = event_emitter

    async def emit(self, event_type: str, data: dict):
        if self.event_emitter:

webpilot让AI可以访问URL


0