View Source AI.Util (fnord v0.5.5)

Summary

Functions

Creates an assistant message object, representing the assistant's response.

This is the tool call message, which must come immediately before the tool_msg/3 message with the same tool_call_id (id).

Creates a system message object, used to define the assistant's behavior for the conversation.

This is the tool outputs message, which must come immediately after the assistant_tool_msg/3 message with the same tool_call_id (id).

Creates a user message object, representing the user's input prompt.

Functions

agent_to_agent_prompt()

assistant_msg(msg)

Creates an assistant message object, representing the assistant's response.

assistant_tool_msg(id, func, args)

This is the tool call message, which must come immediately before the tool_msg/3 message with the same tool_call_id (id).

cosine_similarity(vec1, vec2)

note_format_prompt()

system_msg(msg)

Creates a system message object, used to define the assistant's behavior for the conversation.

tool_msg(id, func, output)

This is the tool outputs message, which must come immediately after the assistant_tool_msg/3 message with the same tool_call_id (id).

user_msg(msg)

Creates a user message object, representing the user's input prompt.