Former-commit-id: 5bf9aafe95
group-chat
Kye 1 year ago
parent 57d6b1c664
commit bce4c0a24a

@ -46,5 +46,9 @@ class MultiAgentDebate:
self.task = task self.task = task
def format_results(self, results): def format_results(self, results):
formatted_results = "\n".join([f"Agent {result['agent']} responded: {result['response']}" for result in results])
formatted_results = "\n".join(
[f"Agent {result['agent']} responded: {result['response']}" for result in results]
)
return formatted_results return formatted_results

@ -126,8 +126,6 @@ class WebpageQATool(BaseTool):
async def _arun(self, url: str, question: str) -> str: async def _arun(self, url: str, question: str) -> str:
raise NotImplementedError raise NotImplementedError
# # @tool
# code_intepret = CodeInterpreter()
import interpreter import interpreter
@ -198,3 +196,4 @@ def VQAinference(self, inputs):
return answer return answer

@ -8,6 +8,7 @@ from datetime import datetime
from pathlib import Path from pathlib import Path
from typing import Callable, Dict, List, Literal, Optional, Tuple, Union from typing import Callable, Dict, List, Literal, Optional, Tuple, Union
from langchain.tools import tool
from ptrace.debugger import ( from ptrace.debugger import (
NewProcessEvent, NewProcessEvent,
ProcessExecution, ProcessExecution,
@ -24,9 +25,6 @@ from swarms.tools.base import BaseToolSet, SessionGetter, ToolScope, tool
from swarms.utils.logger import logger from swarms.utils.logger import logger
from swarms.utils.main import ANSI, Color, Style # test from swarms.utils.main import ANSI, Color, Style # test
from langchain.tools import tool
#helpers #helpers
PipeType = Union[Literal["stdout"], Literal["stderr"]] PipeType = Union[Literal["stdout"], Literal["stderr"]]

@ -1,10 +1,12 @@
#speech to text tool #speech to text tool
import os import os
import subprocess
import whisperx
from pydub import AudioSegment from pydub import AudioSegment
from pytube import YouTube from pytube import YouTube
import whisperx
import subprocess
class SpeechToText: class SpeechToText:
def __init__( def __init__(

Loading…
Cancel
Save