AI.Completion.Output (fnord v0.9.29)

View Source

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.

Replays the entire conversation, similarly to replay_conversation/1, while rendering the final assistant response to STDOUT in the same shape the user would receive from the CLI.

Functions

log_assistant_msg(state, msg)

log_tool_call(state, step)

log_tool_call(state, step, msg)

log_tool_call_error(state, tool, args_json, 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)

Replays the entire conversation, similarly to replay_conversation/1, while rendering the final assistant response to STDOUT in the same shape the user would receive from the CLI.

Piped output stays plain for copy/paste safety. Interactive terminal output adds the same kind of framed emphasis used by other prominent terminal sections so the replay ends with a clear handoff from the agent to the user.