ExportHTML exports the current session as a standalone HTML file. If filename is empty, a default name based on the session title and timestamp is used.
(ctx context.Context, filename string)
| 1443 | // ExportHTML exports the current session as a standalone HTML file. |
| 1444 | // If filename is empty, a default name based on the session title and timestamp is used. |
| 1445 | func (a *App) ExportHTML(ctx context.Context, filename string) (string, error) { |
| 1446 | agentInfo := a.runtime.CurrentAgentInfo(ctx) |
| 1447 | return export.SessionToFile(a.session, agentInfo.Description, filename) |
| 1448 | } |
| 1449 | |
| 1450 | // ErrTitleGenerating is returned when attempting to set a title while generation is in progress. |
| 1451 | var ErrTitleGenerating = errors.New("title generation in progress, please wait") |
no test coverage detected