{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/ValueObject\/SessionMetadata.php",
"offset": 70,
"limit": 70
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/ValueObject\/SessionMetadata.php",
"content": " }\n\n \/**\n * @param array<string> $collections\n *\/\n public function withModel(string $model): self\n {\n self::validateModel($model);\n\n return new self($model, $this->collections, $this->contextLimit, $this->temperature, $this->maxTokens);\n }\n\n \/**\n * @param array<string> $collections\n *\/\n public function withCollections(array $collections): self\n {\n self::validateCollections($collections);\n\n return new self($this->model, $collections, $this->contextLimit, $this->temperature, $this->maxTokens);\n }\n\n public function withContextLimit(int $contextLimit): self\n {\n self::validateContextLimit($contextLimit);\n\n return new self($this->model, $this->collections, $contextLimit, $this->temperature, $this->maxTokens);\n }\n\n public function withTemperature(float $temperature): self\n {\n self::validateTemperature($temperature);\n\n return new self($this->model, $this->collections, $this->contextLimit, $temperature, $this->maxTokens);\n }\n\n public function withMaxTokens(int $maxTokens): self\n {\n self::validateMaxTokens($maxTokens);\n\n return new self($this->model, $this->collections, $this->contextLimit, $this->temperature, $maxTokens);\n }\n\n private static function validateModel(string $model): void\n {\n if (trim($model) === '') {\n throw new InvalidArgumentException('Model cannot be empty');\n }\n }\n\n \/**\n * @param array<string> $collections\n *\/\n private static function validateCollections(array $collections): void\n {\n if (empty($collections)) {\n throw new InvalidArgumentException('Collections cannot be empty');\n }\n\n foreach ($collections as $collection) {\n if (!is_string($collection) || trim($collection) === '') {\n throw new InvalidArgumentException('Each collection must be a non-empty string');\n }\n }\n }\n\n private static function validateContextLimit(int $contextLimit): void\n {\n if ($contextLimit < 1 || $contextLimit > 20) {\n throw new InvalidArgumentException('Context limit must be between 1 and 20');",
"numLines": 70,
"startLine": 70,
"totalLines": 166
}
}
}