View Source AI.Completion.Output (fnord v0.6.5)

Summary

Functions

Replays an earlier conversation identically to the original interaction, except that the final response is logged as a typical assistant message, so that the conversation may be continued.

Replaces the entire conversation, similarly to replay_conversation/1, but prints the final message to STDOUT, identically to the original interaction. This is intended to be used when replaying the entire conversation to replicate the original interaction, rather than for the sake of continuing the conversation to refine output.

Functions

log_assistant_msg(state, msg)

log_tool_call(state, step)

log_tool_call(state, step, msg)

log_tool_call_error(state, tool, reason)

log_tool_call_result(state, step)

log_tool_call_result(state, step, msg)

log_user_msg(state, msg)

on_event(state, arg2, arg3)

replay_conversation(state)

Replays an earlier conversation identically to the original interaction, except that the final response is logged as a typical assistant message, so that the conversation may be continued.

replay_conversation_as_output(state)

Replaces the entire conversation, similarly to replay_conversation/1, but prints the final message to STDOUT, identically to the original interaction. This is intended to be used when replaying the entire conversation to replicate the original interaction, rather than for the sake of continuing the conversation to refine output.