Spaces:
Runtime error
Runtime error
Download src/trigger/test.ts from BTankut/Context-Store-LLM: direct link, hf CLI and curl.
- Browser
- Download file 351 Bytes
-
https://huggingface.co/spaces/BTankut/Context-Store-LLM/resolve/main/src/trigger/test.ts
- Command line
-
hf download hf://spaces/BTankut/Context-Store-LLM/src/trigger/test.ts
-
curl -L -o test.ts https://huggingface.co/spaces/BTankut/Context-Store-LLM/resolve/main/src/trigger/test.ts
351 Bytes
| import { task, logger } from "@trigger.dev/sdk/v3"; | |
| export const testTask = task({ | |
| id: "test-task", | |
| run: async (payload: { message: string }) => { | |
| logger.info("Test task is running:", { payload }); | |
| return { | |
| success: true, | |
| message: `Processed: ${payload.message}`, | |
| timestamp: new Date().toISOString() | |
| }; | |
| }, | |
| }); |