@devries-cameron20 / composio Mirror · read-only
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 04:45 UTC

next
ts 16 lines 462 Bytes
Raw
1 import { SessionExecuteMetaModifiers } from "@composio/core";
2 import ora from 'ora';
3 let spinner = ora();
4
5 export const modifiers: SessionExecuteMetaModifiers = {
6 beforeExecute: ({ toolSlug, params }) => {
7 spinner = ora();
8 spinner.start(`Executing ${toolSlug}`);
9 console.log(JSON.stringify(params, null, 2));
10 return params;
11 },
12 afterExecute: ({ toolSlug, result }) => {
13 spinner.succeed(`Executed ${toolSlug}`);
14 return result;
15 },
16 };