Skip to content
View as Markdown

tinker_cookbook.completers.MessageCompleter

Generated from tinker-cookbook at commit 8486b8d. Source links point at that snapshot.

class tinker_cookbook.completers.MessageCompleter()

Abstract interface for generating message responses.

__call__(messages)

Generate an assistant message given a conversation history.

Parameters:

  • messages (list[renderers.Message]) – The conversation history as a list of message dicts with role and content keys.

Returns: renderers.Message – The generated assistant message, which may include tool_calls if the model produced them.

Referenced by