GitHub - sourangshupal/Trip-Planner-using-CrewAI (original) (raw)

CrewAI

🏖️ Trip Planner: Streamlit with CrewAI

Streamlit App

Introduction

Trip Planner leverages the CrewAI framework to automate and enhance the trip planning experience, integrating a CLI, FASTAPI, and a user-friendly Streamlit interface.

CrewAI Framework

CrewAI simplifies the orchestration of role-playing AI agents. In VacAIgent, these agents collaboratively decide on cities and craft a complete itinerary for your trip based on specified preferences, all accessible via a streamlined Streamlit user interface.

Flow Diagram

Flow Diagram

Running the Application

To experience the VacAIgent app:

Disclaimer: The application uses GEMINI by default. Ensure you have access to GEMINI's API and be aware of the associated costs.

Details & Explanation

Using LLM Models

To switch LLMs from differnet Providers

class TripAgents(): def init(self, llm: BaseChatModel = None): if llm is None: #self.llm = LLM(model="groq/deepseek-r1-distill-llama-70b") self.llm = LLM(model="gemini/gemini-2.5-flash") else: self.llm = llm

Connect to LLMs

Integrating Ollama with CrewAI

Pass the Ollama model to agents in the CrewAI framework:

agent = Agent(
    role='Local AI Expert',
    goal='Process information using a local model',
    backstory="An AI assistant running on local hardware.",
    llm=LLM(model="ollama/llama3.2", base_url="http://localhost:11434")
)

License

Trip Planner is open-sourced under the MIT License.