find_exceptions_in_file
Identify and retrieve exception details from a specific file within a defined time window using Langfuse observability data.
Instructions
Get detailed exception info for a specific file.
Args:
ctx: Context object containing lifespan context with Langfuse client
filepath: Path to the file to search for exceptions (full path including extension)
age: Number of minutes to look back (positive integer, max 7 days/10080 minutes)
output_mode: Controls the output format and detail level
Returns:
Based on output_mode:
- compact: List of summarized exception details
- full_json_string: String containing the full JSON response
- full_json_file: List of summarized exception details with file save info
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filepath | Yes | Path to the file to search for exceptions (full path including extension) | |
| age | Yes | Number of minutes to look back (positive integer, max 7 days/10080 minutes) | |
| output_mode | No | Controls the output format and action. 'compact' (default): Returns a summarized JSON object optimized for direct agent consumption. 'full_json_string': Returns the complete, raw JSON data serialized as a string. 'full_json_file': Returns a summarized JSON object AND saves the complete data to a file. | compact |