engineRenderUserMessage function

Future<String> engineRenderUserMessage(
  1. Engine engine,
  2. String content
)

content rendered as a user message by engine's prompt template, with the turn's generation prompt: what option scoring continues.

Implementation

Future<String> engineRenderUserMessage(Engine engine, String content) {
  if (engine._closed) throw StateError('The engine is closed.');
  return engine._client.renderUserMessage(content);
}