langgoap.render_ascii_gantt

langgoap.render_ascii_gantt#

render_ascii_gantt(plan, *, width=60)[source]#

Render the plan’s schedule as an ASCII Gantt chart.

Parameters:
  • plan (Plan) – Plan whose metadata.csp.schedule will be rendered.

  • width (int) – Number of characters for the time axis (excluding labels).

Returns:

ASCII Gantt block as a plain string.

Raises:

ValueError – If the plan has no schedule.

Return type:

str