builtInToolName !== null && $this->builtInToolName !== ''; } public function jsonSerialize(): array { return [ 'id' => $this->id, 'bot_id' => $this->botId, 'tool_id' => $this->toolId, 'built_in_tool_name' => $this->builtInToolName, 'is_builtin' => $this->isBuiltIn(), 'config_override' => $this->configOverride !== null ? json_decode($this->configOverride, true) : null, 'created_at' => $this->createdAt, 'updated_at' => $this->updatedAt, ]; } }