fusion_job_log
Fetch a completed job's run log or output to find why it failed. Pass a request ID to inspect logs, optionally save large files to a directory and return paths.
Instructions
Fetch a finished job's log or output -- i.e. WHY it failed.
Call this whenever fusion_job_status reports ERROR. Without it the only
honest thing you can tell the user is "the job failed", which is the least
useful true statement available: the reason is in the log.
File contents are not returned inline -- a job log can be megabytes. Pass
save_to to write them to a directory and get the paths back.
Args:
request_id: The job's request id.
file_type: log for the run log, out for the job's output.
save_to: Optional directory to write the files into.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save_to | No | ||
| file_type | No | log | |
| request_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||