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
| 1 | import type { |
| 2 | LogCreateToolExecutionResponse, |
| 3 | LogRetrieveToolExecutionResponse, |
| 4 | } from '@composio/client/resources/logs'; |
| 5 | |
| 6 | export const log = { |
| 7 | id: 'log_send_1', |
| 8 | timestamp: '2026-01-01T00:00:00.000Z', |
| 9 | type: 'tool.execution', |
| 10 | status: 'success', |
| 11 | level: 'info', |
| 12 | metadata: { |
| 13 | toolkit: { slug: 'gmail' }, |
| 14 | tool: { slug: 'GMAIL_SEND_EMAIL', version: '20260101_00' }, |
| 15 | connected_account_id: 'ca_gmail_1', |
| 16 | user_id: 'user_1', |
| 17 | credential_source: 'connected_account', |
| 18 | }, |
| 19 | metrics: { duration_ms: 412 }, |
| 20 | parent: null, |
| 21 | } satisfies LogCreateToolExecutionResponse['logs'][number]; |
| 22 | |
| 23 | export const detail = { |
| 24 | ...log, |
| 25 | timings: { start_time: 1767225600000, end_time: 1767225600412 }, |
| 26 | context: {}, |
| 27 | source: {}, |
| 28 | data: { request: { payload: { to: 'a@b.c' } }, response: { body: { id: 'msg_1' } } }, |
| 29 | } satisfies LogRetrieveToolExecutionResponse; |