Index

public.chatbot_conversation_message_tool_outputs

Description

The results from a chatbot tool call. Associated one-to-one with chatbot_conversation_messages row with the role “tool”.

Columns

Name Type Default Nullable Children Parents Comment
chatbot_conversation_message_id uuid false public.chatbot_conversation_messages The chatbot_conversation_message that this row belongs to.
created_at timestamp with time zone now() false Timestamp when the record was created.
deleted_at timestamp with time zone true Timestamp when the record was deleted. If null, the record is not deleted.
id uuid uuid_generate_v4() false A unique, stable identifier for the record.
output varchar(131072) false The result returned from the tool, a string. Is sent to the chatbot.
response_id text false The ID assigned by Azure per response, is the same for every message generated in one conversation turn of the LLM (one response). Used to fetch and delete a response from the Azure API.
tool_call_id varchar(255) false The ID of the specific tool call, created by Azure and needed to connect a tool result to the correct tool call.
tool_kind tool_kind ‘function’::tool_kind false The kind of the tool: is it a function tool or Azure AI Search tool.
updated_at timestamp with time zone now() false Timestamp when the record was last updated. The field is updated automatically by the set_timestamp trigger.

Constraints

Name Type Definition
chatbot_conversation_message_tool_outputs_created_at_not_null n NOT NULL created_at
chatbot_conversation_message_tool_outputs_id_not_null n NOT NULL id
chatbot_conversation_message_tool_outputs_message_id_fkey FOREIGN KEY FOREIGN KEY (chatbot_conversation_message_id) REFERENCES chatbot_conversation_messages(id)
chatbot_conversation_message_tool_outputs_message_id_not_null n NOT NULL chatbot_conversation_message_id
chatbot_conversation_message_tool_outputs_pkey PRIMARY KEY PRIMARY KEY (id)
chatbot_conversation_message_tool_outputs_response_id_not_null n NOT NULL response_id
chatbot_conversation_message_tool_outputs_tool_call_id_not_null n NOT NULL tool_call_id
chatbot_conversation_message_tool_outputs_tool_kind_not_null n NOT NULL tool_kind
chatbot_conversation_message_tool_outputs_tool_output_not_null n NOT NULL output
chatbot_conversation_message_tool_outputs_updated_at_not_null n NOT NULL updated_at

Indexes

Name Definition
chatbot_conversation_message_tool_outputs_pkey CREATE UNIQUE INDEX chatbot_conversation_message_tool_outputs_pkey ON public.chatbot_conversation_message_tool_outputs USING btree (id)

Triggers

Name Definition
set_timestamp CREATE TRIGGER set_timestamp BEFORE UPDATE ON public.chatbot_conversation_message_tool_outputs FOR EACH ROW EXECUTE FUNCTION trigger_set_timestamp()

Relations

er

Generated by tbls