diff --git a/agent_doc/agents.py b/agents/agent_doc/agents.py similarity index 100% rename from agent_doc/agents.py rename to agents/agent_doc/agents.py diff --git a/agent_doc/crew.py b/agents/agent_doc/crew.py similarity index 100% rename from agent_doc/crew.py rename to agents/agent_doc/crew.py diff --git a/agent_doc/tasks.py b/agents/agent_doc/tasks.py similarity index 100% rename from agent_doc/tasks.py rename to agents/agent_doc/tasks.py diff --git a/agent_doc/tools.py b/agents/agent_doc/tools.py similarity index 100% rename from agent_doc/tools.py rename to agents/agent_doc/tools.py diff --git a/investment_risk_analyst_agent/__init__.py b/agents/investment_risk_analyst_agent/__init__.py similarity index 100% rename from investment_risk_analyst_agent/__init__.py rename to agents/investment_risk_analyst_agent/__init__.py diff --git a/investment_risk_analyst_agent/agents.py b/agents/investment_risk_analyst_agent/agents.py similarity index 97% rename from investment_risk_analyst_agent/agents.py rename to agents/investment_risk_analyst_agent/agents.py index 532c873..29d4cb8 100644 --- a/investment_risk_analyst_agent/agents.py +++ b/agents/investment_risk_analyst_agent/agents.py @@ -1,5 +1,5 @@ from crewai import Agent -from investment_risk_analyst_agent.tools import search_tool,scrape_tool +from .tools import search_tool,scrape_tool from dotenv import load_dotenv load_dotenv() from langchain_google_genai import ChatGoogleGenerativeAI diff --git a/investment_risk_analyst_agent/crew.py b/agents/investment_risk_analyst_agent/crew.py similarity index 81% rename from investment_risk_analyst_agent/crew.py rename to agents/investment_risk_analyst_agent/crew.py index e6ff0b5..18968c0 100644 --- a/investment_risk_analyst_agent/crew.py +++ b/agents/investment_risk_analyst_agent/crew.py @@ -4,8 +4,8 @@ from langchain_google_genai import ChatGoogleGenerativeAI # import settings import os -from investment_risk_analyst_agent.agents import data_analyst_agent,trading_strategy_agent,execution_agent,risk_management_agent -from investment_risk_analyst_agent.tasks import data_analysis_task,strategy_development_task,risk_assessment_task,execution_planning_task +from .agents import data_analyst_agent,trading_strategy_agent,execution_agent,risk_management_agent +from .tasks import data_analysis_task,strategy_development_task,risk_assessment_task,execution_planning_task llm=ChatGoogleGenerativeAI(model="gemini-1.5-flash-latest", verbose=True, diff --git a/investment_risk_analyst_agent/tasks.py b/agents/investment_risk_analyst_agent/tasks.py similarity index 90% rename from investment_risk_analyst_agent/tasks.py rename to agents/investment_risk_analyst_agent/tasks.py index c71de9f..421a1e9 100644 --- a/investment_risk_analyst_agent/tasks.py +++ b/agents/investment_risk_analyst_agent/tasks.py @@ -1,6 +1,6 @@ from crewai import Task -from investment_risk_analyst_agent.tools import search_tool,scrape_tool -from investment_risk_analyst_agent.agents import data_analyst_agent,trading_strategy_agent,execution_agent,risk_management_agent +from .tools import search_tool,scrape_tool +from .agents import data_analyst_agent,trading_strategy_agent,execution_agent,risk_management_agent data_analysis_task = Task( description=( diff --git a/investment_risk_analyst_agent/tools.py b/agents/investment_risk_analyst_agent/tools.py similarity index 100% rename from investment_risk_analyst_agent/tools.py rename to agents/investment_risk_analyst_agent/tools.py diff --git a/job_posting_agent/agents.py b/agents/job_posting_agent/agents.py similarity index 100% rename from job_posting_agent/agents.py rename to agents/job_posting_agent/agents.py diff --git a/job_posting_agent/crew.py b/agents/job_posting_agent/crew.py similarity index 100% rename from job_posting_agent/crew.py rename to agents/job_posting_agent/crew.py diff --git a/job_posting_agent/tasks.py b/agents/job_posting_agent/tasks.py similarity index 100% rename from job_posting_agent/tasks.py rename to agents/job_posting_agent/tasks.py diff --git a/job_posting_agent/tools.py b/agents/job_posting_agent/tools.py similarity index 100% rename from job_posting_agent/tools.py rename to agents/job_posting_agent/tools.py diff --git a/tech_news_agent/__init__.py b/agents/tech_news_agent/__init__.py similarity index 100% rename from tech_news_agent/__init__.py rename to agents/tech_news_agent/__init__.py diff --git a/tech_news_agent/agents.py b/agents/tech_news_agent/agents.py similarity index 100% rename from tech_news_agent/agents.py rename to agents/tech_news_agent/agents.py diff --git a/tech_news_agent/crew.py b/agents/tech_news_agent/crew.py similarity index 100% rename from tech_news_agent/crew.py rename to agents/tech_news_agent/crew.py diff --git a/tech_news_agent/tasks.py b/agents/tech_news_agent/tasks.py similarity index 100% rename from tech_news_agent/tasks.py rename to agents/tech_news_agent/tasks.py diff --git a/tech_news_agent/tools.py b/agents/tech_news_agent/tools.py similarity index 100% rename from tech_news_agent/tools.py rename to agents/tech_news_agent/tools.py diff --git a/api.py b/api.py index bf99b39..bca661c 100644 --- a/api.py +++ b/api.py @@ -29,10 +29,10 @@ from sendgrid import SendGridAPIClient from sendgrid.helpers.mail import Mail from uuid import uuid4 -from tech_news_agent.crew import run_crew -from investment_risk_analyst_agent.crew import run_investment_crew -from agent_doc.crew import run_doc_crew -from job_posting_agent.crew import run_job_crew +from agents.tech_news_agent.crew import run_crew +from agents.investment_risk_analyst_agent.crew import run_investment_crew +from agents.agent_doc.crew import run_doc_crew +from agents.job_posting_agent.crew import run_job_crew from langchain.agents import AgentExecutor from langchain_core.prompts import ChatPromptTemplate from langchain_cohere.react_multi_hop.agent import create_cohere_react_agent diff --git a/data/iris.csv b/data/iris.csv new file mode 100644 index 0000000..1b9d029 --- /dev/null +++ b/data/iris.csv @@ -0,0 +1,151 @@ +"sepal.length","sepal.width","petal.length","petal.width","variety" +5.1,3.5,1.4,.2,"Setosa" +4.9,3,1.4,.2,"Setosa" +4.7,3.2,1.3,.2,"Setosa" +4.6,3.1,1.5,.2,"Setosa" +5,3.6,1.4,.2,"Setosa" +5.4,3.9,1.7,.4,"Setosa" +4.6,3.4,1.4,.3,"Setosa" +5,3.4,1.5,.2,"Setosa" +4.4,2.9,1.4,.2,"Setosa" +4.9,3.1,1.5,.1,"Setosa" +5.4,3.7,1.5,.2,"Setosa" +4.8,3.4,1.6,.2,"Setosa" +4.8,3,1.4,.1,"Setosa" +4.3,3,1.1,.1,"Setosa" +5.8,4,1.2,.2,"Setosa" +5.7,4.4,1.5,.4,"Setosa" +5.4,3.9,1.3,.4,"Setosa" +5.1,3.5,1.4,.3,"Setosa" +5.7,3.8,1.7,.3,"Setosa" +5.1,3.8,1.5,.3,"Setosa" +5.4,3.4,1.7,.2,"Setosa" +5.1,3.7,1.5,.4,"Setosa" +4.6,3.6,1,.2,"Setosa" +5.1,3.3,1.7,.5,"Setosa" +4.8,3.4,1.9,.2,"Setosa" +5,3,1.6,.2,"Setosa" +5,3.4,1.6,.4,"Setosa" +5.2,3.5,1.5,.2,"Setosa" +5.2,3.4,1.4,.2,"Setosa" +4.7,3.2,1.6,.2,"Setosa" +4.8,3.1,1.6,.2,"Setosa" +5.4,3.4,1.5,.4,"Setosa" +5.2,4.1,1.5,.1,"Setosa" +5.5,4.2,1.4,.2,"Setosa" +4.9,3.1,1.5,.2,"Setosa" +5,3.2,1.2,.2,"Setosa" +5.5,3.5,1.3,.2,"Setosa" +4.9,3.6,1.4,.1,"Setosa" +4.4,3,1.3,.2,"Setosa" +5.1,3.4,1.5,.2,"Setosa" +5,3.5,1.3,.3,"Setosa" +4.5,2.3,1.3,.3,"Setosa" +4.4,3.2,1.3,.2,"Setosa" +5,3.5,1.6,.6,"Setosa" +5.1,3.8,1.9,.4,"Setosa" +4.8,3,1.4,.3,"Setosa" +5.1,3.8,1.6,.2,"Setosa" +4.6,3.2,1.4,.2,"Setosa" +5.3,3.7,1.5,.2,"Setosa" +5,3.3,1.4,.2,"Setosa" +7,3.2,4.7,1.4,"Versicolor" +6.4,3.2,4.5,1.5,"Versicolor" +6.9,3.1,4.9,1.5,"Versicolor" +5.5,2.3,4,1.3,"Versicolor" +6.5,2.8,4.6,1.5,"Versicolor" +5.7,2.8,4.5,1.3,"Versicolor" +6.3,3.3,4.7,1.6,"Versicolor" +4.9,2.4,3.3,1,"Versicolor" +6.6,2.9,4.6,1.3,"Versicolor" +5.2,2.7,3.9,1.4,"Versicolor" +5,2,3.5,1,"Versicolor" +5.9,3,4.2,1.5,"Versicolor" +6,2.2,4,1,"Versicolor" +6.1,2.9,4.7,1.4,"Versicolor" +5.6,2.9,3.6,1.3,"Versicolor" +6.7,3.1,4.4,1.4,"Versicolor" +5.6,3,4.5,1.5,"Versicolor" +5.8,2.7,4.1,1,"Versicolor" +6.2,2.2,4.5,1.5,"Versicolor" +5.6,2.5,3.9,1.1,"Versicolor" +5.9,3.2,4.8,1.8,"Versicolor" +6.1,2.8,4,1.3,"Versicolor" +6.3,2.5,4.9,1.5,"Versicolor" +6.1,2.8,4.7,1.2,"Versicolor" +6.4,2.9,4.3,1.3,"Versicolor" +6.6,3,4.4,1.4,"Versicolor" +6.8,2.8,4.8,1.4,"Versicolor" +6.7,3,5,1.7,"Versicolor" +6,2.9,4.5,1.5,"Versicolor" +5.7,2.6,3.5,1,"Versicolor" +5.5,2.4,3.8,1.1,"Versicolor" +5.5,2.4,3.7,1,"Versicolor" +5.8,2.7,3.9,1.2,"Versicolor" +6,2.7,5.1,1.6,"Versicolor" +5.4,3,4.5,1.5,"Versicolor" +6,3.4,4.5,1.6,"Versicolor" +6.7,3.1,4.7,1.5,"Versicolor" +6.3,2.3,4.4,1.3,"Versicolor" +5.6,3,4.1,1.3,"Versicolor" +5.5,2.5,4,1.3,"Versicolor" +5.5,2.6,4.4,1.2,"Versicolor" +6.1,3,4.6,1.4,"Versicolor" +5.8,2.6,4,1.2,"Versicolor" +5,2.3,3.3,1,"Versicolor" +5.6,2.7,4.2,1.3,"Versicolor" +5.7,3,4.2,1.2,"Versicolor" +5.7,2.9,4.2,1.3,"Versicolor" +6.2,2.9,4.3,1.3,"Versicolor" +5.1,2.5,3,1.1,"Versicolor" +5.7,2.8,4.1,1.3,"Versicolor" +6.3,3.3,6,2.5,"Virginica" +5.8,2.7,5.1,1.9,"Virginica" +7.1,3,5.9,2.1,"Virginica" +6.3,2.9,5.6,1.8,"Virginica" +6.5,3,5.8,2.2,"Virginica" +7.6,3,6.6,2.1,"Virginica" +4.9,2.5,4.5,1.7,"Virginica" +7.3,2.9,6.3,1.8,"Virginica" +6.7,2.5,5.8,1.8,"Virginica" +7.2,3.6,6.1,2.5,"Virginica" +6.5,3.2,5.1,2,"Virginica" +6.4,2.7,5.3,1.9,"Virginica" +6.8,3,5.5,2.1,"Virginica" +5.7,2.5,5,2,"Virginica" +5.8,2.8,5.1,2.4,"Virginica" +6.4,3.2,5.3,2.3,"Virginica" +6.5,3,5.5,1.8,"Virginica" +7.7,3.8,6.7,2.2,"Virginica" +7.7,2.6,6.9,2.3,"Virginica" +6,2.2,5,1.5,"Virginica" +6.9,3.2,5.7,2.3,"Virginica" +5.6,2.8,4.9,2,"Virginica" +7.7,2.8,6.7,2,"Virginica" +6.3,2.7,4.9,1.8,"Virginica" +6.7,3.3,5.7,2.1,"Virginica" +7.2,3.2,6,1.8,"Virginica" +6.2,2.8,4.8,1.8,"Virginica" +6.1,3,4.9,1.8,"Virginica" +6.4,2.8,5.6,2.1,"Virginica" +7.2,3,5.8,1.6,"Virginica" +7.4,2.8,6.1,1.9,"Virginica" +7.9,3.8,6.4,2,"Virginica" +6.4,2.8,5.6,2.2,"Virginica" +6.3,2.8,5.1,1.5,"Virginica" +6.1,2.6,5.6,1.4,"Virginica" +7.7,3,6.1,2.3,"Virginica" +6.3,3.4,5.6,2.4,"Virginica" +6.4,3.1,5.5,1.8,"Virginica" +6,3,4.8,1.8,"Virginica" +6.9,3.1,5.4,2.1,"Virginica" +6.7,3.1,5.6,2.4,"Virginica" +6.9,3.1,5.1,2.3,"Virginica" +5.8,2.7,5.1,1.9,"Virginica" +6.8,3.2,5.9,2.3,"Virginica" +6.7,3.3,5.7,2.5,"Virginica" +6.7,3,5.2,2.3,"Virginica" +6.3,2.5,5,1.9,"Virginica" +6.5,3,5.2,2,"Virginica" +6.2,3.4,5.4,2.3,"Virginica" +5.9,3,5.1,1.8,"Virginica" \ No newline at end of file