{
"event": "PreToolUse",
"tool_name": "Grep",
"tool_input": {
"pattern": "getDefaultChatModel|isValid",
"path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/AI\/ModelRegistry.php",
"output_mode": "content",
"-A": 5
}
}
{
"tool_response": {
"mode": "content",
"numFiles": 0,
"filenames": [],
"content": "151: public function isValid(string $fullKey): bool\n152- {\n153- $model = $this->getModel($fullKey);\n154-\n155- return $model !== null && $model['is_available'];\n156- }\n--\n169: public function getDefaultChatModel(): string\n170- {\n171- $chatModels = $this->getChatModels();\n172-\n173- return array_key_first($chatModels) ?? 'ollama:mistral:latest';\n174- }",
"numLines": 13
}
}