ExLLama.ChatTemplate behaviour (LLama CPP Nif Wrapper v0.0.1)

Link to this section Summary

Link to this section Callbacks

Link to this callback

extract_response(thread)

@callback extract_response(thread :: [map()]) :: {:ok, term()}
Link to this callback

to_context(thread)

@callback to_context(thread :: [map()]) :: {:ok, String.t()}

Link to this section Functions

Link to this function

extract_response(handler, responses)

Link to this function

to_context(handler, thread)