1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

aichat: add agents option

This commit is contained in:
Aguirre Matteo 2025-09-25 19:15:22 -03:00 committed by Austin Horstman
parent 35329d44f3
commit e3e15e765d
4 changed files with 77 additions and 12 deletions

View file

@ -0,0 +1,3 @@
model: llama3.2:latest
temperature: 0.5
use_tools: web_search

View file

@ -0,0 +1,5 @@
agent_prelude: default
model: openai:gpt-4o
temperature: 0.5
top_p: 0.7
use_tools: fs,web_search

View file

@ -1,4 +1,3 @@
{ ... }:
{
programs.aichat = {
enable = true;
@ -18,10 +17,34 @@
}
];
};
agents = {
openai = {
model = "openai:gpt-4o";
temperature = 0.5;
top_p = 0.7;
use_tools = "fs,web_search";
agent_prelude = "default";
};
llama = {
model = "llama3.2:latest";
temperature = 0.5;
use_tools = "web_search";
};
};
};
nmt.script = ''
assertFileExists home-files/.config/aichat/config.yaml
assertFileContent home-files/.config/aichat/config.yaml \
${./settings.yml}
assertFileExists home-files/.config/aichat/agents/openai/config.yaml
assertFileExists home-files/.config/aichat/agents/llama/config.yaml
assertFileContent home-files/.config/aichat/agents/openai/config.yaml \
${./openai.yaml}
assertFileContent home-files/.config/aichat/agents/llama/config.yaml \
${./llama.yaml}
'';
}