mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
082db7a996
Co-authored-by: Suhas Deshpande <suhasdeshpande@users.noreply.github.com> Co-authored-by: Ariel Weinberger <Weinberger.Ariel@gmail.com> Co-authored-by: Suhas Deshpande <suhas2u@gmail.com>
1.1 KiB
1.1 KiB
CoAgents Starter CrewAI Flows
This example contains a simple starter project for CrewAI written in Python.
These instructions assume you are in the coagents-starter-crewai-flows/ directory
Running the Agent
First, install the backend dependencies:
Python SDK
cd agent-py
poetry install
Then, create a .env file inside ./agent-py with the following:
OPENAI_API_KEY=...
IMPORTANT: Make sure the OpenAI API Key you provide, supports gpt-4o.
Then, run the demo:
Python
poetry run demo
Running the UI
First, install the dependencies:
cd ./ui
pnpm i
Then, create a .env file inside ./ui with the following:
OPENAI_API_KEY=...
Then, run the Next.js project:
pnpm run dev
Usage
Navigate to http://localhost:3000.
Troubleshooting
A few things to try if you are running into trouble:
- Make sure there is no other local application server running on the 8000 port.
- Under
/agent/greeter/demo.py, change0.0.0.0to127.0.0.1or tolocalhost