Skip to content

MotiaDev/motia-agent-content

Repository files navigation

Setup Instructions

Install pnpm

First, you need to install pnpm if you haven't already:

npm install -g pnpm

Install Dependencies

Next, install the project dependencies using pnpm:

pnpm install

Link Motia Monorepo Dependencies

Temporarily, you will need to download the Motia monorepo and link the @motia/snap and @motia/dev dependencies:

  1. Clone the Motia monorepo:
git clone <motia-monorepo-url>
cd motia-monorepo
pnpm install
  1. Link the dependencies:
cd packages/core
pnpm link --global @motia/core

cd ../snap
pnpm link --global @motia/snap

Install python dependencies

To install the Python dependencies, run the following command:

pip install -r requirements.txt

Running the Project

To run the project, use the following command:

pnpm run dev

Testing the Setup

Once the project is running, execute the following curl command to test the flow:

curl -X POST http://localhost:3000/vision-agent \
   -H "Content-Type: application/json" \
   -d '{
     "image_url": "https://media.istockphoto.com/id/1079580668/photo/happy-college-students-listening-to-a-lecturer-in-the-classroom.jpg?s=612x612&w=0&k=20&c=Z8GbAuac_J3lUPKT5bI4Uw4GZskBOA0Y_p8A1xOWarw="
}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published