Actions10
- Prompt Actions
- Monitoring Actions
- Dataset Actions
Monitoring → Log Output
AI-generatedSummary
Send a log entry about a prompt's execution to Basalt's monitoring system, including required prompt slug and output, plus optional details like name, version, timing, token counts, cost, variables, associated user and organization, and metadata.
Inputs
- Prompt Slug (required) — The slug identifier of the prompt to be logged.
- Output (required) — The output generated by the prompt; can be a string, object, or array.
- Log Options — Optional additional details about the prompt execution, including name, version, tag, input, ideal output, start and end times, input/output tokens, cost, variables, organization, user, and metadata.
Output shape
a single record confirming the logging request result
The operation sends the log data in the request body and expects a JSON response from the Basalt API; exact returned fields depend on the API but typically confirm success or provide error information.
Examples
Example 1: Log prompt output with basic required fields
Provide the prompt slug as a string and the output as JSON.
Example 2: Log prompt output with extended options
Provide slug and output, plus optional fields such as prompt name, version, timing, user info, and cost to associate rich metadata with the logged entry.