Skip to content

Commit 86f4185

Browse files
authored
πŸ›[Bug] Add new sql for default large language model
πŸ›[Bug] Add new sql for default large language model
2 parents b4f9a7b + 422da8f commit 86f4185

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

β€Ždocker/init.sqlβ€Ž

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,8 @@ CREATE TABLE IF NOT EXISTS nexent.ag_tenant_agent_t (
290290
business_description VARCHAR,
291291
model_name VARCHAR(100),
292292
model_id INTEGER,
293+
business_logic_model_name VARCHAR(100),
294+
business_logic_model_id INTEGER,
293295
max_steps INTEGER,
294296
duty_prompt TEXT,
295297
constraint_prompt TEXT,
@@ -330,6 +332,8 @@ COMMENT ON COLUMN nexent.ag_tenant_agent_t.description IS 'Description';
330332
COMMENT ON COLUMN nexent.ag_tenant_agent_t.business_description IS 'Manually entered by the user to describe the entire business process';
331333
COMMENT ON COLUMN nexent.ag_tenant_agent_t.model_name IS '[DEPRECATED] Name of the model used, use model_id instead';
332334
COMMENT ON COLUMN nexent.ag_tenant_agent_t.model_id IS 'Model ID, foreign key reference to model_record_t.model_id';
335+
COMMENT ON COLUMN nexent.ag_tenant_agent_t.business_logic_model_name IS 'Model name used for business logic prompt generation';
336+
COMMENT ON COLUMN nexent.ag_tenant_agent_t.business_logic_model_id IS 'Model ID used for business logic prompt generation, foreign key reference to model_record_t.model_id';
333337
COMMENT ON COLUMN nexent.ag_tenant_agent_t.max_steps IS 'Maximum number of steps';
334338
COMMENT ON COLUMN nexent.ag_tenant_agent_t.duty_prompt IS 'Duty prompt';
335339
COMMENT ON COLUMN nexent.ag_tenant_agent_t.constraint_prompt IS 'Constraint prompt';
@@ -344,8 +348,6 @@ COMMENT ON COLUMN nexent.ag_tenant_agent_t.created_by IS 'Creator';
344348
COMMENT ON COLUMN nexent.ag_tenant_agent_t.updated_by IS 'Updater';
345349
COMMENT ON COLUMN nexent.ag_tenant_agent_t.delete_flag IS 'Whether it is deleted. Optional values: Y/N';
346350

347-
-- Add comments to the columns
348-
COMMENT ON COLUMN nexent.ag_tenant_agent_t.provide_run_summary IS 'Whether to provide the running summary to the manager agent';
349351

350352
-- Create the ag_tool_instance_t table in the nexent schema
351353
CREATE TABLE IF NOT EXISTS nexent.ag_tool_instance_t (
@@ -644,4 +646,4 @@ $$ LANGUAGE plpgsql;
644646
CREATE TRIGGER "update_partner_mapping_update_time_trigger"
645647
BEFORE UPDATE ON "nexent"."partner_mapping_id_t"
646648
FOR EACH ROW
647-
EXECUTE FUNCTION "update_partner_mapping_update_time"();
649+
EXECUTE FUNCTION "update_partner_mapping_update_time"();
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
-- Add business_logic_model_name and business_logic_model_id fields to ag_tenant_agent_t table
2+
-- These fields store the LLM model used for generating business logic prompts
3+
4+
ALTER TABLE nexent.ag_tenant_agent_t
5+
ADD COLUMN IF NOT EXISTS business_logic_model_name VARCHAR(100);
6+
7+
ALTER TABLE nexent.ag_tenant_agent_t
8+
ADD COLUMN IF NOT EXISTS business_logic_model_id INTEGER;
9+
10+
COMMENT ON COLUMN nexent.ag_tenant_agent_t.business_logic_model_name IS 'Model name used for business logic prompt generation';
11+
COMMENT ON COLUMN nexent.ag_tenant_agent_t.business_logic_model_id IS 'Model ID used for business logic prompt generation, foreign key reference to model_record_t.model_id';
12+

0 commit comments

Comments
Β (0)