evaluate_sage_streaming
Execute SageMath code and get intermediate print() output streamed line by line, with the final result returned as usual.
Instructions
Execute SageMath code and stream intermediate print() output line by line. Final result is returned as usual.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | SageMath code to execute | |
| timeout_seconds | No | Override timeout in seconds |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| latex | No | LaTeX serialization of the result when requested and supported. | |
| result | No | String representation of the expression result if available. | |
| stdout | No | Captured stdout emitted during execution. | |
| elapsed_ms | Yes | Wall-clock execution time in milliseconds. | |
| result_type | Yes |