evaluate_sage_streaming
Execute SageMath code line by line, streaming intermediate print() output in real time while returning the final result. Ideal for monitoring long computations.
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 | |
| session | No | Named workspace to use. Workspaces have independent variables; omit for 'default'. | default |
| 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 |