master
dependabot/pip/ruff-gte-0.5.1-and-lt-0.11.8
dependabot/pip/pydantic-2.11.3
dependabot/pip/transformers-gte-4.39.0-and-lt-4.52.0
dependabot/pip/pypdf-5.4.0
6.9.0
668
backup-branch
Pydantic-validation-2
structured_output
revert-563-dependabot/pip/pymdown-extensions-approx-eq-10.9
agentops
pydantic_validation
colored-output
swarm_ubiiuassef_gmail_com_qwqew_cy4HA
swarm_efmphone_gmail_com_testing_gkSGU
swarm_ekleven_vangelis_tech_3_perspectives_BMX8T
swarm_yun275402_gmail_com_sfasdfasdfsadf_DbX9Y
swarm_amirrezasalimi0_gmail_com_google_search_mlxuW
faster-install
new-pydantic
revert-388-fix-ci-2
memory
revert-250-master
flowtoagent
fix-openai
clean-history
grit/923f7c6f-0958-480b-8748-ea6bbf1c2084
dockerize
jojo-group-chat
vllm
MythGen
blog-agent
bing-chat
discord-bot-framework
discord-bots
main
discord-bot
group-chat
huggingface
kyegomez-patch-1
NewTools
WorkerULTRANODE
workerULTRANODE
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.0.7
0.0.8
0.0.9
0.1.0
0.1.1
0.1.3
0.1.3.0
0.1.4
0.1.5
0.1.6
0.1.7
0.1.9
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.7.1
0.2.8
0.2.8.1
0.2.9
0.3.0
0.3.1
0.3.2
0.3.3
0.3.4
0.3.5
0.3.6
0.3.7
0.3.8
0.3.9
0.4.0
0.4.1
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.5.0
0.5.1
0.5.2
0.5.3
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.6.0
0.6.4
0.6.5
0.6.6
0.7.0
0.7.01
0.7.1
0.7.2
0.7.4
0.7.5
0.7.6
0.7.7
0.7.8
0.7.9
0.8.0
0.8.1
0.8.2
0.8.3
0.8.4
0.8.5
0.8.6
0.8.7
0.8.8
0.8.9
0.9.0
0.9.00
0.9.1
0.9.2
0.9.3
0.9.5
0.9.6
0.9.7
0.9.8
0.9.9
1.0.0
1.0.00
1.0.1
1.0.2
1.0.20
1.0.3
1.0.4
1.0.5
1.0.6
1.0.7
1.0.8
1.0.9
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.41
1.1.5
1.1.6
1.1.7
1.1.8
1.1.9
1.2.0
1.2.1
1.2.2
1.2.3
1.2.4
1.2.5
1.2.6
1.2.7
1.2.9
1.3.0
1.3.1
1.3.2
2.0.2
2.0.5
2.1.7
2.1.9
2.2.1
2.2.2
2.3.1
2.4.2
2.5.0
5.3.7
6.8.1
${ noResults }
4 Commits (d1e53a6b75734586a94fdcfda1cf6de6d2a7d5a4)
Author | SHA1 | Message | Date |
---|---|---|---|
|
d1e53a6b75 |
update discordwithweb, configure sourcery
|
2 years ago |
|
8fd9dab80e |
aider: Refactored `apps/discordwithweb.py` to use the `WebpageQATool` from `swarms/tools/autogpt.py` for web search.
# Aider chat conversation: USER: let's refactor `apps/discordwithweb.py` to use the webpageqatool from `swarms/tools/autogpt.py` in order to perform a web search. ASSISTANT: To refactor `apps/discordwithweb.py` to use the `WebpageQATool` from `swarms/tools/autogpt.py`, we need to import `WebpageQATool` and replace the usage of `WebSearchTool` with `WebpageQATool`. Here are the steps: 1. Import `WebpageQATool` from `swarms/tools/autogpt.py`. 2. Replace the instantiation of `WebSearchTool` with `WebpageQATool`. 3. Update the `query` command to use `WebpageQATool` instead of `WebSearchTool`. Here are the changes: <source>python apps/discordwithweb.py <<<<<<< HEAD import discord from discord.ext import commands import os import requests from swarms.agents import Worker from swarms.agents.memory import VectorStoreRetriever from swarms.tools.autogpt import WebSearchTool ======= import discord from discord.ext import commands import os from swarms.agents import Worker from swarms.agents.memory import VectorStoreRetriever from swarms.tools.autogpt import WebpageQATool >>>>>>> updated </source> <source>python apps/discordwithweb.py <<<<<<< HEAD # Tools setup web_search = WebSearchTool() ======= # Tools setup web_search = WebpageQATool() >>>>>>> updated </source> <source>python apps/discordwithweb.py <<<<<<< HEAD @bot.command() async def query(ctx, *, input): response = agent.run(input) await ctx.send(response) ======= @bot.command() async def query(ctx, *, input): response = web_search.run(input) await ctx.send(response) >>>>>>> updated </source> |
2 years ago |
|
088dbcdec1 |
aider: Refactored `apps/discordwithweb.py` to use the worker as the main language model and the `WebSearchTool` from the `swarms/tools/autogpt.py` worker class, and imported the actual agent class instead of the abstract one.
# Aider chat conversation: USER: hey, we need to refactor `apps/discordwithweb.py` ASSISTANT: Sure, I'd be happy to help with that. Could you please provide more details about the specific changes you'd like to make to the `apps/discordwithweb.py` file? USER: yes - we need to refactor it to use the worker as the main llm, and use the `WebSearchTool` that's part of the class in the `swarms/tools/autogpt.py` worker class. also, the agent class that's being imported from swarms is an abstract class used for tyhpe validation only, we need to import the actual agent class. ASSISTANT: To refactor the `apps/discordwithweb.py` file to use the worker as the main language model and use the `WebSearchTool` from the `swarms/tools/autogpt.py` file, we need to make the following changes: 1. Import the `WebSearchTool` from `swarms/tools/autogpt.py`. 2. Import the actual `Agent` class instead of the abstract one. 3. Replace the current `llm` with the worker. 4. Replace the current `WebSearchTool` with the one imported from `swarms/tools/autogpt.py`. Here are the proposed changes: <source>python apps/discordwithweb.py <<<<<<< HEAD import discord from discord.ext import commands import os import openai import requests from swarms.agents import Agent from swarms.agents.memory import VectorStoreRetriever from swarms.tools.base import BaseTool ======= import discord from discord.ext import commands import os import requests from swarms.agents import Worker from swarms.agents.memory import VectorStoreRetriever from swarms.tools.autogpt import WebSearchTool >>>>>>> updated </source> <source>python apps/discordwithweb.py <<<<<<< HEAD # OpenAI API setup openai.api_key = os.getenv("OPENAI_API_KEY") # Memory setup vectorstore_client = VectorStoreClient() retriever = VectorStoreRetriever(vectorstore_client) # Tools setup web_search = WebSearchTool() memory = MemoryTool(retriever) tools = [web_search, memory] # Create the agent agent = Agent( name="DiscordAssistant", llm=openai, memory=retriever, tools=tools ) ======= # Worker setup worker = Worker() # Memory setup vectorstore_client = VectorStoreClient() retriever = VectorStoreRetriever(vectorstore_client) # Tools setup web_search = WebSearchTool() memory = MemoryTool(retriever) tools = [web_search, memory] # Create the agent agent = Agent( name="DiscordAssistant", llm=worker, memory=retriever, tools=tools ) >>>>>>> updated </source> Please confirm these changes. |
2 years ago |
|
0f58568145 |
prep aider, move file
|
2 years ago |