Limit length of logs returned by get_pipeline_errors tool
Problem to solve
We have tool response truncation in place, but we should have specific handling for failing job logs:
- Return the
tailof logs, not thehead, as in thetruncate_tool_responsefunction. - Since we have an overall limit for
npipeline jobs ofXchars, return something like maxX/ncharacters for each job. Could do something a little smarter since some logs will be shorter than that. Based on the conversation here.
Further details
Links / references
Edited by Roman Eisner