template


Description:

public static PromptTemplate template (string filename) throws Error

Returns cached template for filename; creates and loads if not cached.

Always calls load on the template before returning, then clears filled_user and filled_system.

Parameters:

filename

template filename (e.g. task_refinement.md)

Returns:

the cached, reloaded template instance

Exceptions:

GLib.Error

when load fails