Skip to content

Commit 4ba9769

Browse files
authored
composio example (#19)
* composio example * create calendar event example
1 parent c837bd3 commit 4ba9769

File tree

13 files changed

+4861
-15
lines changed

13 files changed

+4861
-15
lines changed

examples/composio/.env.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
COMPOSIO_API_KEY=
2+
OPENAI_API_KEY=
3+
# Restack
4+
5+
RESTACK_ENGINE_ID=
6+
RESTACK_ENGINE_ADDRESS=
7+
RESTACK_ENGINE_API_KEY=
8+
9+
RESTACK_CLOUD_TOKEN=

examples/composio/Dockerfile

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# ------- Image ----------
2+
3+
FROM node:20-bullseye-slim AS installer
4+
5+
RUN apt-get update \
6+
&& apt-get install -y ca-certificates \
7+
&& rm -rf /var/lib/apt/lists/*
8+
9+
COPY ./package.json ./app/package.json
10+
COPY ./tsconfig.json ./app/tsconfig.json
11+
12+
13+
WORKDIR /app
14+
15+
RUN npm install
16+
17+
# ------- Builder ----------
18+
19+
FROM node:20-bullseye-slim AS builder
20+
WORKDIR /app
21+
COPY --from=installer /app .
22+
COPY ./src ./src
23+
24+
RUN npm run build
25+
26+
# ------- Runner ----------
27+
28+
FROM node:20-bullseye-slim AS runner
29+
30+
RUN addgroup --system --gid 1001 service
31+
RUN adduser --system --uid 1001 service
32+
USER service
33+
34+
WORKDIR /app
35+
36+
COPY --from=builder /app .
37+
38+
ENV NODE_OPTIONS=”--max-old-space-size=4096″
39+
40+
CMD ["node", "dist/services"]

examples/composio/package.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "sdk-gemini-example-ts",
3+
"version": "1.0.0",
4+
"description": "Basic Gemini example",
5+
"scripts": {
6+
"start": "ts-node src/services.ts",
7+
"start.watch": "nodemon src/services.ts",
8+
"dev": "pnpm start.watch",
9+
"build": "tsc --build",
10+
"clean": "rm -rf node_modules",
11+
"schedule": "ts-node ./scheduleWorkflow.ts",
12+
"restack-up": "node restack_up.mjs"
13+
},
14+
"nodemonConfig": {
15+
"execMap": {
16+
"ts": "ts-node"
17+
},
18+
"ext": "ts",
19+
"watch": [
20+
"src"
21+
]
22+
},
23+
"dependencies": {
24+
"@restackio/ai": "^0.0.80",
25+
"@restackio/integrations-composio": "^0.0.3",
26+
"@temporalio/workflow": "^1.11.2",
27+
"dotenv": "^16.4.5"
28+
},
29+
"devDependencies": {
30+
"@restackio/cloud": "^1.0.17",
31+
"@types/node": "^20.16.9",
32+
"nodemon": "^2.0.22",
33+
"ts-node": "^10.9.2",
34+
"typescript": "^5.6.3"
35+
}
36+
}

0 commit comments

Comments
 (0)